export type McpTransportType = 'stdio' | 'streamable-http' | 'sse'; export interface McpServerConfig { type?: McpTransportType; command?: string; args?: string[]; env?: Record; url?: string; headers?: Record; oauth?: boolean; disabled?: boolean; alwaysLoad?: boolean; timeout?: number; allowSecretEnv?: string[]; } export type McpClientStatus = 'connecting' | 'connected' | 'error' | 'disabled' | 'oauth_pending'; export interface McpClientState { serverName: string; config: McpServerConfig; status: McpClientStatus; error?: string; toolCount: number; lastListedAt?: number; }