Token导航 LogoToken导航

MCP Server · 开发工具

Codex Consultant

一个MCP(模型上下文协议)服务器,使Claude Code能够咨询OpenAI的Codex以获取代码、实现和审查的第二意见。

未说明官方级别未说明来源级核验工具 2
代码审查GoClaude

快速开始

公开资料没有提供安装命令,按仓库或官方文档接入。
作者 / 组织
cvidmar
提供方
cvidmar

工具数量

2

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Codex Consultant 属于开发工具类 MCP Server,公开资料标注 2 个工具,通过传输方式未标注接入,适配 Claude,没有现成的安装命令;接入前先确认权限范围。

分类

开发工具

传输方式

未说明

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

公开目录没有给出安装命令,需要按仓库 README安装;下面按同类条目的通用流程说明。

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    先确认运行方式

    公开资料没有标注传输方式,先看仓库 README,确认是本地进程还是远程地址。

  2. 2

    获取服务

    公开目录没有给出安装命令,按仓库 README里的步骤安装或获取服务。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 2 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

公开资料仍需确认:安装命令

详细介绍

Codex Consultant MCP Server

An MCP (Model Context Protocol) server that enables Claude Code to consult with OpenAI's Codex for second opinions on code, implementations, and reviews.

What is This?

This is a bridge between Claude Code and OpenAI's Codex CLI. It provides two powerful tools that Claude Code can use:

  • ask_codex - Get a second opinion from OpenAI Codex on code, plans, or implementations
  • codex_review - Have OpenAI Codex review code changes, files, or snippets

Think of it as getting a peer review from another AI assistant while working with Claude Code.

Features

  • 🔍 Smart Context Handling - Automatically reads file contents when file paths are provided
  • 📊 Git Integration - Review current git changes with "current changes" or "git diff"
  • 📁 File Support - Pass file paths directly for review or context
  • 🎯 Flexible Reviews - Review specific files, code snippets, or git changes
  • ✅ CLI Validation - Checks that Codex CLI is available on startup
  • 🔧 Model Selection - Choose between different Codex models (gpt-5-codex, gpt-5, etc.)

Prerequisites

  1. OpenAI Codex CLI - You must have the codex command-line tool installed and available in your PATH

- Install from: OpenAI Codex CLI (or your specific Codex CLI source) - Verify installation: codex --version

  1. Go 1.21+ - Required to build the server

Installation

1. Build the MCP Server

cd codex-consultant
go mod tidy
go build -o codex-consultant

This creates an executable named codex-consultant in your current directory.

2. Configure Claude Code

Add the MCP server to your Claude Code configuration file at ~/.config/claude/claude_code_config.json:

{
  "mcpServers": {
    "codex-consultant": {
      "command": "/absolute/path/to/codex-consultant"
    }
  }
}

Important: Use the full absolute path to the codex-consultant executable.

3. Restart Claude Code

After updating the configuration, restart Claude Code to load the new MCP server.

Usage

Once configured, Claude Code will automatically have access to the Codex tools. You can use them naturally in conversation:

Ask Codex for Opinions

"Can you use ask_codex to get OpenAI's perspective on this rate limiter implementation?"

"Ask Codex what it thinks about using channels vs mutexes here"

"Get a second opinion from Codex on my error handling approach"

Review Code with Codex

"Use codex_review to review the current changes"

"Have Codex review the authentication.go file for security issues"

"Ask Codex to review this code snippet for performance problems"

Tool Reference

ask_codex

Get a second opinion from OpenAI Codex on code, plans, or implementations.

Parameters:

  • prompt (required) - The question or code to ask Codex about
  • context (optional) - Additional context or file path to include
  • model (optional) - Model to use (default: "gpt-5-codex")

Examples:

ask_codex(
  prompt="Is this the best way to implement a connection pool?",
  context="database.go"
)

ask_codex(
  prompt="Review this algorithm",
  context="func quickSort(...) { ... }",
  model="gpt-5"
)

codex_review

Have OpenAI Codex review code changes, files, or implementation plans.

Parameters:

  • target (required) - What to review:

- "current changes" or "git diff" - Reviews uncommitted git changes - File path (e.g., "main.go") - Reviews the entire file - Code snippet - Reviews the provided code directly

  • focus (optional) - Specific areas to focus on (default: "code quality, bugs, and best practices")

Examples:

codex_review(
  target="current changes",
  focus="security vulnerabilities"
)

codex_review(
  target="src/auth/middleware.go",
  focus="performance and error handling"
)

codex_review(
  target="func processPayment() { ... }",
  focus="edge cases and validation"
)

How It Works

  1. Claude Code calls the MCP tool (e.g., ask_codex)
  2. The MCP server processes the request:

- Validates parameters - Reads files if paths are provided - Gets git diffs if "current changes" is specified - Formats the prompt for Codex

  1. Executes codex exec with the formatted prompt
  2. Returns Codex's response back to Claude Code

Troubleshooting

"Codex CLI validation failed"

  • Ensure codex is installed: which codex
  • Verify it's executable: codex --version
  • Check that it's in your PATH

"Failed to get git diff"

  • Ensure you're in a git repository
  • Check that git is installed: git --version

"Failed to read file"

  • Verify the file path is correct
  • Ensure the file exists and is readable
  • Use absolute paths or paths relative to Claude Code's working directory

Development

Project Structure

codex-consultant/
├── codex-consultant.go  # Main server implementation
├── go.mod              # Go module definition
├── go.sum              # Go dependencies
└── README.md           # This file

Building for Development

go build -o codex-consultant
./codex-consultant  # Test directly (will run as MCP stdio server)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

工具与能力

工具数量

2

资源数量

0

提示词数量

0

能力标签

代码审查Go本地部署AI辅助编程代码咨询Git集成多模型选择

支持客户端

Claude

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

让助手直接读代码

把仓库、提交记录和 issue 交给模型检索,补全和重构时不用来回复制文件。

在对话里跑命令

触发构建、测试和脚本,执行结果直接回到上下文,省去切终端。

接进开发流程

把 PR、CI 状态和代码审查接进助手,减少在几个工具之间跳。

选择建议

值得选的地方

  • 只提供 2 个工具,职责集中,接入后不容易误操作。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • 公开资料没有可直接复制的安装命令,第一次接入要自己找入口。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude 的用户,接入路径最短。
  • 愿意照着官方文档一步步配环境的人。

不太适合

  • 希望一条命令就装好、不想看文档的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Codex Consultant

MCP World · 本页

2未说明未标注1 个2026-05-17
Git 838e2ec1

MCP World

12stdio有2 个2026-05-17
Markitdown MCP 2c653a5f

MCP World

1stdio有1 个2026-05-17
Context7 MCP C671e75a

MCP World

0stdio有1 个2026-05-17
Context7 831acf40

MCP World

0stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Codex Consultant 怎么安装?

公开目录没有给出可以直接复制的安装命令,需要按仓库 README里的步骤安装;装好后写进客户端的 MCP 配置再重启。

Codex Consultant 怎么在 Claude Desktop、Cursor 里配置?

它是传输方式未标注,客户端配置里要写启动命令和参数,运行环境是 未标注;保存后完全退出客户端再打开,配置才会生效。

Codex Consultant 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Codex Consultant 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Codex Consultant 支持哪些客户端?

公开资料标注支持 Claude;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

来源信息

继续浏览同类 MCP