Skip to main content
Glama

codex-bridge

Zero-dependency MCP server & CLI to search, incrementally read, monitor, and hand off local OpenAI Codex sessions across AI agents.

CI Python 3.9+ Dependencies: Zero License: MIT

English | 简体中文

Why

OpenAI Codex is great at heavy engineering work, but its defensive communication ("Note: this does not necessarily mean...", endless caveats) and huge raw JSONL logs make it tiring to read directly.

The idea: let Codex focus on execution, and use Antigravity (AGY), Claude Code, or Cursor as your straight-talking hub agent. codex-bridge connects them locally with zero third-party dependencies.

Related MCP server: transcripts-mcp

Features & How It Works

flowchart LR
    C[OpenAI Codex<br/>Local / Remote SSH] -- "~/.codex/*.jsonl" --> B[codex-bridge<br/>Index · Filter · Compact]
    B -- "MCP (incremental)" --> H[Hub Agent<br/>AGY / Claude / Cursor]
    H -- "handoff (codex queue)" --> C
  • Clean & Compact: Turns noisy Codex logs into token-efficient transcripts with automatic branch, commit, file, and error extraction.

  • Incremental Sync: Fetches only new turns (only_new) and scopes metadata to the requested slice — no re-reading history.

  • Fast Search & Digests: Local SQLite FTS5 search with optional custom synonyms and persistent session summaries.

  • Live Status & Handoff: Lightweight running/idle status checks plus one-step task handoff back to Codex via codex queue.

Quick Start

git clone https://github.com/WWandP/codex-bridge.git
cd codex-bridge
python3 codex_sessions_mcp.py --status

Connect to Your MCP Client

Antigravity (agy)

agy mcp add codex-bridge /usr/bin/python3 /path/to/codex-bridge/codex_sessions_mcp.py

Claude Code

claude mcp add codex-bridge -- python3 /path/to/codex-bridge/codex_sessions_mcp.py

Cursor / Windsurf / Generic mcp_config.json

{
  "mcpServers": {
    "codex-bridge": {
      "command": "python3",
      "args": ["/path/to/codex-bridge/codex_sessions_mcp.py"]
    }
  }
}

CLI Shortcuts

python3 codex_sessions_mcp.py --session-status latest   # Check running/idle & latest commit
python3 codex_sessions_mcp.py --search "keyword"        # Search past sessions
python3 codex_sessions_mcp.py --read latest --last-turns 3
python3 codex_sessions_mcp.py --read latest --export recap.md

Want a ready-to-use agent workflow prompt? See examples/skill/SKILL.md.

Contributors

  • @WWandP — Creator & maintainer

  • Antigravity (Google DeepMind) — Co-developer & design collaborator

License

MIT © WWandP

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for unified full-text search across chat histories from Claude Code, Codex, Cursor CLI, and Antigravity CLI, using SQLite FTS5. Provides read-only tools to search sessions, list conversations, and retrieve session details.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching and reading local Cursor, Claude Code, and Codex session transcripts from any MCP client, with fuzzy, regex, and full-text search, plus optional semantic search.
      14
      MIT
    • A
      license
      C
      quality
      B
      maintenance
      A local SQLite-backed MCP server that gives AI coding agents persistent cross-session memory and invariants, Turn-0 workspace grounding with spin-loop and output-defect guards, and two-phase-commit staging so file edits are audited and applied atomically. It also exposes AST symbol/call-graph search, bounded page memory, and workspace document retrieval, letting agents work safely across sessions without any cloud dependency.
      39
      317 npm
      3
      MIT