Codex CLI MCP setup AdaptOrch published setup instructions for connecting its hosted MCP server to OpenAI's Codex CLI through the `~/.codex/config.toml` file, using an `[mcp_servers.adaptorch]` table with a `url` of https://adaptorch.com/mcp and a `bearer_token_env_var` pointing to ADAPTORCH_API_KEY. AdaptOrch states the connection has not been tested end to end in Codex CLI, that no free hosted LLM is bundled, and that a SUCCEEDED run is not a test pass because repository code checks require a separately configured execution environment. The guide includes a read-only `tools/list` curl request that returns HTTP 401 with "Missing bearer token" when no key is supplied, and a single bounded `adaptorch_run` payload with a 20-second global timeout budget. INTEGRATION · UPDATED Connect Codex CLI to AdaptOrch in config.toml. Codex CLI reads MCP servers from ~/.codex/config.toml . The AdaptOrch entry points Codex at the hosted endpoint and reads your AdaptOrch key from an environment variable. No free hosted LLM is bundled; BYOK provider headers are optional. § 01 Before you start Create an account at /app/signup https://adaptorch.com/app/signup?entrypoint=integration-codex and an API key at /app/api-keys. Authenticate with your AdaptOrch API key. No free hosted LLM is bundled; BYOK provider headers are optional when you want model calls. Set the key only in your local environment, never in a shared transcript or committed file. export ADAPTORCH API KEY="ado ..." § 02 Configure Codex CLI Merge the block into ~/.codex/config.toml without replacing existing servers. The file is TOML, not JSON. After setup, check the server list with /mcp inside Codex. mcp servers.adaptorch url = "https://adaptorch.com/mcp" bearer token env var = "ADAPTORCH API KEY" Codex reads the AdaptOrch key from the named environment variable, so the key itself never appears in the file. Keep it in your own secret environment. To use your own provider account instead BYOK , also set ADAPTORCH PROVIDER, ADAPTORCH PROVIDER MODEL and ADAPTORCH PROVIDER KEY, and add env http headers that map X-Provider, X-Provider-Model and X-Provider-Key to those variable names. § 03 Confirm authentication without running a model This read-only tools/list request checks the endpoint and your AdaptOrch key. It does not submit a run or spend plan allowance. A valid key returns a result.tools array that includes adaptorch run . Without a key the endpoint answers HTTP 401 with Missing bearer token , which still proves it is reachable. curl --fail --silent --show-error https://adaptorch.com/mcp \ -H "Authorization: Bearer $ADAPTORCH API KEY" \ -H "Content-Type: application/json" \ -H "Accept: application/json, text/event-stream" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' § 04 Submit one bounded run Ask Codex CLI to call adaptorch run once with the single-task payload below. This consumes plan allowance; optional BYOK model tokens are billed by your provider. Do not resubmit it while polling. { "payload": {"subtasks": {"id": "ping", "description": "Reply exactly PONG", "estimated tokens": 16} }, "synthesis mode": "paper", "budget policy": {"global timeout budget seconds": 20} } Use the returned run id with adaptorch get run and adaptorch get artifacts , or open /app/runs. § 05 What the record shows, and what it does not The run record shows the inputs, the selected model and outputs, recorded commands and check outcomes when an execution environment is configured, and open review items. A SUCCEEDED run is not a test pass: a repository code check needs a separately configured execution environment, and missing or skipped checks stay unverified. AdaptOrch documents the Codex CLI configuration format above, but this connection has not been tested by AdaptOrch end to end in Codex CLI. Read the claim boundary https://adaptorch.com/claim-boundary before relying on run records in a review process, and see the AI PR review guide https://adaptorch.com/ai-pr-review/ for what to inspect. § 06 Codex CLI integration FAQ Q.01Where does Codex CLI configure MCP servers? In ~/.codex/config.toml under an mcp servers.