codex-claude-bridge-mcp

codex-claude-bridge-mcp

One local MCP server that lets Codex and Claude Code coordinate through a shared task board and message inbox.

Category
访问服务器

README

Codex ↔ Claude Code Bridge MCP

English · Türkçe

One local MCP server that lets Codex and Claude Code coordinate through a shared task board and message inbox.

It uses the standard MCP stdio transport. No API key, web server, or cloud account is required. Both clients run the same server program and point at the same local data directory.

Scope: version 0.1.0 is for a single machine or a trusted shared filesystem. It is not a secure multi-user or internet-facing collaboration service.

What it provides

  • Create, list, claim, update, block, and complete shared tasks.
  • Send general messages or messages attached to a task.
  • Prevent active tasks from being claimed by both agents.
  • Atomically write the shared state, with a cross-process lock for concurrent client calls.

Quick start

Windows (PowerShell)

git clone https://github.com/nevzoom/codex-claude-bridge-mcp.git
cd codex-claude-bridge-mcp
npm install
npm run build
.\scripts\install.ps1

This registers the server with both locally installed CLIs and stores shared state in ~/.codex-claude-bridge. Restart Codex and Claude Code afterwards.

To register only one client:

.\scripts\install.ps1 -Codex
.\scripts\install.ps1 -Claude

macOS / Linux

git clone https://github.com/nevzoom/codex-claude-bridge-mcp.git
cd codex-claude-bridge-mcp
npm install
npm run build
bash scripts/install.sh

Use bash scripts/install.sh --codex or --claude to register only that client. To use another shared directory, pass --data-dir /path/to/bridge-data (or -DataDirectory in PowerShell).

Manual MCP configuration

The installer runs the official CLIs for you. If you prefer to configure manually, register this stdio command with both clients, using the same data directory:

node /absolute/path/to/codex-claude-bridge-mcp/dist/index.js

Set this environment variable for both registrations:

CODEX_CLAUDE_BRIDGE_DATA_DIR=/absolute/path/to/shared-bridge-data

Codex also supports project/global MCP configuration in config.toml; Claude Code supports project/user MCP registration. The supplied installers use user-level registration so the bridge is available across projects.

When this variable is omitted, the server uses ~/.codex-claude-bridge. This is convenient when both clients run under the same operating-system user. Set it explicitly whenever clients run under different users or machines.

MCP tools

Tool Purpose
create_task Add a shared task.
list_tasks View tasks, optionally by status.
claim_task Mark a task as owned by Codex, Claude, or a human.
update_task Change its status, owner, or result.
post_message Send a general or task-linked message.
read_messages Read messages for an agent or task.

Suggested agent workflow

  1. Create a discrete task with create_task.
  2. The receiving agent calls list_tasks, then claim_task before working.
  3. Share important context with post_message.
  4. Finish with update_task using status: "done" and a concise result; use blocked if human input is needed.

Development

npm install
npm run check
npm run build

Publish on GitHub and npm

  1. Create an empty GitHub repository named codex-claude-bridge-mcp, commit this project, and push the main branch.
  2. Create an npm account, then run npm login and npm publish. If the package name is taken, rename the name field to an npm scope you own, such as @your-name/codex-claude-bridge-mcp.
  3. Create a GitHub release and tag it with the same semantic version as package.json.

The package only publishes the compiled dist directory plus the README and MIT license. CI type-checks and builds every pull request.

After publishing to npm, users can register the package directly with their MCP clients using an npx -y <package-name> stdio command. The GitHub-clone installer remains the easiest supported setup because it registers both clients and a shared data directory in one step.

Security and privacy

Task text and messages are stored unencrypted in state.json under the chosen data directory. Do not point it to an untrusted network share and do not put secrets into messages. The data directory is intentionally excluded from Git.

License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选