/** Stdio transport — spawns a local subprocess. */ export interface MCPStdioConfig { name: string; transport: "stdio"; command: string; args?: string[]; env?: Record; cwd?: string; } /** SSE transport — connects to a remote Server-Sent Events endpoint. */ export interface MCPSSEConfig { name: string; transport: "sse"; url: string; headers?: Record; } /** Streamable HTTP transport — the newer MCP HTTP transport. */ export interface MCPStreamableHTTPConfig { name: string; transport: "streamable-http"; url: string; headers?: Record; } /** Union of all supported MCP server configurations. */ export type MCPServerConfig = MCPStdioConfig | MCPSSEConfig | MCPStreamableHTTPConfig;