Prerequisites
Codex CLI requires Node.js 22+. Install it from nodejs.org. Install Codex CLI globally:The Codex CLI and Codex IDE extension share the same
~/.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
Use the Codex CLI to add Danube as a Streamable HTTP server:This writes the configuration to
~/.codex/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.Manual Configuration
You can also configure the server directly in~/.codex/config.toml:
.codex/config.toml in your project root instead.
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/mcp/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
