# agent-strace

> agent-strace is an open-source MCP server for developer tools. Replay, explain and health-check recorded coding-agent sessions from your own machine. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/siddhant-k-code/agent-trace
- **MCP Registry name:** io.github.Siddhant-K-code/agent-trace
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

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

### Cursor (~/.cursor/mcp.json)

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

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

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

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

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

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

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

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

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

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

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "agent-trace": {
      "command": "uvx",
      "args": [
        "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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/agent-strace
