AI agent observability with deterministic record/replay for debugging agent failures.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Record your agent's LLM calls once, replay them offline in under 1 ms, zero API calls, zero cost.

Your LangGraph agent fails after step 8. LangSmith shows you what broke. To reproduce it: 8 more LLM calls. 30 more seconds. $0.15 more in API cost. If the failure was caused by a transient model output, you can't reproduce it at all.
Agent Observability fixes this. Record once. Replay offline in 0.93 ms. Zero API calls. Zero cost.
LangGraph support:
OpenAI Agents SDK support:

list, inspect, diff, replay, and run all support --json for machine-parseable output, so an orchestrating agent or CI job can call any of them the same way a person would and parse the result. (run --json prints its own status to stderr and the child process's output to stdout, ending with one final JSON summary line, since the child's own output can't be made structured.) show has no --json mode of its own. It accepts --errors-only to filter its output to failed spans instead. See the full CLI reference below for every subcommand's flags.

Want programmatic control instead of the CLI? Use the Python API:
Replay offline, no API calls, no tokens:
[!TIP] To store the input for later retrieval in replay, call
ctx.fixture.set_metadata('input', query)inside the recording context.
[!NOTE] Sync and async clients: Agent Observability intercepts
httpx.Client,httpx.AsyncClient, andrequests.Sessionβ including the async client used by default in the OpenAI Python SDK v1.x and Anthropic SDK. The patch is installed at request-dispatch time, so it also covers clients constructed before recording/replay starts (e.g. a module-levelopenai.AsyncOpenAI()instance).

agent-observability ships a Model Context Protocol server so an AI agent (Claude, Cursor, or any MCP-compatible client) can list, inspect, and replay recorded runs directly, without a human invoking the CLI by hand.
Install the extra:
Add it to your MCP client's config (for Claude Desktop, claude_desktop_config.json):
The server exposes one tool, run, that shells out to the agent-trace CLI with the given
subcommand and arguments plus --json, and returns the parsed JSON result:
Transport is stdio, so there is nothing to host: the MCP client spawns the server as a local
subprocess. Source: src/agent_trace/mcp_server.py.
LangGraph Β· OpenAI Agents SDK Β· CrewAI Β· AutoGen Β· LlamaIndex Β· Haystack Β· Agno Β· PydanticAI Β· Google GenAI
Plus: any httpx.Client, httpx.AsyncClient, or requests.Session β no framework required.
agent-trace has 7 subcommands. Every subcommand accepts -h/--help for the
same detail shown here.
agent-trace versionPrint the installed version and exit. No arguments.
agent-trace listList all recorded runs in the trace directory (~/.agent-trace/runs by
default, or $AGENT_TRACE_TRACE_DIR).
| Flag | Default | Description |
|---|---|---|
--json | off | Print machine-readable JSON instead of a human-readable table. |
agent-trace show <run_id>Pretty-print the stored trace.json for a run.
| Argument | Required | Description |
|---|---|---|
run_id | yes | Run ID, e.g. run_abc123def456. |
| Flag | Default | Description |
|---|---|---|
--errors-only | off | Only print ERROR-status spans, each with its captured exception text. |
show has no --json mode. It prints the trace (colorized via rich when
installed, plain json.dumps otherwise), not a structured summary object.
agent-trace replay <run_id>Enter replay mode for a run and print the resulting span tree, plus streaming
timing, HTTP error exchanges, and the same cross-span diagnostics show
prints (error classification, duplicate node spans, retry storms,
misattributed spans, checkpoint durability, zero-task updates).
| Argument | Required | Description |
|---|---|---|
run_id | yes | Run ID, e.g. run_abc123def456. |
--json | no | Print a structured JSON summary (fixture path, span/exchange counts, the original trace) instead of the human-readable span tree. |
agent-trace inspect <run_id>Auto-flag known malformed request/response shapes and cross-span anomalies for a run.
| Argument | Required | Description |
|---|---|---|
run_id | yes | Run ID, e.g. run_abc123def456. |
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/agent-observability-2)<a href="https://allmcps.com/mcp/agent-observability-2"><img src="https://allmcps.com/api/badge/agent-observability-2?style=directory" alt="Agent Observability on AllMCPs" /></a>