codex-mcp-proxy
A lightweight MCP proxy that resolves compatibility issues between Codex MCP Server and Warp by intercepting resources/list and resources/read requests.
README
Codex MCP Proxy
一个轻量级 MCP 代理服务器,用于解决 Codex MCP Server 与 Warp 的兼容性问题。
🤖 For LLM Integration: See LLM_GUIDE.md for detailed tool descriptions, error handling, and workflow examples.
问题背景
Warp 在连接 MCP Server 时会发送 resources/list 请求,但 Codex 上游实现仅打印日志而不返回响应,导致 Warp 一直等待。
解决方案
本代理作为中间层:
- 拦截
resources/list请求,返回空列表 - 拦截
resources/read请求,返回资源未找到错误 - 透传所有其他请求到
codex mcp-server
安装
npm install
npm run build
使用方法
在 Warp 中配置
编辑 MCP 配置文件:
{
"mcpServers": {
"codex": {
"type": "stdio",
"command": "node",
"args": ["C:/Users/Administrator/Desktop/sicko/codex-mcp-proxy/dist/index.js"]
}
}
}
环境变量
CODEX_MCP_DEBUG=1- 启用调试日志
直接运行
npm start
# 或开发模式
npm run dev
开发
# 安装依赖
npm install
# 运行测试
npm test
# 运行测试并查看覆盖率
npm run test:coverage
# 类型检查
npm run typecheck
# 构建
npm run build
架构
┌─────────┐ ┌──────────────┐ ┌─────────────────┐
│ Warp │────▶│ codex-mcp- │────▶│ codex mcp-server│
│ (Client)│◀────│ proxy │◀────│ (upstream) │
└─────────┘ └──────────────┘ └─────────────────┘
│
▼
拦截 resources/*
返回空列表/错误
测试覆盖率
- Parser: 100%
- Server: 80%+
- Types: 100%
Error Handling
错误响应包含 LLM 友好的详细信息:
{
"error": {
"code": -32603,
"message": "Codex service is not available",
"data": {
"detail": "The Codex backend process is not running or failed to start.",
"suggestion": "Wait a few seconds and retry. If the problem persists, restart the MCP server.",
"retryable": true,
"method": "tools/call"
}
}
}
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。