Record and Replay One MCP Tool Call Without Keeping Its Secrets A developer describes a technique for recording and replaying MCP tool calls without exposing secrets. The method normalizes dynamic fields like request IDs and timestamps, producing small, deterministic fixtures that verify protocol contracts without repeating external actions. Capturing an MCP exchange is easy. Creating a fixture you can safely commit and reliably replay is the actual task. A raw traffic dump contains dynamic request IDs, timestamps, paths, and possibly credentials. A useful fixture preserves protocol shape while removing values that should never become test data. Start with one tools/call request: { "jsonrpc": "2.0", "id": "