# mcp-agent-trace

Source: https://glimind.com/server/pypi%2Fmcp-agent-trace
Registry id: `pypi/mcp-agent-trace`
Status: unknown

## Install

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

Claude Code:

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

## Tools (12)

- `annotate`: Add human annotation to an event
- `detect_loops`: Find repeated tool-call patterns
- `end_trace`: End session, compute summary metrics
- `export_trace`: Export as JSON for external analysis
- `get_metrics`: Token usage, tool calls, latency, loop detection
- `get_stats`: Aggregate statistics across sessions
- `get_timeline`: Chronological event timeline
- `get_trace`: Get full trace tree for a session
- `list_sessions`: List all trace sessions
- `log_event`: Record a structured event
- `reset`: Clear all sessions and traces
- `start_trace`: Begin a new trace session

Measured by Glimind (https://glimind.com): MCP handshake + tool list only, no tool is ever called. CC BY 4.0.
