Skip to content
Show the docs menu

Connect Codex

Add adtool.ai servers to Codex from the command line or in config.toml.

Checked against OpenAI's MCP docs and configuration reference on 8 October 2026. Menu names may change.

Add the servers

sh
codex mcp add adtool-ga4 --url https://mcp-sandbox.adtool.ai/ga4
codex mcp login adtool-ga4

Set the server URL and a finite tool timeout in ~/.codex/config.toml:

toml
[mcp_servers.adtool-ga4]
url = "https://mcp-sandbox.adtool.ai/ga4"
tool_timeout_sec = 185

Use tool_timeout_sec = 185 for each adtool.ai server you add. Add adtool-gtm with https://mcp-sandbox.adtool.ai/gtm the same way, then run codex mcp login with the server name to sign in.

What happens at sign-in

An adtool.ai page opens in your browser. It shows which client is asking and where it will send you back. You pick the properties, containers or ad accounts the client may use and its access level. Access levels and approvals explains what each level allows.

Codex signs in through a local address on your computer, so the page also shows a notice that adtool.ai cannot confirm who published the program. Allow it only if you added the server yourself.

Known limits

  • Codex gives a tool 60 seconds by default. Set tool_timeout_sec = 185 to allow a queued Google read up to 180 seconds plus a small response margin. The timeout stays finite and does not guarantee success. Long changes can return a "still applying" status.