Prerequisites
Codex CLI requires Node.js 22+. Install it from nodejs.org. Install Codex CLI globally:~/.codex/config.toml configuration. If you’ve already set up Danube in the IDE extension, it will work in the CLI automatically.
Setup
1
Add the Danube MCP Server
Add Danube as a Streamable HTTP server in Alternatively, Danube also accepts your API key as a bearer token, which works with the CLI. With This keeps the key itself out of
~/.codex/config.toml (codex mcp add cannot set custom headers, so edit the file directly):DANUBE_API_KEY exported in your shell profile:config.toml.2
Verify Connection
Launch Codex CLI and use the Then type:You should see
/mcp command to verify the server is connected:danube listed with its available tools.Project-Scoped Configuration
For a per-project setup, create.codex/config.toml in your project root with the same [mcp_servers.danube] entry instead of editing the global ~/.codex/config.toml.
Troubleshooting
Command not found: codex
Command not found: codex
-
Verify installation:
-
Check npm global bin directory is in PATH:
The
codexcommand should be in{prefix}/bin/ -
Add to PATH (if needed):
Connection timeout
Connection timeout
- Check your internet connection
- Verify the URL is correct:
https://mcp.danubeai.com/mcp - Test the health check:
curl https://mcp.danubeai.com/health - Increase the timeout in config:
startup_timeout_sec = 30
Tools not appearing
Tools not appearing
- Run
/mcpin Codex to check the server status - Verify the config file syntax:
cat ~/.codex/config.toml - Restart Codex after configuration changes
