Skip to content

ServerState

ServerState = "idle" | "connecting" | "initializing" | "ready" | "degraded" | "reconnecting" | "failed" | "closed"

Defined in: packages/mcp-query/src/core/types.ts:30

Per-server lifecycle, modeled on the LSP client state machine, plus an MCP-specific degraded state for “connected but a wanted capability is absent” and a reconnecting state that triggers cache reconciliation.