mcp.md +10 −2
75- `enabled_tools` (optional): Tool allow list.75- `enabled_tools` (optional): Tool allow list.
76- `disabled_tools` (optional): Tool deny list (applied after `enabled_tools`).76- `disabled_tools` (optional): Tool deny list (applied after `enabled_tools`).
77 77
7878If your OAuth provider requires a static callback URI, set the top-level `mcp_oauth_callback_port` in `config.toml`. If unset, Codex binds to an ephemeral port.If your OAuth provider requires a fixed callback port, set the top-level `mcp_oauth_callback_port` in `config.toml`. If unset, Codex binds to an ephemeral port.
79
80If your MCP OAuth flow must use a specific callback URL (for example, a remote devbox ingress URL or a custom callback path), set `mcp_oauth_callback_url`. Codex uses this value as the OAuth `redirect_uri` while still using `mcp_oauth_callback_port` for the callback listener port. Local callback URLs (for example `localhost`) bind on loopback; non-local callback URLs bind on `0.0.0.0` so the callback can reach the host.
79 81
80#### config.toml examples82#### config.toml examples
81 83
88MY_ENV_VAR = "MY_ENV_VALUE"90MY_ENV_VAR = "MY_ENV_VALUE"
89```91```
90 92
93```toml
94# Optional MCP OAuth callback overrides (used by `codex mcp login`)
95mcp_oauth_callback_port = 5555
96mcp_oauth_callback_url = "https://devbox.example.internal/callback"
97```
98
91```toml99```toml
92[mcp_servers.figma]100[mcp_servers.figma]
93url = "https://mcp.figma.com/mcp"101url = "https://mcp.figma.com/mcp"
109 117
110The list of MCP servers keeps growing. Here are a few common ones:118The list of MCP servers keeps growing. Here are a few common ones:
111 119
112120- [OpenAI Docs MCP](/resources/docs-mcp): Search and read OpenAI developer docs.- [OpenAI Docs MCP](/learn/docs-mcp): Search and read OpenAI developer docs.
113- [Context7](https://github.com/upstash/context7): Connect to up-to-date developer documentation.121- [Context7](https://github.com/upstash/context7): Connect to up-to-date developer documentation.
114- Figma [Local](https://developers.figma.com/docs/figma-mcp-server/local-server-installation/) and [Remote](https://developers.figma.com/docs/figma-mcp-server/remote-server-installation/): Access your Figma designs.122- Figma [Local](https://developers.figma.com/docs/figma-mcp-server/local-server-installation/) and [Remote](https://developers.figma.com/docs/figma-mcp-server/remote-server-installation/): Access your Figma designs.
115- [Playwright](https://www.npmjs.com/package/@playwright/mcp): Control and inspect a browser using Playwright.123- [Playwright](https://www.npmjs.com/package/@playwright/mcp): Control and inspect a browser using Playwright.