import { ConnectMcpParams, McpServerConfig } from "./types.js"; export declare class McpServerManager { private clients; private configPath?; /** * MCP Server Manager constructor */ constructor(options?: { configPath?: string; autoLoad?: boolean; }); /** * Load server configuration from configuration file */ loadFromConfig(configPath?: string): Promise; /** * Connect to MCP server. */ connectToServer(serverName: string, params: ConnectMcpParams | McpServerConfig): Promise; /** * Return the list of tools from connected server. */ listTools(serverName: string): Promise; /** * Get a specific tool with complete schema from a connected server. */ getTool(serverName: string, toolName: string): Promise; /** * List tools from a specific server (name and description only). */ listToolsInServer(serverName: string): Promise; /** * Find tools matching a pattern in a specific server (name and description only). */ findToolsInServer(serverName: string, pattern: string, searchIn?: "name" | "description" | "both", caseSensitive?: boolean): Promise; /** * List all connected server names. */ listServers(): string[]; /** * Call a tool on server. */ callTool(serverName: string, toolName: string, args: Record): Promise; /** * Return all connected server names. */ getConnectedServers(): string[]; /** * Find tools matching a pattern across all connected servers. */ findTools(pattern: string, options?: { searchIn?: "name" | "description" | "both"; caseSensitive?: boolean; }): Promise>; /** * Disconnect from server. */ disconnectServer(serverName: string): Promise; /** * Disconnect from all servers. */ disconnectAll(): Promise; private getClient; }