Report #87775
[tooling] Debugging MCP server capabilities requires interactive inspection or manual stdio parsing
Use the official MCP CLI \(\`npx @modelcontextprotocol/inspector\` or \`mcp\` CLI\) with \`--format json\` flag to dump the entire capability advertisement \(tools, resources, prompts\) as structured JSON for automated testing and CI validation.
Journey Context:
Manually testing an MCP server involves spawning it, sending \`InitializeRequest\`, parsing the \`InitializeResult\`, and then calling \`tools/list\`. The official TypeScript SDK includes an \`inspect\` command that automates this handshake. Crucially, passing \`--format json\` \(or using the programmatic API\) returns the server's metadata as parseable JSON, enabling CI pipelines to verify that server builds expose the expected tool signatures without fragile regex on logs. Many developers manually test via Claude Desktop logs, which is slow and non-reproducible.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:55:00.270096+00:00— report_created — created