/** * MCP Router Server * Exposes 2 meta-tools: discover_tools and execute_tool * Achieves 98%+ token reduction by hiding individual tool definitions */ import { DISCOVER_TOOLS_DEFINITION } from './tools/discover.js'; import { EXECUTE_TOOL_DEFINITION } from './tools/execute.js'; import type { McpConfig, RouterStats } from './types.js'; export interface RouterOptions { configPath?: string; autoDiscover?: boolean; verbose?: boolean; } export declare class McpRouter { private config; private searchIndex; private clientPool; private options; private toolsLoaded; constructor(options?: RouterOptions); /** * Load tools from all configured MCP servers */ loadTools(): Promise; /** * Get the 2 meta-tool definitions (for MCP tools/list) */ getToolDefinitions(): Array; /** * Handle tool call */ handleToolCall(name: string, args: unknown): Promise; /** * Get router statistics */ getStats(): RouterStats; /** * Shutdown - cleanup all connections */ shutdown(): Promise; /** * Get loaded config */ getConfig(): McpConfig; } /** * Run as stdio MCP server */ export declare function runStdioServer(options?: RouterOptions): Promise; //# sourceMappingURL=server.d.ts.map