mcpreplay

Your MCP server drifts. Nobody notices until the agent breaks.

MCPReplay records real client traffic, replays it on every commit, and fails the build the moment a tool response stops matching contract.

$ npx mcpreplay record
 captured 12 tool calls → tests/mcp/fixtures.json

# later, in CI…
$ npx mcpreplay replay
 tools/search: response shape drifted
  - results: [{ title, url: "string" }]
  + results: [{ title, url: { href, label } }]

FAIL  1 tool drifted · exit 1

Free CLI + GitHub Action launching soon. Hosted dashboard waitlist open now.

How it works

  1. 1

    Record

    $ npx mcpreplay record

    Proxy your real dev MCP session. Every tool call + response is snapshotted into tests/mcp/*.json.

  2. 2

    Commit

    $ git add tests/mcp/ && git commit

    Fixtures ship with your code. Reviewed in PRs like any other test. No cloud round-trip.

  3. 3

    Replay in CI

    # .github/workflows/mcp.yml
    - uses: mcpreplay/action@v1

    One workflow step. The PR fails the instant any tool response drifts from the last green run.

Why MCPReplay