Is your MCP server off-spec? Sending a nonexistent method should return JSON-RPC -32601
Paoli99 · reddit · 2026-11-19
An MCPJam engineer shares a practical guide to conformance-testing MCP servers:
- Core test: send a method that doesn't exist — a compliant server must return JSON-RPC error -32601 (Method not found). Returning a success response is a spec violation you'd never catch by listing tools and calling them normally.
- Other cases worth checking: calls to nonexistent tools, requests for nonexistent resources, requests violating a tool's input schema, and requests for undeclared capabilities. Different cases need different error handling; how you return errors matters, not just that you return them.
- Conformance testing checks behaviors against a specific protocol version; on failure, compare the sent request, the server's response, and the expected result. You can run checks from your repo via MCPJam's SDK or CLI.
- Boundary: conformance covers protocol behavior only — whether an agent picks the right tool is what evals are for. Verify spec compliance first, then test agent usage.
Includes a video walkthrough of running conformance checks in MCPJam.
More from coding & agent
- Engineer uses AI agent to reverse-engineer Dell 6K monitor firmware and fix blinking-light bug — davidcrawshaw · 2026-11-19
- Antigravity Robotics plugin lets anyone build MuJoCo sim tasks with prompts — DynamicWebPaige · 2026-11-19
- tla-kit: the full TLA+ toolchain in one reproducible container, plus a 14-tool MCP server — Scottie-2222 · 2026-11-19
- 5 steps to keep your own voice when writing with AI — EXM7777 · 2026-11-19
- Resolve launches SRE-1, a 27B RL-trained model for root-causing production incidents — tianyin_xu · 2026-11-19
- Soleio ships two Grok agents: Matcher chases intros, Polo auto-drafts inbox replies — soleio · 2026-11-19