w31r4 avatar

Codex MCP Go

w31r4/codex-mcp-go

Wraps the OpenAI Codex CLI behind an MCP stdio interface so agents like Claude, Gemini, or other model-driven coding tools can delegate specific tasks to Codex. Exposes a single `codex` tool that takes a prompt, working directory, and optional session ID for multi-turn context. Supports read-only, workspace-write, and full-access sandbox modes, plus image attachments and custom model selection. The repo includes Go source and an NPM wrapper for easy npx deployment. Built for workflows where a planning model handles architecture but calls out to Codex for tricky implementation, bug fixes, or code review steps that benefit from its specialized instruction-following.

GitHub stars
52
tool
1
transport
STDIO
last updated
Feb 2, 2026

Tools

1 tools

Public tool metadata for what this MCP can expose to an agent.

codex封装 OpenAI Codex CLI 的 MCP 工具,用于执行 AI 辅助的编码任务。

封装 OpenAI Codex CLI 的 MCP 工具,用于执行 AI 辅助的编码任务。

No parameter schema in public metadata yet.

Sponsors

Readme

codex-mcp-go

Codex CLI 的 MCP 协议封装实现

License: MIT Go Version MCP Compatible NPM Version

⭐ 如果觉得好用,请给个 Star 吧!您的支持是我们更新的动力~ ⭐

English | 简体中文


简介

codex-mcp-go 是一个基于 Go 语言实现的 MCP (Model Context Protocol) 服务器。它封装了 OpenAI 的 Codex CLI,使其能够作为 MCP 工具被 KiloCode、Roo Code、Cline 等各种 "Vibe Coding" AI 客户端调用。

这个项目的初衷很简单:让强者更强,让专才专用。

在我自己的工作流中(在 KiloCode 里使用 Gemini 3.0 Pro),我发现像 Gemini 这样的先进模型拥有强大的规划能力和想象力,但在修复自己生成的复杂代码时偶尔会“卡壳”。而 Codex,这位老练的“代码老师傅”,虽然在宏大叙事上稍逊一筹,但在具体的代码实现、Bug 修复和遵循精确指令方面却无人能及。

所以,为什么不让它们合作呢?

受到 codexmcp (Python 实现) 的启发,我决定用我更喜欢的 Go 语言,边学 mcp-go-sdk 边重复造了这个轮子,主要目的是练手并打造一个更适合我自己的工具。

现在,你可以用一句话,在任何支持 MCP 的 Vibe Coding 工具中,让 Gemini 或 Claude 这样的“总指挥”去调用 Codex 这个“特种兵”来完成最棘手的编码任务。


View the full README on GitHub

Details

Repository
github.com/w31r4/codex-mcp-go
Package
@zenfun510/codex-mcp-go
Transport
STDIO
Registry
MCP registry, active