/** * MCP client manager for external MCP servers */ import { Client } from "@modelcontextprotocol/sdk/client/index.js"; import type { ServerConfig } from "../types/config.js"; export declare class McpClientManager { private clients; private stderrBuffers; constructor(); getClient(serverName: string, serverConfig: ServerConfig): Promise; closeAll(): Promise; /** * Get captured stderr output for a server * @param serverName - The server name * @returns Array of stderr lines, or empty array if none */ getStderr(serverName: string): string[]; /** * Clear stderr buffer for a server (typically before a call to prepare for fresh output) * * Note: We mutate the existing array (buffer.length = 0) rather than replacing it * because the transport's stderr event handler has a closure reference to the original * array. If we replace the array in the Map, writes would continue going to the old array. * * @param serverName - The server name */ clearStderr(serverName: string): void; private createTransport; } //# sourceMappingURL=client-manager.d.ts.map