/** * Model Context Protocol types * Dependencies: None */ export interface McpServerConfig { type?: "stdio" | "sse" | "http"; command?: string; args?: string[]; env?: Record; url?: string; headers?: Record; /** Internal: plugin directory path when the server is registered by a plugin */ pluginRoot?: string; } export interface McpConfig { mcpServers: Record; } export interface McpTool { name: string; description?: string; inputSchema: Record; } export interface McpServerStatus { name: string; config: McpServerConfig; /** Pre-resolution URL with template variables preserved for safe display */ originalUrl?: string; status: | "disconnected" | "connected" | "connecting" | "reconnecting" | "error"; tools?: McpTool[]; toolCount?: number; capabilities?: string[]; lastConnected?: number; error?: string; }