Codex Local Gateway
Provides access to the complete installed XcodeBuildMCP catalog, enabling Xcode build and development workflows through the MCP server.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Codex Local Gatewayshow me my recent Codex tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codex Local Gateway
A fast, guarded MCP gateway that lets ChatGPT Web or another MCP client inspect and develop a local workspace, read local Codex task history, and use the complete installed XcodeBuildMCP catalog.
The runtime uses Bun ESM JavaScript, with TypeScript tests and operator tooling. Work is dominated by filesystem and subprocess I/O, so Bun keeps startup and distribution fast while retaining the official MCP TypeScript client ecosystem. Rust would increase adapter complexity without materially improving the limiting operations.
Architecture
ChatGPT Web / MCP client
│ 8 stable gateway tools
▼
Codex Local Gateway
├─ guarded workspace tools
├─ Codex app-server task/history tools
├─ XcodeBuildMCP (dynamic catalog)
└─ future MCP providersThe public connector ABI stays small: gateway_info, workspace_info, exec_command, write_stdin, apply_patch, view_image, tool_inventory, and tool_call. tool_inventory searches the exact live internal registry; tool_call invokes an exact returned name. Adding a provider therefore does not force ChatGPT to cache hundreds of new connector schemas.
Related MCP server: codex-chatgpt-bridge
Quick start
bun install
CODEX_LOCAL_GATEWAY_ROOT=/absolute/path/to/project \
CODEX_LOCAL_GATEWAY_ENABLE_CODEX=1 \
CODEX_LOCAL_GATEWAY_ENABLE_XCODE=1 \
bun run src/server.mjs --transport stdioRun bun run doctor to verify the local runtime. Writes, command execution, and Codex mutations are disabled independently by default; see .env.example.
ChatGPT Web
ChatGPT Web cannot connect directly to localhost. Create an OpenAI Secure MCP Tunnel and configure its local downstream command as:
/usr/bin/env \
CODEX_LOCAL_GATEWAY_ROOT=/absolute/path/to/project \
CODEX_LOCAL_GATEWAY_ENABLE_CODEX=1 \
CODEX_LOCAL_GATEWAY_ENABLE_XCODE=1 \
/absolute/path/to/bun run \
/absolute/path/to/codex-local-gateway/src/server.mjs --transport stdioThe tunnel starts and stops the gateway as its child process. No second background server is required.
Local policy
Paths are confined to the configured real workspace root.
Writes require both a local opt-in and
confirmation: true.Commands are executed without an arbitrary shell and must be allowlisted.
Codex mutations have an independent opt-in and confirmation.
HTTP binds to loopback unless explicitly overridden and requires bearer authentication.
Codex task history is private local data; connect only a trusted tunnel and ChatGPT workspace.
Unlike a broker embedded inside an active outer Codex turn, this standalone gateway cannot honestly claim the outer turn's sandbox or approval lifecycle. It keeps the local operator's policy as the authority rather than simulating turn-scoped approval.
Development
bun run typecheck
bun test
bun run smoke:live -- /absolute/path/to/workspace
bun run doctor --strict
bun run buildThe project is also a Codex plugin through .codex-plugin/plugin.json and .mcp.json.
License
MIT
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
- AlicenseNot gradedqualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.MIT
- AlicenseNot gradedqualityBmaintenanceLocal MCP bridge enabling ChatGPT web to access approved local files and execute tasks via local Codex.1MIT
- AlicenseNot gradedqualityAmaintenanceEnables ChatGPT to inspect and edit local projects through a secure MCP interface, offering workspace management, file operations, git integration, and safe command execution.4MIT
- AlicenseNot gradedqualityBmaintenanceRemote MCP coding bridge that gives ChatGPT/Codex secure local workspace access, including file retrieval, semantic code intelligence, Git, diagnostics, and guarded shell execution.28MIT
Related MCP Connectors
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
MCP connector that lets ChatGPT list, search, and run your Apple Shortcuts via a local Mac agent
Search, read, and write your Apple Notes from ChatGPT/Claude via a local Mac agent + MCP relay.
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/sleda/codex-local-gateway'
If you have feedback or need assistance with the MCP directory API, please join our Discord server