AgentHubAgentHub

codex-mcp-bridge

MCP ServerMCP Registry官方收录

io.github.hampsterx/codex-mcp-bridge · v0.5.1

Wraps Codex CLI as MCP tools: query, review, search, assess, structured, sessions.

概览

codex-mcp-bridge 是一个MCP Server,收录自 官方 MCP Registry。支持 stdio 传输。本页提供 Cursor、Claude Code 等客户端的安装配置片段。

安装

选择你的平台查看安装方式

{
  "mcpServers": {
    "codex-mcp-bridge": {
      "command": "npx",
      "args": [
        "-y",
        "codex-mcp-bridge"
      ]
    }
  }
}

环境变量

CODEX_CLI_PATH可选

Path to the codex CLI binary. Defaults to 'codex' on PATH.

CODEX_DEFAULT_MODEL可选

Default Codex model for query/review/search.

CODEX_FALLBACK_MODEL可选

Model to use when the primary model hits a quota error.

CODEX_MAX_CONCURRENT可选

Maximum concurrent Codex CLI subprocesses (default 3).

CODEX_MCP_SERVERS可选

Controls which MCP servers from ~/.codex/config.toml stay enabled inside the Codex subprocess. Empty/unset disables all non-required servers; 'inherit' passes config through; comma-separated names (e.g. 'serena,github') enables those; values starting with '{' or '[' are raw TOML.

相关资源

统一 Manifest

{
  "id": "io.github.hampsterx/codex-mcp-bridge",
  "type": "mcp-server",
  "version": "0.5.1",
  "displayName": "codex-mcp-bridge",
  "description": "Wraps Codex CLI as MCP tools: query, review, search, assess, structured, sessions.",
  "repository": {
    "url": "https://github.com/hampsterx/codex-mcp-bridge",
    "source": "github"
  },
  "distribution": {
    "packages": [
      {
        "registryType": "npm",
        "identifier": "codex-mcp-bridge",
        "version": "0.5.1",
        "transport": "stdio",
        "environmentVariables": [
          {
            "name": "CODEX_CLI_PATH",
            "description": "Path to the codex CLI binary. Defaults to 'codex' on PATH."
          },
          {
            "name": "CODEX_DEFAULT_MODEL",
            "description": "Default Codex model for query/review/search."
          },
          {
            "name": "CODEX_FALLBACK_MODEL",
            "description": "Model to use when the primary model hits a quota error."
          },
          {
            "name": "CODEX_MAX_CONCURRENT",
            "description": "Maximum concurrent Codex CLI subprocesses (default 3)."
          },
          {
            "name": "CODEX_MCP_SERVERS",
            "description": "Controls which MCP servers from ~/.codex/config.toml stay enabled inside the Codex subprocess. Empty/unset disables all non-required servers; 'inherit' passes config through; comma-separated names (e.g. 'serena,github') enables those; values starting with '{' or '[' are raw TOML."
          }
        ]
      }
    ],
    "remotes": []
  },
  "dependencies": [],
  "installTargets": [
    "claude-code",
    "claude-desktop",
    "cursor",
    "vscode"
  ],
  "keywords": [],
  "provenance": {
    "origin": "official-mcp-registry",
    "originalId": "io.github.hampsterx/codex-mcp-bridge",
    "originalUrl": "https://registry.modelcontextprotocol.io/v0.1/servers/io.github.hampsterx%2Fcodex-mcp-bridge/versions/latest",
    "isOfficial": true,
    "status": "active"
  }
}
codex-mcp-bridge — MCP Server 安装与配置 · AgentHub