Recommendation
Use local stdio for the most predictable Codex setup. Configure Codex in ~/.codex/config.toml.
Local stdio
1 | [mcp_servers.netskope-npa] |
Hosted HTTP
Use this only if your Codex version supports HTTP MCP servers in config:
1 | [mcp_servers.netskope-npa] |
If HTTP servers do not appear in your Codex tool list, use the stdio configuration above.
Verify
Restart Codex after editing config.toml. Then check the MCP/tool list in the CLI or app and ask:
1 | List the Netskope NPA MCP tools you can access. Do not call any write tools. |
Common issues
| Symptom | Fix |
|---|---|
| Server not detected | Restart Codex and verify TOML syntax. |
| HTTP server not loaded | Use stdio; HTTP support has varied across Codex builds. |
| Token leaked into project config | Keep MCP config in user-level ~/.codex/config.toml. |
npx fails |
Use an absolute path or install the package globally. |
Platform notes
Codex configuration is TOML-based under ~/.codex/config.toml; the OpenAI Codex repository documents [mcp_servers] examples for stdio. Current OpenAI public docs focus on the OpenAI docs MCP server rather than every custom server shape, so prefer stdio when in doubt.
Sources: OpenAI Codex config reference, OpenAI Docs MCP