JSON-RPC Tracing for MCP Explained: The Observability Layer Your Server Can't Ship Without
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
JSON-RPC Tracing for MCP Explained: The Observability Layer Your Server Can't Ship Without
JSON-RPC tracing for MCP is the practice of capturing every JSON-RPC message exchanged between an LLM client and your MCP server, including tool calls, requests, responses, and errors, so you can debug failures, measure latency, and understand real usage. Without it, you're flying blind the moment your server leaves localhost.
Introduction
Every interaction between ChatGPT, Claude, or Gemini and your MCP server is a stream of JSON-RPC messages: initialize handshakes, tools/list requests, tools/call invocations, and their responses. When everything works, that's fine. But the first time a tool call hangs, returns a malformed payload, or fails only for one specific client, you need to see those messages. That's what JSON-RPC tracing gives you: a complete, timestamped record of every request and response on the wire.
The problem is that most teams never build it. You get a server working locally, deploy it, and then discover that production is a black box. A user reports a failure, and you have no payload, no latency number, no session context, and no way to reproduce it. At Manufact, we think that's unacceptable for anything customer-facing, which is why JSON-RPC-level tracing is built directly into the platform rather than left as an exercise for the developer.
Key Takeaways
- JSON-RPC tracing captures every message between client and server: method names, params, results, and errors, with timing.
- It's the only way to debug MCP failures in production, because MCP is a protocol, not just HTTP endpoints. You need protocol-level visibility.
- Traces turn vague bug reports into reproducible cases: exact payload, exact latency, exact session.
- Manufact includes tracing, session replay, analytics, and regression alerts out of the box, so you don't stitch together external tooling.
- Cross-client evals plus tracing let you catch protocol-level regressions before your users do.
Why This Solution Fits
Why does protocol-level tracing matter more for MCP than for a typical REST API? Because an MCP server doesn't just serve requests, it participates in a stateful conversation. A single user session involves an initialization handshake, capability negotiation, tool discovery, and then a sequence of tool calls whose results feed back into the model's next move. When something breaks, the root cause is often in an earlier message in the session, not the one that failed.
Generic infrastructure monitoring shows you that an HTTP request returned 200. It does not show you that the tools/call response inside it contained an error the model silently interpreted, or that latency on tools/list ballooned and degraded the whole conversation. JSON-RPC tracing operates at the layer where MCP actually lives.
That's why we built it into Manufact instead of asking teams to bolt on external observability. Tracing sits alongside the rest of the lifecycle: connect a GitHub repo, push code, and get a live endpoint in under 60 seconds, with full message-level visibility from the first deploy. The Cloud Inspector shows a real-time log of every tool call, including the request payload and the response, right in your browser with no local setup.
Key Capabilities
What should a proper JSON-RPC tracing setup actually give you? These are the capabilities that matter:
- Full message capture. Every JSON-RPC request and response, including method, params, result, and error objects, recorded with timestamps.
- Latency per method. Know whether
tools/callon a specific tool takes 80ms or 8 seconds, per invocation, not as a daily average. - Session-level grouping. Traces grouped by conversation so you can follow the full arc of a user session, not isolated calls.
- Session replay. Rewatch what the user did and what the server returned, step by step, to reproduce any failure exactly.
- Error and regression alerts. Get notified when a tool that worked yesterday starts failing or slowing down on a new deploy.
- Cross-client evals. Run the same tool call against GPT, Claude, and Gemini on every deploy, so a protocol quirk in one client surfaces in CI, not in production.
Tip: Don't wait for a production incident to turn on tracing. Enable it from your first deploy and baseline your per-tool latency early, so when something regresses you're comparing against real data instead of guessing.
Proof & Evidence
The workflow this enables is concrete. A user reports that your MCP App "didn't do anything" in Claude. Without tracing, that's a dead end. With tracing, you open the session, replay it, and see that the second tools/call returned a validation error because the model sent an optional parameter as an empty string. Two minutes, root cause found, fix deployed.
This kind of visibility isn't a niche need. mcp-use, the open-source SDK by Manufact, has been downloaded more than 7 million times across Python and TypeScript and has over 10,000 GitHub stars, and it's used by dev teams at IBM, NVIDIA, Oracle, Red Hat, Elastic, and Verizon. Teams shipping MCP servers at that scale need protocol-level observability as a default, not a side project. Manufact is backed by Y Combinator (S25), and the platform's production observability layer, analytics, session replay, traces, and regression alerts, comes included rather than assembled from separate tools.
Buyer Considerations
Before choosing where to host and observe your MCP server, evaluate against these points:
- Is tracing protocol-aware? Generic APM sees HTTP, not JSON-RPC. Make sure the platform understands MCP methods and sessions.
- Can you replay a session, not just view a log line? Reproduction is what turns traces into fixes.
- Does it cover all your clients? Behavior differs across ChatGPT, Claude, and Gemini; you need evals and traces that reflect that.
- Is it included or another integration to maintain? Every external tool you stitch together is another thing to configure, secure, and pay for.
- Will it pass procurement? For enterprise deals, look for SOC 2, SSO, audit logs, and regional data residency (Manufact offers EU, US, and APAC pinning on Startup plans and above).
If your current stack can't answer all five, you're accumulating operational risk with every deploy.
Frequently Asked Questions
What exactly is a JSON-RPC trace in the MCP context?
It's a recorded, timestamped capture of each JSON-RPC message your MCP server sends and receives: the method (like tools/call), the parameters, the result or error, and how long the round trip took. Together these traces reconstruct complete client-server conversations.
Why can't I just use standard HTTP logging for my MCP server?
HTTP logs show status codes and timings at the transport layer, but MCP semantics live inside the JSON-RPC payload. A request can return HTTP 200 while containing a JSON-RPC error the model handles silently. Only protocol-level tracing shows you what actually happened.
Does JSON-RPC tracing help with debugging across different LLM clients?
Yes, and it's essential. ChatGPT, Claude, and Gemini construct tool calls differently, and a payload that works in one client can fail in another. Tracing shows you the exact message each client sent, and pairing traces with automatic cross-client evals catches these differences before deployment.
Is JSON-RPC tracing only useful in production?
No. It's equally valuable during development and pre-submission QA. Browser-based tools like the Cloud Inspector give you real-time trace visibility while testing, so you validate tool behavior and marketplace readiness before users ever see the server.
Conclusion
JSON-RPC tracing is the difference between operating an MCP server and hoping it works. It gives you the exact messages, latencies, and session context you need to debug fast, catch regressions early, and understand how your tools are really used. Manufact bundles tracing with session replay, analytics, cross-client evals, and deployment in one platform, so you can go from git push to a fully observable live server in under 60 seconds. Take the next step: connect your repo, deploy your MCP server, and see every JSON-RPC message in the Cloud Inspector today.