import { McpClient } from './McpClient.js'; import { type McpOAuthConfig } from './McpOAuth.js'; export declare const getMcpConfigFile: () => string; export declare const MCP_CONFIG_FILE: string; interface McpCommonConfig { name: string; enabled: boolean; description?: string; timeout?: number; connectTimeout?: number; } export type McpServerConfig = McpCommonConfig & ({ type: 'stdio'; command: string; args?: string[]; env?: Record; cwd?: string; } | { type: 'http'; url: string; headers?: Record; auth?: 'none' | 'oauth' | 'bearer'; tokenEnv?: string; oauth?: McpOAuthConfig; }); export interface McpConfig { servers: McpServerConfig[]; errors?: string[]; } export type McpServerState = 'disabled' | 'connecting' | 'authenticating' | 'connected' | 'authentication-required' | 'failed' | 'stopped'; export interface McpServerStatus { name: string; enabled: boolean; running: boolean; state: McpServerState; transport: 'stdio' | 'http'; toolCount: number; description?: string; error?: string; } export declare function loadMcpConfig(): McpConfig; export declare function saveMcpConfig(config: McpConfig): void; export declare function addMcpServer(server: McpServerConfig): void; export declare function removeMcpServer(name: string): void; export declare function toggleMcpServer(name: string): boolean | null; export type McpServerPreset = Omit, 'name' | 'enabled'> | Omit, 'name' | 'enabled'>; export declare const PRESET_SERVERS: Record; export declare class McpServerManager { private clients; private errors; private states; startAll(): Promise; stopAll(): Promise; startServer(config: McpServerConfig): Promise; stopServer(name: string): Promise; restartServer(name: string): Promise; login(name: string, onUrl?: (url: string) => void): Promise; completeCallback(name: string, redirectUrl: string): Promise; logout(name: string): Promise; getClient(name: string): McpClient | undefined; getAllClients(): Map; getStatus(): McpServerStatus[]; getToolCount(): number; healthCheck(name: string): Promise<{ healthy: boolean; latency?: number; error?: string; }>; autoDiscover(): McpServerConfig[]; } export declare const mcpManager: McpServerManager; export {}; //# sourceMappingURL=McpRegistry.d.ts.map