/** Loader and tool-registry projection used by the TUI's `/mcp` report. */ /** Minimal model-facing tool schema needed by the status projection. */ export interface McpStatusToolSchema { readonly name: string; } /** Minimal Loader entry shape; keeps the TUI independent of Loader internals. */ export interface McpStatusLoaderEntry { readonly disabled?: boolean; readonly options?: { readonly name?: string; readonly config?: unknown; }; readonly fiber?: { readonly state?: number; }; } export type McpServerState = 'connected' | 'connecting' | 'unavailable' | 'failed' | 'configured'; /** One configured or connected MCP server as observed by the TUI. */ export interface McpServerStatus { readonly server: string; readonly tools: readonly string[]; readonly state: McpServerState; readonly sourcePath?: string; } /** * Merge declared MCP clients with live `mcp____` registrations. * * Loader declarations are essential during startup: an async MCP client may * already be configured while its initial transport and tool sync are still * pending. Treating an empty tool registry as "not configured" makes `/mcp` * lie during that window. */ export declare function collectMcpServerStatus(schemas: readonly McpStatusToolSchema[], entries: Iterable, discovered?: readonly { name: string; sourcePath: string; }[]): McpServerStatus[]; //# sourceMappingURL=mcp-status.d.ts.map