# agent-strace MCP server

> Records and analyzes coding agent sessions to replay events, summarize phases, and evaluate evidence health.

- Repository: https://github.com/Siddhant-K-code/agent-trace
- Page: https://hostedmcp.org/servers/siddhant-k-code/agent-trace
- Transport: stdio
- Stars: 106
- License: MIT
- Latest version: 0.110.1

## Install

### Claude Code

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

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

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

### VS Code (`.vscode/mcp.json`)

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

### VS Code CLI

```sh
code --add-mcp '{"name":"agent-trace","type":"stdio","command":"uvx","args":["agent-strace"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

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

### Codex config.toml (`~/.codex/config.toml`)

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

### Gemini CLI

```sh
gemini mcp add -s user agent-trace uvx -- agent-strace
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AGENT_STRACE_ENDPOINT` | no | no |  |
| `AGENT_TRACE_DIR` | no | no | Trace directory to read. Defaults to .agent-traces in the working directory. |

## FAQ

### What does agent-strace record?

It records what a coding agent did in a session, including prompts, tool calls, file operations, commands, and failures, as local files.
