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. 1Facts
01 to 06Replays recorded MCP sessions as CI mocks; contract snapshots fail the pull request that breaks a tool.
From my CV, mcp-cassette
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
Contract drift is classified in four tiers: breaking, dangerous, minor, info.
From the mcp-cassette README, read 2026-10-08
Transports: stdio and Streamable HTTP; cassettes are append-only JSONL.
From the mcp-cassette README, read 2026-10-08
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
TypeScript, Apache-2.0.
From my earlier site's case study and the mcp-cassette README
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.