Sheet 07 of 08mcp-cassette
Back to plate 07

Record once, replay forever

mcp-cassette replays recorded MCP sessions as CI mocks, so contract snapshots fail the pull request that breaks a tool. It sits between an agent and a server as a transport-level proxy, writes every frame to an append-only JSONL cassette, and replays it as a deterministic mock. A safety lint catches poisoned tool descriptions.

Period
Aug 2026 - Present
Role
Open source testing toolApache-2.0
Stack
TypeScript, stdio, Streamable HTTP
Proof

Record and replay

Fig. 1
Fig. 1mcp-cassette sits between agent and server as a transport-level proxy, records every frame to an append-only JSONL cassette, then replays it as a deterministic mock.

Facts

01 to 06
  1. Replays recorded MCP sessions as CI mocks; contract snapshots fail the pull request that breaks a tool.

    From my CV, mcp-cassette

  2. Safety lint of 16 rules (CAS-L001 through CAS-L016), mapped to OWASP MCP Top 10 and SAFE-MCP references.

    From the mcp-cassette README, v0.4.0

  3. Contract drift is classified in four tiers: breaking, dangerous, minor, info.

    From the mcp-cassette README, read 2026-10-08

  4. Transports: stdio and Streamable HTTP; cassettes are append-only JSONL.

    From the mcp-cassette README, read 2026-10-08

  5. Secrets redaction is on by default, with deterministic placeholders, so the secret never lands on disk and the cassette still matches.

    From my earlier site's case study and the mcp-cassette README

  6. TypeScript, Apache-2.0.

    From my earlier site's case study and the mcp-cassette README

Fig. 2The safety lint at release v0.4.0, 16 rules from CAS-L001 through CAS-L016, and the four tiers contract drift is classified in.

Why it is hard

Replay has to be deterministic and redaction cannot break the match, two properties that destroy each other unless the placeholders are deterministic too.