EC

elyin/codex-bridge

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

121 stars 7 forks 质量 87 趋势 8MIT

elyin/codex-bridge 是一个从 https://github.com/elyin/codex-bridge. 导入的 MCP 服务器候选服务器。

概览

elyin/codex-bridge 是一个从 https://github.com/elyin/codex-bridge. 导入的 MCP 服务器候选服务器。

概述(AI 翻译)

一款轻量级MCP(模型上下文协议)服务器,使AI编码助手能够通过官方CLI与OpenAI的Codex AI交互。支持Claude Code、Cursor、VS Code及其他兼容MCP的客户端。设计注重简洁、可靠和无缝集成。

✨ 特色

  • 直接Codex CLI集成:使用官方Codex CLI零API成本
  • 简单MCP工具:用于基本查询和文件分析的两个核心功能
  • 无状态操作:无会话、缓存或复杂状态管理
  • 生产准备:强健的错误处理,可配置超时(默认:90秒)
  • 最小依赖:只需 'mcp>=2, Claude 代码(默认)

光标

全局配置(~/.cursor/mcp.json):

项目专用(在您的项目中称为.cursor/mcp.json):

前往:Settings → Cursor Settings → MCP → Add new global MCP server

VS Code

配置(.vscode/mcp.json在你的工作区):

替代方案:通过分期

  1. 打开扩展视图(Ctrl+Shift+X)
  2. 搜索MCP扩展
  3. 添加带有命令的自定义服务器:uvx codex-bridge

风帆冲浪

添加到你的Windsurf MCP配置中:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Codex Bridge

A lightweight MCP (Model Context Protocol) server that enables AI coding assistants to interact with OpenAI’s Codex AI through the official CLI. Works with Claude Code, Cursor, VS Code, and other MCP-compatible clients. Designed for simplicity, reliability, and seamless integration.

✨ Features

  • Direct Codex CLI Integration: Zero API costs using official Codex CLI
  • Simple MCP Tools: Two core functions for basic queries and file analysis
  • Stateless Operation: No sessions, caching, or complex state management
  • Production Ready: Robust error handling with configurable timeouts (default: 90 seconds)
  • Minimal Dependencies: Only requires mcp>=2,<3 and Codex CLI
  • Easy Deployment: Support for both uvx and traditional pip installation
  • Universal MCP Compatibility: Works with any MCP-compatible AI coding assistant

🚀 Quick Start

Prerequisites

  1. Install Codex CLI:

    npm install -g @openai/codex-cli
    
  2. Authenticate with Codex:

    codex
    
  3. Verify installation:

    codex --version
    

Installation

🎯 Recommended: PyPI Installation

# Install from PyPI
pip install codex-bridge

# Add to Claude Code with uvx (recommended)
claude mcp add codex-bridge -s user -- uvx codex-bridge

Alternative: From Source

# Clone the repository
git clone https://github.com/shelakh/codex-bridge.git
cd codex-bridge

# Build and install locally
uvx --from build pyproject-build
pip install dist/*.whl

# Add to Claude Code
claude mcp add codex-bridge -s user -- uvx codex-bridge

Development Installation

# Clone and install in development mode
git clone https://github.com/shelakh/codex-bridge.git
cd codex-bridge
pip install -e .

# Add to Claude Code (development)
claude mcp add codex-bridge-dev -s user -- python -m src

🌐 Multi-Client Support

Codex Bridge works with any MCP-compatible AI coding assistant - the same server supports multiple clients through different configuration methods.

Supported MCP Clients

  • Claude Code ✅ (Default)
  • Cursor ✅
  • VS Code ✅
  • Windsurf ✅
  • Cline ✅
  • Void ✅
  • Cherry Studio ✅
  • Augment ✅
  • Roo Code ✅
  • Zencoder ✅
  • Any MCP-compatible client ✅

Configuration Examples

# Recommended installation
claude mcp add codex-bridge -s user -- uvx codex-bridge

# Development installation
在 GitHub 查看完整 README

安装

uvx codex-bridge
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "codex-bridge": { "command": "uvx", "args": ["codex-bridge"], "env": {} } } }