How to connect MCP servers to each harness and what their tools can do once connected. The protocol table at the end shows which parts of the MCP specification each client supports.
Setting up a server
| Question | Codex CLIchecked at 0.162.1 |
|---|---|
| Add a server | Run
Plugins can bundle servers in |
| Transports | |
| Where configs live, and project trust | Servers live in Trusting the project is the only gate: Codex has no separate per-server approval prompt for project-defined servers. |
| Sign in or pass credentials | For HTTP servers, you can set
0.164.0 source: enterprise-managed authentication requires xaa_enabled and an enabled directly configured server with EMA registration. Eligible account-grant reuse checks issuer, identity and account ownership; a configured client secret additionally requires matching client identity, otherwise dedicated sign-in is needed. This does not apply automatically to every plugin server. |
Using its tools
| Question | Codex CLIchecked at 0.162.1 |
|---|---|
| Approve, allow or block tools | Each server takes a With |
| Tool search & code mode | On models that support tool search, all MCP tools are deferred behind a built-in Tool search can't be turned off: the old Tool input schemas larger than |
| Output size and timeouts | Set When a tool call times out, the model gets an error result instead of tool output. |
| Resources | Partly Yes, but only the model uses them. Codex gives the model built-in |
| Prompts | Not supported No. Codex never lists or fetches MCP server prompts, so they don't show up as slash commands or anywhere else in the UI. |
| When a server asks you or the model | Partly Codex 0.163.0 forwards MCP forms and URL requests through App Server. The TUI collects strings, booleans and single-select enums; unsupported standard forms fall back to a confirmation, so accept can lack the required data. Structured TUI forms use accept/cancel; URL dismissal maps to decline. The App Server reply envelope supports accept/decline/cancel, but backend forwarding does not validate answers against requestedSchema. exec cancels requests. Policy can decline prompts, with empty-confirmation auto-accept and eligible Full Access form-input exceptions. OpenAI extended forms are separate opt-ins. Roots and sampling remain unsupported on the registered legacy client. |
Running servers
| Question | Codex CLIchecked at 0.162.1 |
|---|---|
| Status, enable, reconnect, debug | Use
Setting |
| Run the harness as an MCP server | Not supported No. |
Protocol features
| Feature | Codex CLIprotocol 2025-06-18 |
|---|---|
| Roots Let a server discover the client-approved filesystem roots; this is not the server process working directory. deprecated in the current spec | Not supported The initialize request advertises only elicitation (plus OpenAI extensions); there is no roots capability or roots/list handler. Source |
| Sampling Let a server request an LLM interaction through the host, with user review and model preferences. deprecated in the current spec | Not supported No sampling capability is advertised and sampling/createMessage is not handled. Source |
| Sampling with tools Let the sampling loop invoke tools recursively; do not confuse this with ordinary server tool calls. deprecated in the current spec | Not supported Source |
| Elicitation (generic) Server-originated MCP input requests, distinct from permission approvals, model ask-user tools, generic chat forms or MCP Apps. Check each mode and host separately. | Partly 0.163.0 source audit: form and URL advertised by default via stable auth_elicitation; disabling it retains form-only capability. Policy/reviewer routing, empty-confirmation auto-accept, and eligible post-startup Full Access form-input exceptions apply. No runtime probe. Source |
| Form elicitation Collect typed property-keyed answers using the restricted elicitation schema, with accept/decline/cancel. Schema parsing, UI validation and backend answer validation are separate claims. | Partly App Server relays typed standard schemas and accept/decline/cancel with JSON content, but the ordinary backend reply path does not validate content against requestedSchema. TUI renders strings, booleans and single-select enums, checks required answers, omits string constraints, and falls back to an approval for unsupported number/multi-select fields. codex exec returns cancel. Structured TUI forms submit accept or cancel; decline is available in confirmation/approval variants, not a separate structured-form refusal control. Source |
| URL elicitation Direct the user to an external interaction without collecting its sensitive data. Acceptance is not completion; track legacy completion notifications separately from current MRTR retry. | Partly 0.163.0 TUI uses an external-link view with accept/decline; Escape/Ctrl-C maps to decline, without distinct cancel. App Server supports all three actions independently and is a host contract, not MCP wire. Acceptance does not prove browser completion; exec cancels. Modern MRTR is separately gated. Source |
| Prompts Expose reusable, argument-aware server prompts through the client UI. | Not supported The client never calls prompts/list or prompts/get; server prompts are not exposed as commands. Source |
| Resources List and read server-provided context independently from tool execution. | Supported Model-driven through built-in list_mcp_resources and read_mcp_resource tools; no @-mention picker. Source |
| Resource templates Discover and fill parameterized resource URIs. | Supported The model lists templates with list_mcp_resource_templates and reads a filled URI with read_mcp_resource. Source |
| Argument completion Complete prompt arguments and resource-template parameters without an LLM call. | Not supported Source |
| Progress Correlate monotonic progress with a request; UI display and timeout extension are separate behaviors. | Partly Server progress notifications are accepted and written to Codex's log only; model tool calls carry no progress token and nothing is shown in the UI or extends the timeout. Source |
| Cancellation Cooperatively cancel in-flight protocol requests and propagate intent to the handler. | Partly Server-sent cancellation closes a pending prompt, and Codex cancels its own long-lived event-stream requests. Since 0.165.0, abandoning a pending tool call sends notifications/cancelled; 0.166.0 extends this to other requests only on shared connections (under-development mcp_connection_sharing, MCP 2026-07-28). No interoperability probe. Source |
| Protocol logging Deliver correlated server logs through MCP rather than relying on process stderr. deprecated in the current spec | Partly notifications/message is mapped to Codex's own log levels; logging/setLevel is never sent and nothing is shown in the UI. Source |
| Subscriptions Receive correlated updates over a long-lived request. | Not supported resources/subscribe is never sent; update and list_changed notifications are only logged. A separate events/stream extension is used only for the built-in ChatGPT apps server. See Events and agent wake-up for the separately pinned 0.164.0 relay and CLI behavior. Source |
| Multi-round-trip requests Pause a request for sampling, elicitation, or roots input and retry it with opaque request state. | Partly Only for tools/call, and only with the under-development mcp_2026_07_28 feature (off by default) against a server that negotiates 2026-07-28. Source |
| Tasks (legacy) Durable polling, status, result, and cancellation state from the 2025-11-25 experimental protocol era. earlier experimental spec | Not supported No tasks capability is advertised and no tasks/* requests are made. Source |
| Tasks extension Asynchronous tool results using io.modelcontextprotocol/tasks on 2026-07-28 connections, separate from legacy Tasks and client backgrounding. separate protocol extension | Not supported Source-audited at rust-v0.164.0 (6aaac694803004a63c6f393d153c96d22521a6b9): catalog registrations including host extensions/Apps use a shared call path that accepts normal results and input_required, not task results. App Server extension projection excludes io.modelcontextprotocol/tasks. This rates the built-in Rust client, not hosted server internals or desktop UI. Source |
| Events and agent wake-up External updates that can trigger agent work. ChatGPT Work documents signed webhook subscriptions; Codex has a separate hosted-app event stream. Receiving an event and starting a model turn are separate capabilities. separate protocol extension | Partly Codex 0.164.0 source audit: no automatic agent wake-up in the CLI TUI, which ignores event-stream notifications. Experimental App Server methods mcpServer/event/stream/start and /stop relay notifications to the requesting host; forwarding does not start or steer a model turn. The stream only accepts codex_apps registered by the host as its Apps service. Ordinary configured or plugin MCPs, including remote HTTP servers, do not qualify. Hosted apps means integrations through the hosted plugin service, not any server hosted online. A custom host can explicitly register a HostedApps provider; its context injection and turn delivery need separate verification. apps defaults on; the separate codex_apps_mcp_2026_07_28 protocol switch defaults off. This uses events/stream, distinct from ChatGPT Work webhook subscriptions. Source-inspected, not runtime-tested; desktop behavior and hosted availability remain unverified. Source |
Notes and sources
Codex CLI, 37 sources
- Elicitation rechecked at rust-v0.163.0 (83086188ae0614bd882818ff1aa23f3194962012) on 2026-10-23; observedVersion and non-elicitation references retain the earlier 0.162.1 audit. App Server forwarding does not prove desktop, IDE or custom-host UI/validation. See docs/research/mcp-elicitation.md and its evidence artifact.
- Tasks extension reviewed 2026-10-24; see docs/research/evidence/mcp-tasks-other-harnesses-2026-10-24.json. Other feature ratings and sourceRevision/observedVersion retain their independently dated audits.
- 0.167.2 enables incremental_tools_legacy_gcp by default for the legacy GCP provider route; set [features] incremental_tools_legacy_gcp = false to opt out. Responses Lite uses its separate incremental_tools gate, and existing windows retain their recorded tool layout until a new window. This concerns model tool declaration delivery, not a new MCP capability or hosted protocol. Source inspection only.
- 0.170.0 source: features.multi_environment_mcp is under development and default off. Configuration selects EnvironmentQualified catalog exposure when enabled; otherwise Legacy exposure groups declarations by name. Qualified registration keys distinguish the same server name by environment, and model tool namespaces include a stable environment hash. Registration scope is separate from execution location. This is client-side server identity, not a new MCP protocol revision or proof of desktop behavior; no runtime probe.
- In 0.172.0, mcp_lazy_stdio_startup defaults on. In regular chats an eligible optional stdio server can advertise cached tools and start on first use. Deferral requires a current catalog containing an allowed tool. Explicit reconnects and selected plugin servers start eagerly.