/** * Handler for `GET /api/mcp-status`. * * Returns a snapshot of the locally connected MCP servers managed by * `spectral serve`. Pure handler pattern — no framework, no side effects. * The caller (the relay dispatcher) injects `McpExtensionState`. * * This module intentionally imports ONLY `McpExtensionState` (a pure-type * import from `state.ts`). It avoids `init.ts` / `config.ts` / etc. so the * dispatcher never pulls in heavy transitive deps. */ import type { McpExtensionState } from "../../mcp/state.js"; export interface McpServerStatus { name: string; status: "connected" | "disconnected" | "needs-auth" | "failed" | "cached"; toolCount: number; /** Epoch-ms of the most recent connection failure, if the server is in a failed state. */ failedAt?: number; } export declare function handleListMcpStatus(state: McpExtensionState): McpServerStatus[]; //# sourceMappingURL=mcp-status.d.ts.map