io.github.mdfifty50-boop/agent-replay

Official registry Developer tools

Record and replay AI agent execution for debugging

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package agent-replay-mcp
Claude Code
claude mcp add agent-replay -- npx -y agent-replay-mcp@0.1.1
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "agent-replay": {
            "command": "npx",
            "args": [
                "-y",
                "agent-replay-mcp@0.1.1"
            ]
        }
    }
}

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. agent-replay-mcp
  2. Install
  3. Tools
  4. Resources
  5. Usage Pattern
  6. Tests
  7. License

agent-replay-mcp

MCP server for agent session recording and replay — debug non-deterministic agent behavior with session comparison and divergence detection.

Record every action an agent takes, replay sessions step by step, diff two runs to find behavioral regressions, and pinpoint exactly where an agent diverged from expected output.

Install

npx agent-replay-mcp
Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agent-replay": {
      "command": "npx",
      "args": ["agent-replay-mcp"]
    }
  }
}
From source
git clone https://github.com/mdfifty50-boop/agent-replay-mcp.git
cd agent-replay-mcp
npm install
node src/index.js

Tools

record_session

Start recording all actions for an agent session.

ParamTypeDefaultDescription
agent_idstringrequiredUnique agent identifier
metadataobject{}Optional metadata (task, model, environment)

Returns a session_id for use with other tools.

stop_recording

Stop recording and return a session summary.

ParamTypeDescription
session_idstringSession ID from record_session

Returns: action count, total duration, action type breakdown.

log_action

Log a single action during a recording session.

ParamTypeDefaultDescription
session_idstringrequiredActive session ID
action_typestringrequiredType (tool_call, llm_response, decision, error)
inputanyrequiredInput to the action
outputanyrequiredOutput from the action
reasoningstring""Agent reasoning for this step
duration_msnumber0Action duration in milliseconds
replay_session

Replay a recorded session step by step with full action detail.

ParamTypeDescription
session_idstringSession ID to replay

Returns: complete action sequence with timing, reasoning, inputs, and outputs.

compare_sessions

Behavioral diff between two sessions. Aligns actions by step index and highlights differences.

ParamTypeDescription
session_id_1stringFirst session
session_id_2stringSecond session

Returns: similarity ratio, identical/divergent step counts, first divergence step, and per-step diffs.

find_divergence_point

Find where an agent first deviated from expected output.

ParamTypeDescription
session_idstringSession to analyze
expected_outputanyExpected final output, or array of per-step expected outputs

If expected_output is an array, compares step by step. If a single value, finds the last matching output and flags the next step as the divergence point.

export_session

Export a session for sharing and offline analysis.

ParamTypeDefaultDescription
session_idstringrequiredSession to export
formatstring"json""json" or "markdown"

Markdown format produces a readable transcript with step headers, reasoning, and code blocks.

Resources

URIDescription
agent-replay://sessionsAll recorded sessions with status and action counts

Usage Pattern

1. record_session — start recording at agent launch
2. For each agent action:
   - log_action — capture input, output, reasoning, timing
3. stop_recording — finalize the session
4. Debug:
   - replay_session — review what happened step by step
   - compare_sessions — diff today's run vs yesterday's
   - find_divergence_point — pinpoint where it went wrong
5. Share:
   - export_session — JSON for tooling, markdown for humans

Tests

npm test

License

MIT

Frequently asked questions

What is io.github.mdfifty50-boop/agent-replay?

Record and replay AI agent execution for debugging

How do I install io.github.mdfifty50-boop/agent-replay?

It runs on your machine. In Claude Code: claude mcp add agent-replay -- npx -y agent-replay-mcp@0.1.1. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.mdfifty50-boop/agent-replay need an API key?

Its registry entry lists no required key or secret. Some features may still need an account with the service it connects to.

Is io.github.mdfifty50-boop/agent-replay open source?

Its code is public on GitHub, but the repository does not declare a standard license.

Who maintains io.github.mdfifty50-boop/agent-replay?

It is published by mdfifty50-boop. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.