UNPKG

@apify/actors-mcp-server

Version:

Model Context Protocol Server for Apify

26 lines 1.11 kB
import type { Input } from '../types.js'; /** * Generates a unique server ID based on the provided URL. * * URL is used instead of Actor ID because one Actor may expose multiple servers - legacy SSE / streamable HTTP. * * @param url The URL to generate the server ID from. * @returns A unique server ID. */ export declare function getMCPServerID(url: string): string; /** * Generates a unique tool name based on the provided URL and tool name. * @param url The URL to generate the tool name from. * @param toolName The tool name to generate the tool name from. * @returns A unique tool name. */ export declare function getProxyMCPServerToolName(url: string, toolName: string): string; /** * Process input parameters from URL and get tools * If URL contains query parameter `actors`, return tools from Actors otherwise return null. * @param url * @param apifyToken */ export declare function processParamsGetTools(url: string, apifyToken: string): Promise<import("../types.js").ToolEntry[]>; export declare function parseInputParamsFromUrl(url: string): Input; //# sourceMappingURL=utils.d.ts.map