MCPCloud.sh — Product and API reference
All clients

Connect Codex

Codex shares one MCP configuration across its CLI and IDE extension. Add the HTTP endpoint to `config.toml` and both pick it up.

TransportStreamable HTTPConfig~/.codex/config.toml

How do I connect an MCP server to Codex?

Append an `[mcp_servers.<name>]` block with your server’s `url` to `~/.codex/config.toml` and restart. The Codex CLI and IDE extension share that single MCP configuration, so both pick up the server at once.

Setup

  1. Open `~/.codex/config.toml` (or `.codex/config.toml` in your project).
  2. Append the block below with your deployment URL.
  3. Restart the Codex CLI or reload the extension.
~/.codex/config.tomltext
[mcp_servers.my-server]
url = "https://my-server.mcp.cloud/mcp"

Verify the connection

Start Codex and confirm the server’s tools are offered in a session.

Troubleshooting

TOML syntax error.

Ensure the table header `[mcp_servers.my-server]` is on its own line above `url`.

Connect another client