← Back to browse

codex-mcp-tool

Indexed by io.github.x51xxx

About

MCP server bridging AI assistants to OpenAI Codex CLI for code analysis and review

Use this server

Add it to your MCP client. The catalogue lists this config verbatim from its source — it does not run, download, or vouch for the server. Review the command before you run it.

Transportstdio (runs a local command)
Env varsCODEX_MCP_CWD CODEX_SESSION_TTL_MS CODEX_MAX_SESSIONS
Claude Code
claude mcp add --env CODEX_MCP_CWD= --env CODEX_SESSION_TTL_MS= --env CODEX_MAX_SESSIONS= codex-mcp-tool -- npx @trishchuk/codex-mcp-tool
Cursor

Add to Cursor

If the button doesn't open Cursor, use the JSON below — Cursor accepts the same mcpServers config.

VS Code
code --add-mcp '{"name":"codex-mcp-tool","command":"npx","args":["@trishchuk/codex-mcp-tool"],"env":{"CODEX_MCP_CWD":"","CODEX_SESSION_TTL_MS":"","CODEX_MAX_SESSIONS":""}}'
JSON
{
  "mcpServers": {
    "codex-mcp-tool": {
      "command": "npx",
      "args": [
        "@trishchuk/codex-mcp-tool"
      ],
      "env": {
        "CODEX_MCP_CWD": "",
        "CODEX_SESSION_TTL_MS": "",
        "CODEX_MAX_SESSIONS": ""
      }
    }
  }
}

Environment variables are listed by name only — fill in your own values. Entries never carry secrets.