codex-mcp-bridge
codex-mcp-bridge
ChatGPT と公式ローカル Codex MCP サーバー間の小さなポリシーレイヤー。
ChatGPT
-> OpenAI Secure MCP Tunnel
-> codex-mcp-bridge (loopback HTTP)
-> codex mcp-server (stdio)
-> one explicitly allowed repository公式の Codex MCP サーバーはすでに codex と codex-reply を提供しています。このブリッジは、ChatGPT から日常的に安全に使用するために必要なコントロールのみを意図的に追加します:
bridge_status: アクティブなポリシーを検査します。codex_read: 読み取り専用の Codex セッションを強制します。codex_run: ポリシーで制限された読み取りまたは書き込みセッションを開始します。codex_reply: このブリッジを介して作成されたスレッドのみを続行します。codex_job_status: 長時間実行される結果を取得します。
セキュリティのデフォルト
127.0.0.1にバインドします。ルートが明示的に設定されていない限り、1 つのカレントワーキングディレクトリを許可します。
read-onlyCodex サンドボックスを使用します。on-request承認ポリシーを使用します。danger-full-accessを公開しません。ブリッジ所有者が書き込みプロファイルを開始しない限り、ワークスペースへの書き込みをブロックします。
設定された実パスルートの外側のパスを拒否します。
所有者が事前チェックを明示的に無効にしない限り、一般的なシークレットファイル名を含むリポジトリを拒否します。
プロンプトサイズと同時 Codex ジョブを制限します。
ローカルデバッグログが有効でない限り、アップストリームの Codex stderr を抑制します。
これらの制御はポリシーレイヤーであり、OS レベルの分離ではありません。厳格な分離が必要な場合は、ステージングコピー、コンテナ、VM、または別の OS ユーザーを使用してください。
Related MCP server: mcp-governance-proxy
必要条件
Node.js 20 以降。Node.js 22 を推奨します。
Codex CLI がインストールされ、認証され、
codex mcp-serverを提供していること。ChatGPT アクセス用の
tunnel-clientと OpenAI Secure MCP Tunnel。
公式リファレンス:
インストール
npm ci
npm run checkローカルスモークテスト
ローカルモードはパブリックエンドポイントを作成しません:
npm run bridge:local -- --root /absolute/path/to/repositoryMCP エンドポイントは http://127.0.0.1:8876/mcp、ヘルスエンドポイントは http://127.0.0.1:8876/healthz です。
セキュア MCP トンネル
OpenAI Platform でトンネルを作成し、このリポジトリの外でそのランタイム認証情報を提供します:
export CONTROL_PLANE_API_KEY="<runtime-key>"
export CONTROL_PLANE_TUNNEL_ID="tunnel_..."
npm run bridge:secure -- --root /absolute/path/to/repositoryランチャーはブリッジをビルドし、ループバックで起動し、トンネルプロファイルを初期化し、tunnel-client doctor を実行して、トンネルクライアントを実行し続けます。
意図的な書き込みセッションの場合:
npm run bridge:secure -- --root /absolute/path/to/repository --write不要なのに書き込みプロファイルを実行したままにしないでください。
macOS キーチェーン
security add-generic-password -a "$USER" -s "codex-mcp-bridge:control-plane-api-key" -w "<runtime-key>" -U
security add-generic-password -a "$USER" -s "codex-mcp-bridge:control-plane-tunnel-id" -w "tunnel_..." -U
CODEX_MCP_BRIDGE_ROOT=/absolute/path/to/repository npm run bridge:secure:keychain意図的な書き込みセッションにのみ bridge:secure:write:keychain を使用してください。
設定
変数 | デフォルト | 説明 |
| カレントディレクトリ | カンマ区切りの許可された絶対ルート |
|
|
|
| 未設定 | 書き込みモードを受け付けるには |
|
|
|
|
| アクティブな Codex 呼び出しの最大数 |
|
| ツール呼び出しごとの最大プロンプト長 |
|
| Codex MCP 呼び出しのタイムアウト |
|
| ジョブ ID を返すまでの遅延 |
|
| 完了したジョブの保持期間 |
| 未設定 | ファイル名の事前チェックを明示的にバイパス |
| 未設定 | ローカルの診断エラーと Codex の stderr を出力 |
古い CODEX_GPT_BRIDGE_* 変数プレフィックスは、アップストリーム互換性のために一時的に受け入れられます。
ChatGPT のセットアップ
docs/chatgpt-setup.md を参照してください。
アップストリーム
このリポジトリは DeepCogNeural/codex-gpt-bridge から MIT ライセンスの下で派生しています。このフォークの範囲については UPSTREAM.md を参照してください。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseAqualityCmaintenanceA secure MCP server that exposes local repository context to ChatGPT/Codex with read-only access, path validation, and no generic shell.17
- AlicenseNot gradedqualityCmaintenanceAn MCP server that acts as a governance proxy for AI agents, evaluating each tool call against policies before execution, enabling secure and controlled access to systems like Slack, GitHub, and AWS without exposing credentials to the agent.Apache 2.0
- FlicenseNot gradedqualityCmaintenanceA local MCP server that provides controlled repository access with policy-based file filtering, secret redaction, and audit logging for AI coding agents.
- AlicenseNot gradedqualityBmaintenanceA secure MCP server that connects ChatGPT/Codex to a local Obsidian Vault, enabling controlled knowledge retrieval, note maintenance, and daily ingest while enforcing path policies, concurrency checks, and audit.MIT
Related MCP Connectors
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
A paid remote MCP for OpenAI Codex memory MCP, built to return verdicts, receipts, usage logs, and a
Remote MCP for Copilot CLI switch gate MCP, structured receipts, audit logs, and reviewer-ready evid
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/menaje/codex-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server