export type McpTransport = 'stdio' | 'http'; export type McpServerConfig = { command?: string; args?: string[]; env?: Record; environment?: Record; url?: string; type?: string; enabled?: boolean; headers?: Record; timeout?: number; oauth?: { clientId?: string; clientSecret?: string; scope?: string; callbackPort?: number; redirectUri?: string; }; }; export type McpServerEntry = { name: string; transport: McpTransport; config: McpServerConfig; }; export type McpTarget = 'cursor' | 'claude' | 'codex' | 'vscode' | 'windsurf' | 'opencode'; export type McpTargetServers = { target: McpTarget; path: string; servers: McpServerEntry[]; supported: boolean; unsupportedReason?: string; }; export declare const MCP_TARGETS: McpTarget[]; export declare const CODEX_MCP_UNSUPPORTED_REASON = "Codex MCP configuration is not managed by this console yet. Select another MCP target or configure Codex MCP manually."; export declare function assertSecretReferences(config: McpServerConfig): void; export declare function isMcpTargetSupported(target: McpTarget): boolean; /** * List all MCP servers for a specific target. */ export declare function listServers(target: McpTarget, workspacePath?: string): McpTargetServers; /** * List MCP servers across all targets. */ export declare function listAllServers(workspacePath?: string): McpTargetServers[]; /** * Find a single configured server by name within a target. Returns undefined * for unsupported targets or when no matching server exists. */ export declare function findServer(target: McpTarget, name: string, workspacePath?: string): McpServerEntry | undefined; /** * Add or update a server entry in a target config. */ export declare function addServer(target: McpTarget, name: string, config: McpServerConfig, workspacePath?: string): { path: string; }; /** * Remove a server entry from a target config. */ export declare function removeServer(target: McpTarget, name: string, workspacePath?: string): { removed: boolean; path: string; }; /** * Install a known integration to one or more targets. */ export declare function installIntegration(integrationId: string, targets: McpTarget[], config: McpServerConfig, workspacePath?: string): { installed: string[]; };