Agent Trace
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Agent Trace: let Codex recover another chat’s context
Agent Trace reads conversation records already saved on your computer, pairs tool calls with results, and exposes compact or detailed views through MCP. An agent can search earlier work, retrieve the relevant thread, and read it again when new records arrive.
This repository contains the parsing code, a runnable MCP server, and the app’s structured-output builder. Start with the Codex example below. The desktop app’s discovery and interface are separate.

The rebuilt app, filtered to the same Codex example. Click to inspect the controls and recorded answer. The agent’s retrieval is demonstrated below.
A real Codex retrieval
One Codex chat calculated a fictional repair café’s fuse budget. A separate Codex agent received only the source chat ID and a question. Through the installed Agent Trace plugin, it recovered:
Saturday at 10:00; £21 for seven fuses at £3 each.
The source chat was then told the opening time had changed. A fresh read of the same compact scope let the reader answer:
Saturday at 10:30; the fuse budget is still £21.
Rereading its earlier snapshot returned the original 10:00 text unchanged. The detailed view also included the Python command and its output, 21.
Inspect the recording, actual tool requests and limits →
Related MCP server: coding-session-history-mcp
Run the mechanism
Python 3.10+ is required. From a clone:
python3 -m venv .venv
.venv/bin/python -m pip install '.[mcp]'
.venv/bin/python tools/demo_codex.pyThis launches a real stdio MCP server, reads the selected recording, supplies its later records, and verifies that a fresh read changes while the old snapshot stays fixed. It needs no model account. It replays retrieval; the recorded Codex agents are not rerun.
Compact retains requests, visible assistant messages and selected command/path fields, omitting tool outputs. Detailed adds recorded arguments and outputs in source-record order. Neither can recover missing or truncated provider data. Refresh means rereading a file; this example has no watcher.
Follow the code
Step | Owner |
Local records → turns and paired evidence | |
Turns → compact or detailed text | |
Search → fresh read → stable pages | |
Text → source-linked JSON index |
The provider parsers and JavaScript builder are copied from Agent Trace. The public registry, views and MCP adapter are smaller implementations. The manifest explicitly selects readable files. Integration and boundaries explain how agents use the plugin and skill.
Reproduce outputs, inspect provenance and run checks · Parser provenance · Layout check
The feedback I’m looking for
Before releasing the full app, I’d like advice on the Codex integration: should a local history reader use the documented app-server interface instead of reading session files directly, and which stability expectations should it follow? The useful part here is selecting and reusing recorded context.
Apache-2.0. Independent software by Will Cook. Security reporting.
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and inspect source-pinned agent skills, plugins and tools through a free public MCP.
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Search MCP servers, agent skills and open-source AI projects, plus AI tools. Read-only.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceEnables semantic search and retrieval of archived AI conversations from multiple providers via the MCP protocol, allowing thread continuation and integration with MCP-capable tools.489 npm21MIT
- AlicenseNot gradedqualityAmaintenanceEnables searching local OpenAI Codex conversation history by keywords, project, date, or role, listing sessions, and retrieving exact supporting messages through MCP tools.1MIT
- FlicenseNot gradedqualityFmaintenanceEnables AI coding agents to persistently store and retrieve conversation history with hybrid semantic and keyword search, cross-encoder reranking, session filtering, and archiving through MCP tools.-
- AlicenseNot gradedqualityBmaintenanceEnables searching and retrieving ChatGPT and Claude conversation exports locally, allowing assistants to fetch handoff context and continue conversations through read-only MCP tools.MIT