agent-cassette
Records and deterministically replays Ollama LLM HTTP/SSE token streams and tool-call interactions, enabling offline agent tests without a live model server.
Records and deterministically replays OpenAI and OpenAI-compatible LLM HTTP/SSE token streams and tool-call interactions, enabling offline agent tests without live API keys.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-cassetterecord my vitest run into a cassette so CI can replay it offline"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-cassette
Deterministic VCR cassette recorder and offline replay proxy for LLM HTTP/SSE streams and MCP stdio runs. Replay multi-turn agent tests in ~0ms in CI without GPUs or live API keys.
Install
bunx agent-cassette record -- npm test
npx agent-cassette record -- npm test
# or install in your project / globally
bun add -d agent-cassette
npm i -D agent-cassetteJSR:
bunx jsr add @kanchingyg/agent-cassette
npx jsr add @kanchingyg/agent-cassetteRelated MCP server: ResiliReplay
Quick start
# Record live LLM HTTP/SSE and MCP interactions into a deterministic cassette
npx agent-cassette record -- npm test
bunx agent-cassette record -- bun test
# Replay offline in CI in ~0ms with zero network calls or API keys
npx agent-cassette replay -- npm test
# Run as an MCP server over stdio
npx agent-cassette --mcpFeatures
HTTP & SSE stream recording: Captures chunked token streams from OpenAI, Anthropic, Ollama, and OpenAI-compatible endpoints and replays them deterministically.
Prompt & tool-call hashing: Normalizes volatile headers and timestamps while matching prompt and tool-call signatures.
Automatic secret scrubbing: Strips
Authorization,x-api-key, and bearer tokens before writing cassette files to disk.SSRF & path containment: Blocks private-network target redirection and enforces workspace path containment on cassette reads/writes.
MCP setup
{
"mcpServers": {
"agent-cassette": {
"command": "npx",
"args": ["-y", "agent-cassette", "--mcp"]
}
}
}License
This server cannot be deployed
Maintenance
Related MCP Connectors
Security & DLP proxy for MCP: tool-poisoning scans, PII redaction on tool args/results. Beta.
Real-time MCP & A2A prompt-injection, jailbreak, and tool-schema poisoning firewall for AI agents.
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
LLM cost optimization gateway, repo token-waste auditor & model arbitrage MCP server.
51
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceVCR for MCP servers: a zero-dependency stdio proxy that records and replays MCP JSON-RPC tool calls to local cassette files, enabling deterministic, offline testing of AI agent workflows without side-effects or rate limits.1MIT
- AlicenseNot gradedqualityBmaintenanceLocal-first MCP and coding-agent reliability harness that captures bounded, sanitized failure evidence and generates deterministic executable regression tests. Capture is opt-in; no API key or hosted service is required.2Apache 2.0
- FlicenseNot gradedqualityCmaintenanceEnables safe use of any MCP server by proxying and live-scanning all tool requests and responses, blocking or redacting poison descriptions, indirect prompt injection, malicious arguments, and unauthorized destinations.-

jmunch-mcpofficial
AlicenseNot gradedqualityAmaintenanceEnables transparent proxying of upstream MCP servers and OpenAI/Anthropic API calls so large tool responses are handle-ified and can be queried with universal verbs, cutting token usage while preserving access to full payloads.33MIT