VirtuProbe Studio
Download
← All posts
Build log 13 July 2026 8 min read

Why testing an MCP server didn't need a new protocol.

An MCP server gets the same first questions as any new endpoint: does it work and what happens when I send it something it didn't expect? MCP is JSON-RPC over HTTP with a session header and an optional event stream, so supporting it in VirtuProbe turned out to be mostly HTTP testing we already had (the one part that wasn't is the streaming, which is where the work went).

The Model Context Protocol is how AI agents talk to the servers that give them their tools and data. Those servers are ordinary software with ordinary bugs, so a workbench that already speaks HTTP, chains requests and fuzzes fields ought to be able to point straight at one. The question was how much new code that would take.

MCP on top of HTTP

An MCP call is a JSON-RPC 2.0 message in an HTTP request body:

POST /mcp Content-Type: application/json Accept: application/json, text/event-stream { "jsonrpc": "2.0", "id": 2, "method": "tools/call", "params": { "name": "search", "arguments": { "q": "kerberos" } } }

Three things make it more than a plain POST. The server can answer with application/json or with text/event-stream, a live stream of events ending in the result. It's stateful: an initialize call returns an Mcp-Session-Id that every later call has to echo back as a header. And there are two transports in use: the current Streamable HTTP (one endpoint, from the 2025-03-26 spec) and the older HTTP + SSE two-endpoint style. All three ride on ordinary HTTP requests and responses, which is why none of them needs a protocol module of its own the way DNS or LDAP does.

So it became a body mode

We'd made this decision once already. When GraphQL landed, we treated it as a POST with a particular body shape rather than as a protocol of its own and added a mode to the HTTP probe's Body tab that builds that shape for you. MCP is the same situation, one step more structured, so it got the same treatment: a third option next to Raw and GraphQL.

Choose MCP and the body editor becomes a small form: pick the transport, pick the method (initialize, tools/list, tools/call, resources/read…), fill the JSON params and VirtuProbe serializes the JSON-RPC envelope, sets Content-Type plus the streaming Accept header and drops the id for notifications the way the spec requires. Reopen a probe whose body is already a JSON-RPC envelope and VirtuProbe recognizes it and opens the form for you. Flip back to Raw at any point and the envelope is right there to hand-edit.

Building a parallel "MCP client" would have meant a second HTTP stack to keep in step with the first.

Staying inside the HTTP probe means MCP inherits everything the probe already has: the credential store and OAuth2, history and diffing, import and export, with {{variables}} in every field. Existing probes needed no migration and no workspace reset. An MCP body is just a string in the same field a Raw body lives in.

The session is a chain

We didn't need a session manager for the stateful part, because a VirtuProbe chain already threads data from one step into the next. Opening a session, listing the tools and calling one is a four-step chain:

# 1 initialize → extract MCP_SESSION_ID into {{sid}} # 2 notifications/initialized → send header Mcp-Session-Id: {{sid}} # 3 tools/list → extract MCP_TOOL_NAMES (newline-joined) # 4 tools/call → read the answer with MCP_RESULT

The session id is extracted once and replayed as a header, exactly the way you'd thread a bearer token or a CSRF value through any other flow. MCP_TOOL_NAMES comes back newline-joined, which lets it drop straight into an ITERATE step when the test is to call every advertised tool in a loop. MCP_ERROR_CODE gives you the JSON-RPC error code when a call is rejected.

The part we did have to build: streaming

Until MCP, every send in the HTTP probe was synchronous: fire the request, wait, render the response. An MCP server answering over text/event-stream emits a run of events (progress notifications and partial results) before the final answer.

So VirtuProbe now reads the stream as it arrives. A stream card fills up event by event while the request is still open and then condenses to the final JSON-RPC result in the normal response panel below. The stream card reuses the mechanism the MITM proxy already had for showing traffic as it passes, scoped to the one request, so it took little new code.

Testing beyond connect, list and call

VirtuProbe connects, lists the tools and calls one from a schema-aware form, as the reference MCP dev tooling does. The rest of the workbench applies to MCP as well:

  • Tool poisoning. Every tools/list and tools/call response is scanned for prompt injection, the class of attack where a tool's description or result carries instructions meant to hijack the agent reading it. A warning appears above the body when something in the payload looks like it's talking to the model instead of to you.
  • Fuzzing the envelope. Because an MCP request is a request like any other, the same mutation engine that malforms an HTTP message can malform a JSON-RPC one (wrong types, missing ids, oversized params, a method that doesn't exist) so you can watch how the server holds up.
  • Chaining and proof. An MCP call can sit in the middle of a cross-protocol chain: authenticate over HTTP, call a tool, verify the side effect it claimed to cause in a database or a mailbox.

Which tier covers what

Sending an MCP request, from a probe or from a chain step, is part of the Engineering tier. Intercepting MCP traffic through the proxy is Engineering too, while fuzzing the JSON-RPC is Security. Designing and saving an MCP probe is free on any tier, so the AI assistant can still offer to build you an MCP chain whatever you've paid for.

Plain HTTP requests are free forever, along with GraphQL, request chaining, OAuth2 and the built-in AI assistant. VirtuProbe runs locally on macOS, Linux or Windows, with no account. The Windows and enterprise auth schemes and the wider integration protocols belong to the Engineering tier. Raw byte-for-byte sends are Security.