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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.