Skip to main content
Glama

Codex Supervisor MCP

A local Model Context Protocol (MCP) bridge that lets a compatible host start, monitor, steer, interrupt, resume, and approve Codex app-server work.

It wraps codex app-server; it does not automate a terminal UI or scrape an IDE.

Capabilities

The server exposes these MCP tools:

Tool

Purpose

codex_start

Start a new Codex thread and turn in an allowed repository.

codex_send

Send a new instruction after the active turn is idle.

codex_steer

Append guidance to the active turn.

codex_status

Read thread state, recent events, the latest agent message, diff, and pending requests.

codex_wait

Long-poll until completion, failure, interruption, or an approval request.

codex_interrupt

Interrupt an active turn.

codex_list_threads

List persisted threads inside configured roots.

codex_read_thread

Read a persisted authorized thread.

codex_list_approvals

Inspect pending app-server requests.

codex_resolve_approval

Accept, decline, or cancel command-execution and file-change approvals.

Related MCP server: Codex Bridge MCP

Requirements

  • Node.js 22 or newer.

  • A current Codex CLI available as codex.

  • Codex CLI authentication already configured.

  • One or more explicit local repository roots.

This project has no npm runtime dependencies.

Verify the package

npm test

The test suite uses a protocol-compatible mock app-server. It does not make model requests or require Codex authentication.

Install with the Codex CLI

Use the MCP server name codex-supervisor. The name must match CODEX_SUPERVISOR_MCP_NAME; the bridge uses it to prevent the child app-server from loading this same MCP server recursively.

macOS or Linux

codex mcp add codex-supervisor \
  --env CODEX_ALLOWED_ROOTS="/Users/you/code:/Users/you/work" \
  --env CODEX_SUPERVISOR_MCP_NAME="codex-supervisor" \
  -- node "/absolute/path/to/codex-supervisor-mcp/src/index.mjs"

Use the platform path-list delimiter between roots. On macOS and Linux it is a colon (:).

Windows PowerShell

codex mcp add codex-supervisor `
  --env CODEX_ALLOWED_ROOTS="C:\src;D:\work" `
  --env CODEX_SUPERVISOR_MCP_NAME="codex-supervisor" `
  -- node "C:\absolute\path\to\codex-supervisor-mcp\src\index.mjs"

On Windows the path-list delimiter is a semicolon (;).

Confirm the registration:

codex mcp list

In Codex, type /mcp to inspect the connected server.

Install with config.toml

Copy and adapt examples/config.toml, then place its contents in ~/.codex/config.toml or a trusted project's .codex/config.toml.

Use absolute paths. Keep the server id and CODEX_SUPERVISOR_MCP_NAME identical.

ChatGPT desktop or the Codex IDE extension

  1. Open Settings → MCP servers → Add server.

  2. Set the name to codex-supervisor.

  3. Select STDIO.

  4. Set the command to node.

  5. Add the absolute path to src/index.mjs as the only argument.

  6. Add CODEX_ALLOWED_ROOTS and CODEX_SUPERVISOR_MCP_NAME=codex-supervisor.

  7. Save and restart the host.

  8. Type /mcp to verify the tools.

Local STDIO MCP servers are not loaded by ordinary ChatGPT web chats. Using this bridge from the web requires a separately deployed, authenticated remote MCP service or hosted plugin.

Typical workflow

Ask the MCP host to:

Use codex_start in /absolute/path/to/repository to implement the requested
change. Use workspaceWrite, keep network access disabled, wait for progress,
show me every approval request before resolving it, and report the final diff
and test result.

The host should follow this sequence:

codex_start -> codex_wait
  approval request -> inspect -> codex_resolve_approval -> codex_wait
  active correction -> codex_steer -> codex_wait
  completed -> codex_status
  later follow-up -> codex_send -> codex_wait

Every start/send/steer/interrupt call returns an eventCursor. Pass it as afterSequence to codex_wait or codex_status to avoid replaying older events.

approvalPolicy accepts the current app-server wire values on-request (default) and untrusted. The legacy values onRequest and unlessTrusted are accepted by the bridge and normalized before the app-server request.

The public approval API accepts decline even when a Codex app-server release advertises only cancel for the request. In that case the bridge uses the safe app-server cancellation response and reports both the requested and effective decisions.

Configuration

Variable

Default

Meaning

CODEX_ALLOWED_ROOTS

Required

Repository roots separated by the platform path-list delimiter.

CODEX_BIN

codex

Native Codex executable path. Windows .cmd, .bat, and .ps1 shims are rejected.

CODEX_SUPERVISOR_MCP_NAME

codex-supervisor

MCP config id disabled in the nested app-server to prevent recursion.

CODEX_ALLOW_NETWORK

0

Set to 1 to allow callers to request network access.

CODEX_EVENT_LIMIT

1000

In-memory event count, clamped to 100–10,000.

CODEX_SUPERVISOR_DEBUG

0

Set to 1 to copy Codex app-server stderr to this server's stderr.

CODEX_APP_SERVER_ARGS

Internal safe default

Advanced JSON array replacing every argument passed to codex.

The default app-server arguments are equivalent to:

-c mcp_servers.<CODEX_SUPERVISOR_MCP_NAME>.enabled=false app-server

Overriding CODEX_APP_SERVER_ARGS removes that recursion guard. Include an equivalent disable override yourself.

Security model

  • CODEX_ALLOWED_ROOTS is mandatory.

  • Paths are canonicalized with realpath; symlink escapes are rejected.

  • Codex receives restricted read access to the selected repository and platform defaults.

  • workspaceWrite limits writable roots to the selected repository.

  • dangerFullAccess is not exposed.

  • Network access requires both CODEX_ALLOW_NETWORK=1 and networkAccess: true on a task.

  • The bridge has no generic, unsandboxed shell tool.

  • Command and file-change approvals must be resolved explicitly.

  • Threads outside allowed roots are denied or filtered.

  • Event payloads are size-bounded before storage.

  • Stored thread paths are re-canonicalized at use time; deleted or replaced repository paths fail closed.

  • Same-thread mutations, approval responses, and retried remote calls are serialized or deduplicated rather than executed twice.

  • Transport errors are recursively redacted and size-bounded before they cross STDIO or HTTP boundaries.

  • Relay and remote-server credentials (BIOTELE_* and CODEX_REMOTE_*) are removed from the child Codex environment.

  • Remote result submissions are HMAC-authenticated, base64url encoded, split into bounded chunks, and verified by length and SHA-256 before use. Encoding protects the transport from content filters; it is not encryption.

The child app-server still inherits non-relay process settings and your broader Codex configuration. Audit other environment secrets, apps, skills, hooks, and configured MCP servers before using it with untrusted code. Environment stripping is not an operating-system security boundary: a child running as the same Windows user can deliberately query user-scoped settings. Use a dedicated Windows account if that threat is in scope.

Supported approval requests

This release resolves:

  • item/commandExecution/requestApproval

  • item/fileChange/requestApproval

Other app-server requests remain visible through codex_status and codex_list_approvals, but the bridge refuses to answer them. This prevents a generic response endpoint from silently granting permissions or supplying sensitive user input.

Persistence and monitoring

Codex owns persisted thread history. The bridge keeps streamed event buffers, latest deltas, and pending request state in memory. Restarting the MCP server clears that transient state, but codex_list_threads and codex_read_thread can recover authorized persisted threads.

Development

npm test
node --check src/index.mjs

Project layout:

src/app-server-client.mjs  Codex app-server JSONL client
src/approval-policy.mjs    Approval-policy validation and legacy normalization
src/event-store.mjs        Bounded event, turn, and approval state
src/security.mjs           Repository-root policy
src/supervisor-service.mjs Codex lifecycle orchestration
src/tool-registry.mjs      MCP tool schemas and validation
src/mcp-server.mjs         Dual-era MCP STDIO transport
src/index.mjs              Entrypoint
test/                      Unit and integration tests

License

MIT

Codex App Server compatibility

Version 1.0.3 removes the deprecated readOnly.access and workspaceWrite.readOnlyAccess fields from turn/start. Current Codex App Server releases use permission profiles when a client needs custom restricted read scopes. The supervisor continues to restrict writable roots to the selected repository and validates every task directory against CODEX_ALLOWED_ROOTS.

Hostinger remote relay

Version 1.2.5 provides a Hostinger-compatible relay for ChatGPT remote MCP access:

ChatGPT -> OAuth bearer JWT -> Hostinger /mcp -> namespace-routed queue
  codex_*  -> outbound Windows local-agent -> Codex app-server
  reeves_* -> outbound Reeves Android agent -> accessibility service

The public /mcp endpoint validates RS256 OAuth access tokens from an external identity provider. The Windows and Reeves agents use independent HMAC credentials only for outbound polling, status, lease acquisition, and result submission. The Hostinger relay never starts Codex and never reads local repositories.

The hosted relay keeps all existing codex_* tools and additionally exposes reeves_status, reeves_tap, reeves_swipe, reeves_type, reeves_back, reeves_home, reeves_recents, reeves_sequence, and reeves_screenshot. The local STDIO Codex registry remains Codex-only. Agent claims are filtered by authenticated key ID; client-supplied routing fields are ignored.

reeves_screenshot returns Android pixels as a standard MCP image content block (image/png with base64 data) together with width, height, capture timestamp, agent id, and byte-length metadata. The Android agent uses the relay-advertised chunked result protocol, so no unusable Android-local path is exposed and each signed HTTP request remains within the relay body limit.

reeves_sequence sends 1 through 50 ordered device actions in one routed job. Android executes tap, swipe, type, Back, Home, Recents, wait, and screenshot actions locally, stops on the first error by default, and returns one final MCP image by default. Results include indexed action outcomes and additive, secret-free relay/Android stage timings. The existing 25-second agent request is a wake-on-enqueue long poll, not a pickup delay; Android immediately starts another claim after each successful result submission and reuses one OkHttp connection pool.

This release also negotiates a supported MCP protocol version, issues a bounded OAuth-subject-bound session, and requires that session on follow-up requests. Retried tool calls are bound to the OAuth subject, MCP session, typed JSON-RPC id, and request hash; terminating a session invalidates its cached or pending work. The release also cleans up cancelled relay work and crashed app-server state, revalidates authorized paths, isolates per-thread events, and redacts bounded nested error data at every public transport.

Version 1.2.5 also reconciles codex_status.latestAgentMessage with the authorized persisted transcript. Fully persisted external Codex completions, including synthesized rollout-* turns, now replace stale bridge-observed messages while incomplete or interrupted transcript tails remain excluded.

Deploy the updated relay before updating the Windows agent. The new relay still accepts legacy one-shot results, while the new agent uses the chunked format only after the relay advertises support.

See docs/REMOTE_DEPLOYMENT.md for Hostinger hPanel steps, DNS for mcp.biotele.mx, Auth0 setup, Microsoft Entra ID setup, ChatGPT web connector setup and recovery, environment variables, local-agent installation, and the threat model.

Available Tools

10 tools
codex_interruptInterrupt Codex turnA
DestructiveIdempotent

Request cancellation of an active Codex turn.

ParametersJSON Schema
NameRequiredDescriptionDefault
turnIdNoOptional turn id; defaults to the active turn known by this bridge.
threadIdYesCodex thread id.

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds the nuance that the cancellation applies to an 'active' turn, which implies it may not have effect on non-active turns. However, the annotations already declare destructiveHint and idempotentHint, so the description does not need to restate those. It does not clarify what happens if no active turn exists or whether this is a request versus a guaranteed cancellation, but with annotations covering the safety profile, the additional context is moderate.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence that directly conveys the tool's purpose without any filler. It is perfectly concise and well-structured for such a simple operation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, the presence of annotations (destructive, idempotent) and full schema descriptions, the description provides sufficient context for invocation. It does not mention return values or error scenarios, but with no output schema and a straightforward operation, this is not a critical gap. It covers the essential action and target.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Both parameters have thorough descriptions in the schema (100% coverage), including meaning and default behavior for turnId. The tool description itself adds no further parameter semantics, so the baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states a specific action (request cancellation) on a specific resource (an active Codex turn), which distinguishes it from sibling tools like codex_start or codex_status. The verb 'request cancellation' is unambiguous and the phrase 'active Codex turn' scopes the operation appropriately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives. It does not mention that it should be used to stop an ongoing turn, or that one might use codex_status first to check for an active turn. The description simply states what it does without any contextual 'when-to-use' or exclusionary language.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_list_approvalsList Codex approvalsA
Read-onlyIdempotent

List pending app-server requests. This release resolves command-execution and file-change approval requests; unsupported request types remain visible.

ParametersJSON Schema
NameRequiredDescriptionDefault
threadIdNoOptional authorized thread filter.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly and non-destructive behavior. The description adds context that unsupported request types remain visible and specifies which types this release resolves, going beyond annotations. No contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences: the first states the primary action, the second adds scope clarification. No waste, information is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple list tool with good annotations and full schema coverage, the description covers the operation and adds useful context about supported versus unsupported request types. It does not specify the return format, but no output schema exists, so the description is adequate.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The only parameter, threadId, is fully documented in the schema as 'Optional authorized thread filter.' The description adds no further parameter semantics, so the schema carries the weight.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('List') and resource ('pending app-server requests'), clearly distinguishing it from siblings like codex_resolve_approval and codex_list_threads. The title corroborates this.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly provides the context for when to use the tool (listing pending approvals). However, it does not explicitly mention alternatives or exclusions, so it does not achieve a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_list_threadsList Codex threadsA
Read-onlyIdempotent

List persisted Codex threads whose working directories are inside CODEX_ALLOWED_ROOTS. Results outside those roots are filtered.

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional exact allowed working-directory filter.
limitNo
cursorNoOptional pagination cursor.
searchTermNoOptional thread search text.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only and idempotent safety, so the description adds value by revealing the filtering behavior based on CODEX_ALLOWED_ROOTS and the 'persisted' qualifier. This goes beyond what annotations provide and gives important behavioral context for an agent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences. The first sentence states the primary action and scope, and the second clarifies a key behavioral constraint. No unnecessary words or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple listing tool with no output schema, the description covers the essential purpose and a key constraint. Combined with the schema and annotations, it provides sufficient context to use the tool, though it could mention pagination or return format explicitly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description does not elaborate on any parameters. However, schema descriptions cover 3 of 4 parameters (cwd, cursor, searchTerm), and the remaining limit parameter has min/max constraints. With 75% schema coverage, the description's lack of parameter details is acceptable but not outstanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('List') with a clear resource ('persisted Codex threads') and a scoping constraint (working directories inside CODEX_ALLOWED_ROOTS). This clearly distinguishes it from sibling tools like codex_read_thread (which reads a single thread) and codex_list_approvals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage by stating the tool lists threads and filters by allowed roots. It gives clear context (listing function) but does not explicitly name alternative tools or exclusions. The mention that results outside allowed roots are filtered provides actionable guidance about when this tool is appropriate.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_read_threadRead Codex threadA
Read-onlyIdempotent

Read a persisted authorized Codex thread. The bridge denies threads outside CODEX_ALLOWED_ROOTS.

ParametersJSON Schema
NameRequiredDescriptionDefault
threadIdYesCodex thread id.
includeTurnsNoInclude full persisted turns. Omit for the safer compact thread view.

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, covering the safety profile. The description adds a substantive behavioral detail: the bridge denies threads outside CODEX_ALLOWED_ROOTS, which is not visible in annotations. This informs the agent about potential authorization failures and scoping limits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences with no filler. The main purpose is front-loaded in the first sentence, and the second sentence provides a crucial constraint. Every word contributes to understanding the tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity, strong annotations, and full parameter schema coverage, the description is mostly complete. It does not describe the return value format, but with no output schema, that is a gap; however, the name and the includeTurns parameter reasonably convey what is returned. The authorization constraint adds essential context for operational use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% for both parameters, so the structured schema already defines threadId and includeTurns. The description adds no additional meaning beyond what the schema provides, such as the distinction between compact and full turn views, which is already in the schema. Baseline 3 is appropriate when schema covers parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Read') and the resource ('a persisted authorized Codex thread'), immediately distinguishing it from sibling tools like codex_list_threads (list threads) or codex_status (status check). The scope is well-defined with the authorization constraint, making the tool's purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage for reading a specific thread's contents, but it does not explicitly differentiate from alternatives like codex_status or codex_list_threads. The mention of CODEX_ALLOWED_ROOTS is a constraint on valid inputs rather than guidance on when to choose this tool over others. Use is implied rather than clearly instructed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_resolve_approvalResolve Codex approvalA
Destructive

Explicitly accept, accept for the session, decline, or cancel a pending Codex command-execution or file-change approval.

ParametersJSON Schema
NameRequiredDescriptionDefault
decisionYes
requestKeyYesOpaque requestKey returned by codex_status or codex_list_approvals.

TDQS

A3.7/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already mark the tool as destructive (destructiveHint: true) and non-idempotent (idempotentHint: false). The description adds the specific decision actions (accept, acceptForSession, decline, cancel) but does not disclose behavioral details such as whether accepting triggers command execution or whether cancellation is reversible. It does not contradict the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, information-dense sentence that efficiently lists all decision actions and the approval types. There is no redundancy or filler, making it highly concise and well-structured.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool, the description covers the core purpose and decision spectrum adequately. However, it fails to mention how to obtain a requestKey or what happens after a decision (e.g., whether the command execution proceeds). The lack of an output schema means return values are unaddressed, but this is a minor gap given the simple nature of the tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is only 50%, with requestKey having a description and decision lacking one. The description repeats the enum values without explaining their semantic differences or the consequences of each choice. It adds no meaning beyond the schema for requestKey, merely referencing 'pending approval' without clarifying how to obtain or use the key.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses explicit verbs (accept, decline, cancel) and names the resource (pending Codex command-execution or file-change approval), making the tool's purpose immediately clear. It also distinguishes this from sibling tools like codex_list_approvals by indicating this tool resolves rather than lists approvals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is used when a pending approval exists, but it does not explicitly state when to use this tool versus alternatives, nor does it mention prerequisites like obtaining a requestKey. There is no guidance on when to choose acceptForSession over accept, or when to cancel rather than decline.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_sendSend new Codex turnA
Destructive

Resume an authorized Codex thread when necessary and start a new turn. Use only when no turn is active; use codex_steer for an in-flight turn.

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdNoOptional allowed repository directory override.
modelNoOptional Codex model id. Omit to use the configured default.
effortNoOptional reasoning effort accepted by the selected model.
promptYesNew user instruction.
threadIdYesCodex thread id.
sandboxModeNoread-only prevents edits; workspace-write permits writes only in the repository. Legacy camelCase aliases remain accepted.workspace-write
networkAccessNoRequires CODEX_ALLOW_NETWORK=1 on the MCP server.
approvalPolicyNoControls when Codex asks before command execution or file changes.on-request

TDQS

A4.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate destructive and open-world behavior, so the description doesn't need to repeat those. However, it adds only a state constraint ('no turn active') without explaining what 'authorized' means, potential side effects like command execution, or how approval flow (given sibling codex_resolve_approval) interacts. Neutral but somewhat thin.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no fluff, front-loaded with action and usage. Every word earns its place and is highly scannable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

While purpose and usage are clear, the tool has 8 parameters and no output schema. The description doesn't explain what the function returns, how to handle approval requests, or what distinguishes an 'authorized thread'. Sibling tools like codex_wait and codex_resolve_approval imply a larger workflow, but this description alone leaves some gaps for an agent to infer.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 8 parameters. The description adds no parameter-level detail beyond what the schema already provides, which is acceptable given the baseline of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses specific verbs ('Resume', 'start a new turn') with a clear resource ('Codex thread'), and differentiates itself from the sibling tool codex_steer by explicitly stating its scope. It clearly states what the tool does and when it applies.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly states when to use this tool ('only when no turn is active') and names the alternative for the opposite case ('use codex_steer for an in-flight turn'). This is exactly the kind of direct usage guidance needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_startStart Codex taskA
Destructive

Start a new Codex app-server thread and immediately begin a turn in an allowed local repository. Return threadId, turnId, and an event cursor for codex_wait or codex_status.

ParametersJSON Schema
NameRequiredDescriptionDefault
cwdYesExisting repository directory inside CODEX_ALLOWED_ROOTS.
modelNoOptional Codex model id. Omit to use the configured default.
effortNoOptional reasoning effort accepted by the selected model.
promptYesComplete implementation or investigation request for Codex.
sandboxModeNoread-only prevents edits; workspace-write permits writes only in the repository. Legacy camelCase aliases remain accepted.workspace-write
networkAccessNoRequires CODEX_ALLOW_NETWORK=1 on the MCP server.
approvalPolicyNoControls when Codex asks before command execution or file changes.on-request

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description adds behavioral context beyond annotations: it returns threadId, turnId, and an event cursor, and clarifies that the turn begins immediately in an allowed local repository. Annotations already mark it as destructive and open-world, so no contradiction exists. It doesn't elaborate on approval or sandbox behavior, but those are covered by schema and annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences convey purpose, behavior, and return value without repetition. Every clause earns its place: it names the resource, the immediate action, the allowed scope, and the downstream tools that consume the return values.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description appropriately explains the return values. It also contextualizes the tool as a starting point for a thread lifecycle. It doesn't explicitly state that execution is asynchronous or that the returned IDs are needed for later calls, but those are strongly implied by the mention of the event cursor. The tool's complexity is well handled overall.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema documents all parameters well. The description only adds 'allowed local repository' context that aligns with cwd, and mentions the return cursor, but doesn't add new details about parameters like model, effort, sandboxMode, etc. This meets the baseline for high schema coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Start a new Codex app-server thread'), the resource ('Codex app-server thread'), and the immediate behavior ('begin a turn in an allowed local repository'). It also distinguishes this from sibling tools by explicitly returning an event cursor for codex_wait or codex_status, signaling this is the entry point for new threads.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It explains what this tool does and implies its role relative to siblings by referencing post-start tools (codex_wait, codex_status). It doesn't explicitly say when not to use it or name alternatives for existing threads, but the context of 'new' thread is clear. The return cursor guidance helps the agent know how to follow up.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_statusRead Codex statusA
Read-onlyIdempotent

Read a thread snapshot, current turn state, pending approvals, latest agent message, latest diff, and recent streamed events.

ParametersJSON Schema
NameRequiredDescriptionDefault
threadIdYesCodex thread id.
maxEventsNo
includeTurnsNoInclude persisted turn history; this can produce a large response.
afterSequenceNoReturn events newer than this cursor.

TDQS

A4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds transparency by detailing the exact data returned (latest diff, streamed events, etc.) beyond the annotation flags. It does not mention potential large responses from includeTurns, but that is covered in the schema parameter description.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, well-structured sentence that front-loads the main action ('Read a thread snapshot') and then lists all data components in a logical sequence. No filler or redundant content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description adequately enumerates the key return categories (thread snapshot, turn state, approvals, etc.). It does not cover edge cases or polling behavior, but given the read-only annotation and schema parameters, it provides sufficient context for an agent to understand the tool's purpose and outputs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description does not elaborate on any parameters, but the input schema already provides descriptions for 3 of 4 parameters (threadId, includeTurns, afterSequence). The only undocumented parameter, maxEvents, is self-explanatory. The description's phrase 'recent streamed events' loosely implies event-related parameters but adds minimal value beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool reads a thread snapshot, current turn state, pending approvals, latest agent message, latest diff, and recent streamed events. It uses a specific verb ('Read') and resource, and the enumerated components distinguish it from sibling tools like codex_read_thread or codex_list_approvals.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implicitly conveys this is for getting a composite status view, but it does not explicitly state when to use this tool versus alternatives such as codex_read_thread or codex_list_approvals. No exclusions or alternative recommendations are given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_steerSteer active Codex turnA
Destructive

Append guidance to the currently active turn without creating another turn. Supply expectedTurnId when available to prevent steering the wrong turn.

ParametersJSON Schema
NameRequiredDescriptionDefault
promptYesAdditional in-flight guidance.
threadIdYesCodex thread id.
expectedTurnIdNoOptional active turn id returned by codex_start or codex_send.

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint false, destructiveHint true, and idempotentHint false, so the agent knows this modifies state. The description adds context about the 'currently active turn' and the safety mechanism of expectedTurnId to avoid steering the wrong turn. Still, it does not explain failure modes or what happens if no active turn exists, so it provides only moderate additional transparency beyond the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences long, front-loaded with the core action, and every word earns its place. It avoids repetition and includes both the primary function and an important usage hint without excess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity and the presence of detailed annotations, the description is adequate. It covers the key behavior and the critical safety parameter. A minor gap is that it does not explain return behavior or error conditions (e.g., what happens if no active turn exists), but since there is no output schema and the context is straightforward, this is not a significant omission.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3. The description adds meaning for expectedTurnId by explaining its purpose ('prevent steering the wrong turn'), which goes slightly beyond the schema. However, it offers no additional context for prompt or threadId beyond the existing schema descriptions. Overall, the added value is marginal, so a 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool appends guidance to the currently active turn, using the specific verb 'append' and resource 'guidance to active turn'. It also distinguishes itself from creating another turn, differentiating it from siblings like codex_send. The mention of expectedTurnId to prevent steering the wrong turn further clarifies its unique role.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool: when you want to add guidance to an ongoing turn rather than starting a new one. The phrase 'without creating another turn' provides an exclusion, and the instruction to supply expectedTurnId when available gives practical guidance. However, it does not explicitly name alternative tools, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codex_waitWait for Codex progressA
Read-onlyIdempotent

Long-poll an active turn until it completes, fails, requests approval, is interrupted, or reaches the timeout. Continue with the returned eventCursor.

ParametersJSON Schema
NameRequiredDescriptionDefault
threadIdYesCodex thread id.
maxEventsNo
timeoutMsNo
afterSequenceNoCursor returned by the preceding Codex tool call.

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint and idempotentHint, so behavioral disclosure of safety is covered. The description adds valuable context about long-polling semantics, terminal states, timeout behavior, and the eventCursor continuation mechanism, which goes beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the action and outcome, and every phrase adds value. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple polling tool, the description covers purpose, terminal conditions, timeout, and continuation with eventCursor. There is no output schema, but the description gives enough hint about the return value. It could mention what events contain or how to handle approval requests, but those may be covered by sibling tools like codex_resolve_approval.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%: threadId and afterSequence are described, while maxEvents and timeoutMs are not. The description mentions 'timeout' and 'eventCursor', providing partial meaning for timeoutMs and afterSequence, but does not fully compensate for the undocumented parameters. Parameter names are mostly self-explanatory, but a clearer mapping would help.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function with a specific verb ('Long-poll') and a specific resource ('an active turn'), listing all terminal states: completes, fails, requests approval, interrupted, or timeout. This distinguishes it from siblings like codex_status (which likely polls status) and codex_read_thread (which reads a thread).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use this tool: after an active turn exists, to wait for completion or interruption, and to continue using the returned eventCursor. It does not explicitly name alternatives or exclusions, but the context is clear enough that an agent can infer it should be used instead of codex_status for blocking waits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev1.2.3
    • Changedcodex_read_thread2 fields changed
      • changedInput schema / properties / includeTurns / default
        Previous value: -trueNew value: +false
      • addedInput schema / properties / includeTurns / description
        Added value: +"Include full persisted turns. Omit for the safer compact thread view."
  2. 10 tool updatesv1.0.3
    • First observedcodex_interrupt
    • First observedcodex_list_approvals
    • First observedcodex_list_threads
    • First observedcodex_read_thread
    • First observedcodex_resolve_approval
    • First observedcodex_send
    • First observedcodex_start
    • First observedcodex_status
    • First observedcodex_steer
    • First observedcodex_wait

TDQS

A3.9/5.0
Disambiguation4/5

Most tools are clearly distinct, with start/send/steer/wait/interrupt targeting different phases of thread execution. The only notable overlap is between codex_read_thread and codex_status, which both provide access to thread content, though status is a broader snapshot and read_thread is more focused.

Naming Consistency3/5

All tools share the codex_ prefix, but the pattern is inconsistent: some use verb_noun (read_thread, list_approvals, resolve_approval), while others are bare verbs (start, send, steer, wait, interrupt) or a noun (status). The naming is predictable but not uniformly structured.

Tool Count5/5

With 10 tools, the server is well-scoped for its purpose of supervising Codex threads and approvals. Each tool covers a necessary action without unnecessary redundancy, fitting comfortably within the ideal range.

Completeness5/5

The tool surface provides full lifecycle coverage: starting, resuming, steering, monitoring, interrupting, and listing threads, plus complete approval management (list and resolve). No obvious dead ends or missing operations for this domain.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/redmikarimo/codex-supervisor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server