mcp-doctor

Health check for MCP servers — and the reason they are broken.

An MCP server that fails to start, points at a moved binary or lost its key does not raise an error; your agent just stops calling tools. This probes every server you configured, lists its tools, measures the latency and names the failure.

View on GitHub npm README

What it does

stdio and streamable HTTPBoth transports are probed with a real MCP handshake.
Failure taxonomyspawn, handshake, timeout, auth, empty — not a stack trace.
Reads your configEvery enabled server in ~/.config/opencode/opencode.jsonc.
CI friendly--json and exit code 1 when a server is broken.

Usage

Everything in your configmcp-doctor
One remote servermcp-doctor --url https://host/mcp
One stdio servermcp-doctor --cmd "npx -y some-mcp-server"
In CImcp-doctor --json

How it works

  1. Each server is started or dialled and the MCP handshake is completed.
  2. The tool list is fetched, and an empty list is treated as a finding of its own.
  3. Failures are classified by their message, so the report says what to fix.

Questions

(rows) => rows .map( ([q, a]) => `
${q}

${a}

`, ) .join("\n")