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에 바인딩합니다.루트가 명시적으로 구성되지 않은 경우 현재 작업 디렉터리 하나만 허용합니다.
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입니다.
Secure MCP Tunnel
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:keychainbridge:secure:write:keychain은 의도적인 쓰기 세션에서만 사용하세요.
구성
변수 | 기본값 | 용도 |
| 현재 디렉터리 | 쉼표로 구분된 허용 절대 루트 |
|
|
|
| 설정 안 됨 | 쓰기 모드가 허용되려면 |
|
|
|
|
| 최대 활성 Codex 호출 수 |
|
| 도구 호출당 최대 프롬프트 길이 |
|
| Codex MCP 호출 시간 제한 |
|
| 작업 ID 반환 전 지연 |
|
| 완료된 작업 보존 기간 |
| 설정 안 됨 | 파일 이름 사전 검사를 명시적으로 우회 |
| 설정 안 됨 | 로컬 진단 오류 및 Codex stderr 출력 |
이전 CODEX_GPT_BRIDGE_* 변수 접두사는 업스트림 호환성을 위해 임시로 허용됩니다.
ChatGPT 설정
docs/chatgpt-setup.md를 참조하세요.
업스트림
이 저장소는 MIT 라이선스에 따라 DeepCogNeural/codex-gpt-bridge에서 파생되었습니다. 이 포크의 범위는 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