Docs/Guides/Connect Codex
Last verified 2026-08-28

Connect Codex

Add the hosted ApexGenius server to Codex, complete OAuth, and verify the connection from the CLI or IDE extension.

Codex supports ApexGenius as a remote streamable HTTP MCP server. The Codex CLI, IDE extension, and ChatGPT desktop app share the same Codex host configuration.

Add ApexGenius with the CLI

Run these commands in a terminal:

codex mcp add apexgenius --url https://server.autom8.pro/mcp
codex mcp login apexgenius
codex mcp list

The login command opens your browser. Sign in to ApexGenius, approve Codex, then return to the terminal. The list command should show the apexgenius server.

Or configure config.toml

Add this table to ~/.codex/config.toml for your user, or to .codex/config.toml in a trusted project:

[mcp_servers.apexgenius]
url = "https://server.autom8.pro/mcp"
auth = "oauth"

Then start authorization:

codex mcp login apexgenius

Do not add a bearer token or static authorization header. ApexGenius publishes the OAuth information Codex needs for browser authorization.

Verify the connection

Start Codex and use /mcp to confirm the server is active. Then ask:

Which active Flows touch Opportunity?

Confirm the result names the intended Salesforce project and production org or sandbox. If the server is listed but not authenticated, run codex mcp login apexgenius again.

Tip

User configuration makes ApexGenius available across your Codex work. Project configuration keeps the server declaration with one trusted project. Choose the scope that matches who should discover the server, while keeping authorization tied to each user.

For the current CLI commands, configuration keys, and OAuth behavior, see OpenAI's Codex MCP guide.