codex-trajectory
A read-only MCP server that turns Codex task logs into privacy-aware event ledgers and interactive timelines, providing tools to list sessions and retrieve trajectory data with summary or full detail levels.
README
Codex Trajectory
Read this in 简体中文.
Codex Trajectory is a read-only Codex plugin that turns local task logs into a privacy-aware event ledger and interactive timeline. It shows turns, approximate model steps, reasoning summaries, assistant messages, tool timing, subagents, compaction, token usage, and failures without changing the original logs.

Install
Prerequisites: Codex and uv on macOS, Linux, or Windows.
codex plugin marketplace add icesixgod/codex-trajectory
codex plugin add codex-trajectory@icesixgod
Open a new Codex task so the installed tools and skill are loaded. Then ask:
Show the safe trajectory summary for this Codex task.
Privacy model
Safe summary mode is the default. It returns event names, timing, status, token usage, and bounded summaries while hiding tool inputs, tool outputs, raw record metadata, absolute log paths, Git remotes, base instructions, and encrypted reasoning.
Full details are opt-in through detailLevel: "full" or the viewer's confirmation button. They expose bounded record details to the active Codex conversation, but still never return base instructions or encrypted reasoning. The plugin has no telemetry and makes no network requests. See PRIVACY.md.
Tools
| Tool | Purpose |
|---|---|
list_codex_sessions |
List recent task metadata without transcript bodies. |
get_codex_trajectory |
Return structured trajectory data for analysis. |
show_codex_trajectory |
Return the trajectory with an interactive MCP Apps viewer. |
get_codex_trajectory and show_codex_trajectory accept sessionId, maxRecords (50–1000), includeArchived, and detailLevel (summary or full). Omit sessionId for the latest task.
The output uses schemaVersion: 1. Codex logs do not expose DeepSeek Harness step boundaries directly, so a new approximate step begins when model output resumes after one or more tool results. Unknown event types are ignored; malformed complete JSONL lines are reported in warnings, while an unfinished tail line is tolerated during active writes. See the interface reference.
Development
uv sync --group dev
uv run ruff format --check .
uv run ruff check .
uv run mypy
uv run pytest --cov --cov-report=term-missing
The runtime has no third-party Python dependencies. Development and tests are locked in uv.lock. See CONTRIBUTING.md.
Attribution
The event-ledger and trajectory-view concepts are adapted from @deepseek-ai/dsh-client-ui-trajectory under the MIT License. Codex uses a different persisted event vocabulary, so this repository implements a Codex-specific projection and bundles no Cordis or React runtime.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.