Connecting to Codex
Use this guide to connect OpenAI Codex to PropampAI MCP so Codex can access your PropampAI tools while it works. It applies to the Codex CLI, the Codex desktop app, and the Codex IDE extension — all three share the same MCP configuration (~/.codex/config.toml), so you only set this up once.
Before You Start
- Install a recent version of the Codex CLI (
npm install -g @openai/codexorbrew install codex) and sign in. - Keep this MCP endpoint ready:
https://mcp.propamp.ai/mcp
Note: Codex talks to remote MCP servers over Streamable HTTP only. Use the
/mcpendpoint above — the/mcp/sseURL from the Claude guide will not work in Codex.
Add the Server in the Codex App
In the Codex desktop app:
- Open Settings → MCP servers → Add server.
- Choose Streamable HTTP (not STDIO).
- Name:
propamp, URL:https://mcp.propamp.ai/mcp. - Complete the PropampAI sign-in when prompted.
Note: custom MCP servers are added under MCP servers, not under Plugins — the Plugins section is only for packaged bundles from the OpenAI directory. Codex web/cloud tasks do not read this configuration; PropampAI tools are available in the app, CLI, and IDE extension.
Add the Server via config.toml (CLI)
Open ~/.codex/config.toml and add:
[mcp_servers.propamp]
url = "https://mcp.propamp.ai/mcp"Then sign in to PropampAI via OAuth:
codex mcp login propampCodex opens the PropampAI sign-in page in your browser. Enter your PropampAI email and password — the same credentials you use on the PropampAI web app — and return to the terminal when it confirms the login.
Alternative: Static Bearer Token
If your Codex version does not support codex mcp login, or you prefer a fixed token, point Codex at an environment variable holding a PropampAI access token:
[mcp_servers.propamp]
url = "https://mcp.propamp.ai/mcp"
bearer_token_env_var = "PROPAMP_MCP_TOKEN"Export PROPAMP_MCP_TOKEN in your shell before starting Codex. Keep in mind access tokens expire — OAuth login is the recommended path.
Verify Connection
- Run
codex mcp listand confirmpropampappears. - Start a Codex session and ask something that needs PropampAI data, for example: “List my available products in the US marketplace.”
- If Codex calls
propamptools and returns real data, setup is complete.
Troubleshooting
- 401 Unauthorized — your login expired. Run
codex mcp login propampagain (or refresh the token inPROPAMP_MCP_TOKEN). - 404 on requests mid-session — the server expired an idle session. Codex starts a new one automatically; if it doesn’t, restart the Codex session.
- Server not found / SSE errors — check the URL is exactly
https://mcp.propamp.ai/mcp(no/ssesuffix). - No tools appear — update Codex to the latest version; remote MCP servers require Streamable HTTP support.