Skip to content
MCP server

agent-strace

Replay, explain and health-check recorded coding-agent sessions from your own machine

Runs locally

agent-strace is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.129.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add agent-trace -- uvx agent-strace

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "agent-trace": {
      "command": "uvx",
      "args": [
        "agent-strace"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "agent-trace": {
      "command": "uvx",
      "args": [
        "agent-strace"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "agent-trace": {
      "command": "uvx",
      "args": [
        "agent-strace"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "agent-trace": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agent-strace"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add agent-trace -- uvx agent-strace

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.agent-trace]
command = "uvx"
args = ["agent-strace"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "agent-trace": {
      "command": "uvx",
      "args": [
        "agent-strace"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user agent-trace uvx -- agent-strace

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "agent-trace": {
          "command": "uvx",
          "args": [
            "agent-strace"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • AGENT_TRACE_DIRTrace directory to read. Defaults to .agent-traces in the working directory.

About agent-strace

Everything this server reads is a local trace store: agent-strace writes each coding-agent session (prompts, tool calls, file operations, commands, failures) to files, and the MCP server answers questions about those files. The registry entry lists the areas it covers as events, summaries, diffs, health, skills and PR reviewability.

The health view rates the captured evidence as healthy, partial, unknown or invalid and points out gaps and known capture limits for each provider. The README says it works with Claude Code, Codex, Copilot CLI, Gemini CLI and Cursor, and can also wrap any MCP server as a recording proxy.

It installs from PyPI, uses only the Python standard library, and reads the directory in the AGENT_TRACE_DIR variable (default .agent-traces in the working directory). Secret redaction is on by default. The README warns it is experimental and should not be treated as a production security boundary.

What it does

Session replay
Steps through a recorded session in order, in the terminal or as HTML, and can compare two sessions side by side.
Evidence health ratings
Rates a trace healthy, partial, unknown or invalid and lists observed gaps and provider capture limits.
Plain-English summaries
Explains a session in phases without needing an LLM.
Skill usage report
Reports which Claude Code skills were available, loaded and followed across recorded sessions.
PR reviewability check
Checks how reviewable a pull request is from the session that authored it.
Redacted sharing
Writes a privacy-minimized HTML evidence packet, with a dry run that previews what would be disclosed.

Good for

  • Replay what a coding agent did before merging its changes
  • Find out which installed skills an agent never loads
  • Check whether a trace has gaps before using it as evidence in code review
  • Compare two agent sessions after a regression
  • Record and inspect the traffic of another MCP server

Pricing

Open source

Free; install from PyPI

agent-strace FAQ

Where does the data live?

In local files. Sessions go to the directory in AGENT_TRACE_DIR, or `.agent-traces` in the working directory if it is not set.

Which coding agents can agent-strace record?

The README lists Claude Code, Codex, Copilot CLI, Gemini CLI and Cursor, plus any MCP server through its proxy, and partial capture of the Copilot cloud agent.

Does agent-strace need an LLM to summarize sessions?

No. The explain command produces a plain-English phase summary without one.

Is agent-strace ready for production use?

The README marks it experimental and says not to treat it as a production security boundary without your own threat model and testing.

Is agent-strace free?

Yes. agent-strace is open source, so you can use and self-host it for free.

How do I add agent-strace to Claude Code?

Run this command in your terminal: claude mcp add agent-trace -- uvx agent-strace

What are the best alternatives to agent-strace?

The closest alternatives to agent-strace are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers