I wrote this as part of the Kiroween 2026 hackathon (Frankenstein category).
One field renamed in an MCP server. The server's tests were updated with it, so they stay green. A caller that still reads total finds it gone.
That is the failure I wanted to catch before shipping, and I wanted to catch it using what an agent actually called, not what the server says it can do. This is a write-up of what worked, what the obvious check missed, and one result that found nothing.
The obvious check sees too little
The demo server (hollow-inn, ours) has three versions. v2 carries three breaks I planted on purpose:
quote renames total to total_cents, search_rooms changes a default limit, and cancel_booking becomes booking_cancel.
An input-schema diff of tools/list (tools removed, added, inputSchema changed) reports 2 changes: the removed cancel_booking and the added booking_cancel. The quote rename and the search_rooms default are invisible to it, because neither touches an input schema.
Replaying ten recorded calls against v2:
HOLD · 4 rattled, 1 cracked · 10 jars compared · 4 of 6 tools · not recorded: booking_cancel, get_room
SPC-0002 · quote · rattled · /total, /total_cents · suspected rename from /total ×100
SPC-0010 · search_rooms · rattled · /rooms, /rooms/r-08, /rooms/r-09 · -
SPC-0009 · cancel_booking · cracked · - · tool not in tools/list
(evidence/replay/racks-vs-v2.txt, trimmed)
Five of ten recorded calls came back different, four of them in tools whose inputs never changed. That is the whole argument for replaying calls instead of diffing schemas.
Capture from inside the agent
The calls come from real Kiro CLI sessions. A pair of Kiro hooks, PreToolUse and PostToolUse, each with a per-server @hollowinn matcher, see the tool input and response from inside the agent, so there is no proxy and no change to the server. The PostToolUse half:
{
"name": "specimen-jar-post",
"trigger": "PostToolUse",
"matcher": "@hollowinn",
"action": { "type": "command", "command": "npx --no-install specimen hook post --server hollowinn" }
}
The PreToolUse half (specimen-jar-pre.json) runs the same command with hook pre. The CLI is not published to npm: run npx specimen from a clone of the repo after npm ci.
Each call is sealed as a jar: request and response text byte for byte, redacted on write, checksummed. The hook costs p50 465 / 474 ms (pre / post) per call (CLI wall-clock) over 30 fresh npx processes per hook on my laptop (evidence/bench/hook.md), excluding Kiro's own hook launch.
Closing the loop
A red jar goes to a Kiro custom agent that may only write under .kiro/specs/; it files a bugfix spec with the captured call as the repro, and a deterministic check-spec accepts or rejects it. Kiro's Bug Fix workflow then designs the fix and executes its implementation tasks (for two specs I ran the final acceptance steps myself). After three specs, v2.1 replays SHIP, 10 of 10. Three of those jars carry one new compatible field; --strict calls that HOLD.
The null result
Run against a server I did not write (@modelcontextprotocol/server-memory 1.0.0 to 2.2.1), the replay found no break: HOLD, 3 preserved, 2 unsealed. The two unsealed ones exist because that server also returns structuredContent that a text-only jar cannot compare. That is a limit of my jar format, not a clean bill for the server.
What I would not claim
Not the first MCP record/replay tool (mcp-recorder, AgentVCR and mcpsnoop exist). Ten jars, five of six tools; SHIP means "clean on the recorded set". The breaks are mine. No outside user has run it yet.
Live cabinet (replays in your browser): https://specimen.edycu.dev/ · Code (MIT): https://github.com/edycutjong/specimen · Built for Kiroween 2026 (Frankenstein).
Top comments (4)
This is a sharp diagnosis, Edy. The input-schema diff reporting only 2 changes while the replay found 5 different responses is the kind of gap that is easy to miss — especially the total to total_cents rename, where the server's own tests stay green because they were updated with the rename, and only a real caller still reading total feels the break. That 4 of the 5 differences came from tools whose inputs never changed makes the case for replaying real calls, not just diffing schemas.
I also liked the honesty about the null result on server-memory: two unsealed jars because structuredContent cannot be compared as text, and calling that a limit of the jar format rather than a clean bill of health. If you extend the format, would you add an output-schema comparison next, or a structuredContent-aware comparison for those unsealed jars?
Input-schema diffs only guard half the contract. On an MCP server, changing a response field name, path format, or default limit leaves
tools/listcompletely green and usually passes the server's own tests if they were updated in the same PR, while silently breaking what the agent expects back. Capturing realPreToolUse/PostToolUsejars from inside the client avoids having to wire up a proxy or instrument the server just to regression-test response shapes.The 2-versus-5 gap is the cleanest version of an argument we keep making from the other side: a declared interface is a claim, and the recorded calls are the evidence. Our release gate learned the same lesson in reverse — the success message said the change landed, and only reading the live surface back showed it hadn't — so we stopped trusting declarations the tool makes about itself. Your quote rename is the sharp case: total to total_cents never touches an input schema, so any check that only diffs what a server says it accepts is structurally blind to what it stopped returning. On the null result: the two unsealed server-memory jars exist because that server returns structuredContent your text-only jar can't compare — do you see the jar format growing a structured comparison, or is that class of server simply outside what replay can honestly verdict, the way you'd rather report HOLD than SHIP?
Replaying the real calls catches what a schema diff can't: the shape holds while the values move. THOL grades the same way, each run checked by a programmatic verifier against hidden ground truth, since a shape check alone passes wrong answers. Did the 5 changed fields break the agent?