Context7
Up-to-date docs for AI agents
Beschreibung vom Entwickler (englisches Original)
Wraps Codex CLI as MCP tools: codex, review, query, search, structured, ping, listSessions.
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
CODEX_CLI_PATH, CODEX_DEFAULT_MODEL, CODEX_FALLBACK_MODEL, CODEX_MAX_CONCURRENT, CODEX_MCP_SERVERSDu brauchst
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"codex-bridge": {
"command": "npx",
"args": [
"-y",
"codex-mcp-bridge"
],
"env": {
"CODEX_CLI_PATH": "your-value",
"CODEX_DEFAULT_MODEL": "your-value",
"CODEX_FALLBACK_MODEL": "your-value",
"CODEX_MAX_CONCURRENT": "your-value",
"CODEX_MCP_SERVERS": "your-value"
}
}
}
}Führe das in deinem Terminal aus
claude mcp add codex-bridge --env CODEX_CLI_PATH=your-value --env CODEX_DEFAULT_MODEL=your-value --env CODEX_FALLBACK_MODEL=your-value --env CODEX_MAX_CONCURRENT=your-value --env CODEX_MCP_SERVERS=your-value -- npx -y codex-mcp-bridgeTrag die leeren Werte ein, bevor du ihn startest.
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"codex-bridge": {
"command": "npx",
"args": [
"-y",
"codex-mcp-bridge"
],
"env": {
"CODEX_CLI_PATH": "your-value",
"CODEX_DEFAULT_MODEL": "your-value",
"CODEX_FALLBACK_MODEL": "your-value",
"CODEX_MAX_CONCURRENT": "your-value",
"CODEX_MCP_SERVERS": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"codex-bridge": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"codex-mcp-bridge"
],
"env": {
"CODEX_CLI_PATH": "your-value",
"CODEX_DEFAULT_MODEL": "your-value",
"CODEX_FALLBACK_MODEL": "your-value",
"CODEX_MAX_CONCURRENT": "your-value",
"CODEX_MCP_SERVERS": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
CODEX_CLI_PATH envCODEX_DEFAULT_MODEL envCODEX_FALLBACK_MODEL envCODEX_MAX_CONCURRENT envCODEX_MCP_SERVERS envDiese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026
Der Registry-Name wurde mit dem GitHub-Konto hampsterx bestätigt, dem das Repo gehört
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.
Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.9.1) kam vor 3 Monaten in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Node.js auf deinem Computer.
In derselben Kategorie: Context7, Codebase Memory, Exa
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
MCP server that wraps Codex CLI as a subprocess, exposing code execution, web search, and structured output as Model Context Protocol tools.
Works with any MCP client: Claude Code, Gemini CLI, Cursor, Windsurf, VS Code, or any tool that speaks MCP.
If you're in a terminal agent (Claude Code, Codex CLI, Gemini CLI) with shell access, call Codex CLI directly. It's faster, cheaper, and zero overhead:
# Review current branch vs main
codex review --base main
codex review --uncommitted
codex review --base main "Focus on security and error handling"
-C is broken for review)cd /path/to/worktree && codex review --base main
codex exec "Analyze src/utils/parse.ts for edge cases"
Use this MCP bridge instead when:
--json has known bugs)CODEX_MAX_CONCURRENT)sessionId / resetSession, inspected via listSessions)Worktree note: Codex CLI issue #9084 breaks codex -C /path review .... Run codex review from inside the worktree to avoid it.
npx codex-mcp-bridge
npm i -g @openai/codex)OPENAI_API_KEY environment variable set, or codex auth login completedclaude mcp add codex-bridge -- npx -y codex-mcp-bridge
Add to ~/.gemini/settings.json:
{
"mcpServers": { "codex-bridge": { "command": "npx", "args": ["-y", "codex-mcp-bridge"] } } }
Add to your MCP settings:
{
"codex-bridge": { "command": "npx", "args": ["-y", "codex-mcp-bridge"], "env": { "OPENAI_API_KEY": "sk-..." } } }
| Tool | Description |
|---|---|
| codex | Execute prompts with file context, session resume, and sandbox control. Multi-turn conversations via session IDs. Use for free-form review prompts; see Code review with this CLI. |
| review | Native diff-aware Codex review via codex exec review --json. No caller prompt; supports uncommitted, base branch, and commit review modes. |
| search | Web search via codex --search. Returns synthesized answers with source URLs. |
| query | Lightweight text analysis. No repo context, no sessions. Runs in an isolated temp directory. |
| structured | JSON Schema validated output via Ajv. Data extraction, classification, or any task needing machine-parseable output. |
| ping | Health check with CLI version, capabilities, and concurrency diagnostics (activeCount, queueDepth). |
| mcpStatus | Report what Codex says about each MCP server it knows about: auth type, tool inventory, and whether it initialized. Optional diagnostic mode adds explicit failure states and error text. |
| listSessions | List active conversation sessions with metadata (turn count, model, timestamps). |
General-purpose execution. Supports multi-turn conversations via sessionId, sandbox levels (read-only, workspace-write, full-auto), and reasoning effort control. Pass resetSession: true to discard and start fresh. Use listSessions to inspect active sessions before resuming.
Key parameters: prompt (required), files, model, sessionId, sandbox, reasoningEffort, workingDirectory, timeout (default 60s).
Web search powered by OpenAI's native search infrastructure via Codex CLI's --search flag. Returns synthesized answers with source URLs.
Key parameters: query (required), model, workingDirectory, timeout (default 120s).
Lightweight, non-agentic text analysis. Spawns in an isolated temp directory so the bridge's repo context doesn't leak. Pass text to analyze in the context parameter. Supports reasoningEffort and maxResponseLength.
Key parameters: prompt (required), context, model, reasoningEffort, timeout (default 60s).
Thin wrapper around Codex CLI's native diff-aware review. The bridge passes the diff selector to codex exec review --json; upstream Codex owns the review prompt. Requires a real git repository via workingDirectory.
Key parameters: mode (required: uncommitted, base, or commit), workingDirectory (required), base (required for base mode), commit (required for commit mode), title, model, timeout (default 180s).
Embeds a JSON Schema in the prompt and validates the response with Ajv. Returns clean JSON on success, validation errors on failure.
Key parameters: prompt (required), schema (required, JSON string), files, model, workingDirectory, timeout (default 60s).
No parameters. Returns CLI version, auth status, model configuration, and concurrency diagnostics (activeCount, queueDepth).
Reports per-server MCP state as Codex's own app-server protocol sees it. Unlike every other tool, it deliberately does not suppress Codex's MCP servers or harden the subprocess environment, because both would disable the thing being measured. It therefore boots the servers in ~/.codex/config.toml and is slower than a normal call. With diagnostics: true and a workingDirectory inside a trusted project, the thread it starts also boots that project's .codex/config.toml servers.
Key parameters: diagnostics (default false), workingDirectory, timeout (per-request, default 90s).
| Mode | Cost | What you get |
|---|---|---|
| default | ~6-9s | Inventory: auth type, tool names and counts, and initialized / unknown per server. Creates no thread and writes no session record. |
diagnostics: true | ~10-20s | Adds an explicit failed state and the error text naming the cause (expired OAuth grant, missing binary, remote refusal). Starts an ephemeral thread, which is never materialised on disk. |
Reading the output:
diagnostics: true can report failed.Example:
atlassian failed auth=oAuth tools=0
error: MCP client for atlassian failed to start: MCP startup failed: failed to refresh OAuth tokens for server atlassian: ... invalid_grant: Grant not found codex_apps initialized auth=bearerToken tools=117 (builtIn) linear initialized auth=oAuth tools=57 serena initialized auth=unsupported tools=22
All tools attach execution metadata (_meta) with durationMs, model, fallbackUsed, and session info where applicable. See DESIGN.md for details.
This bridge does not bundle reviewer prompts. There are three paths for code review:
codex reviewcodex review --base main
codex review --uncommitted codex review --base main "Focus on security and error handling"
Diff-aware review built into Codex CLI. No bridge involvement. Use this when your client has shell access.
review tool for native diff-aware review{
"tool": "review", "arguments": { "mode": "base", "base": "main", "workingDirectory": "/path/to/worktree" } }
The bridge runs codex exec review --json from workingDirectory, captures the final review text, and returns review metadata such as threadId, event counts, and redacted command output. It does not accept a prompt.
codex tool with caller-supplied prompt{
"tool": "codex", "arguments": { "prompt": " ", "sandbox": "read-only" } }
The bridge runs codex exec --sandbox read-only with the supplied prompt and returns stdout. Use this for free-form review prompts or review inputs that are not expressible as uncommitted, base, or commit diff selectors.
A starting point; adapt freely:
Review the following diff:
Look for:
For each finding cite file:line, severity (high/medium/low), and a suggested fix. Skip style/formatting; assume an autoformatter handles those.
The bridge has no opinion on prompt content. See ADR-001 for the rationale.
| Variable | Default | Description |
|---|---|---|
CODEX_DEFAULT_MODEL | *(CLI default)* | Default model for all tools |
CODEX_FALLBACK_MODEL | o3 | Fallback on quota exhaustion (none to disable) |
CODEX_CLI_PATH | codex | Path to CLI binary |
CODEX_MAX_CONCURRENT | 3 | Max concurrent subprocess spawns |
CODEX_MCP_SERVERS | *(unset)* | Control which Codex internal MCP servers stay enabled. See DESIGN.md. |
CODEX_HOME | ~/.codex | Root subprocesses authenticate from |
CODEX_HOME is a complete identity switch: auth, config.toml, skills and thread history all live under the root, so a second root is a second install. Every tool call this bridge makes is machine traffic rather than a session someone is sitting in front of, which makes it a good candidate for a work or team seat while interactive codex keeps a personal one.
Set it in the server registration rather than the ambient shell, so the choice does not depend on which terminal launched the client:
{
"mcpServers": { "codex": { "type": "stdio", "command": "npx", "args": ["-y", "codex-mcp-bridge"], "env": { "CODEX_HOME": "/home/you/.codex-work", "CODEX_DEFAULT_MODEL": "gpt-5.6-sol" } } } }
Three things to know before you
Nur der Anfang wird gezeigt; den Rest findest du im Repo