Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_MCP_MODENoForce `app-server` or `exec` mode, skipping auto-detection.auto-detect
CODEX_MCP_BINARYNoName of the codex binary to use.codex
CODEX_MCP_STDIO_MODENoStartup preflight guard mode for stdout contamination risk. Allowed values: `auto` (default; run with warnings when risk is elevated), `strict` (fail fast on blocking risks, keep heuristic risks as warnings), or `off` (disable the preflight guard).auto

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codexB

Start session asynchronously and return { sessionId, threadId, status, pollInterval }. Use pollInterval as a minimum hint: running >=120000ms (increase for long tasks), waiting_approval ~=1000ms.

codex_replyA

Continue existing session. Allowed in idle/error; otherwise SESSION_BUSY. Returns immediately. Use pollInterval as a minimum hint: running >=120000ms, waiting_approval ~=1000ms.

codex_sessionB

Session actions: list, get, cancel, interrupt, fork, clean_background_terminals.

  • list: sessions in memory.

  • get: details. includeSensitive defaults to false; true adds threadId/cwd/profile/config.

  • cancel: terminal.

  • interrupt: stop current turn.

  • fork: clone current thread into a new session; source remains unchanged.

  • clean_background_terminals: ask app-server to clean stale background terminals for this thread.

codex_checkA

Poll session for events or respond to approval/input requests.

POLLING FREQUENCY: Do NOT poll every turn. Codex tasks take minutes, not seconds.

  • Treat pollInterval as a minimum hint, not a fixed schedule.

  • "running": sleep at least 2 minutes between polls; increase for complex tasks. Do NOT high-frequency poll — it wastes tokens and provides no benefit.

  • "waiting_approval": poll about every 1000ms and respond quickly to actions[].

  • When status is "idle"/"error"/"cancelled": stop polling, the session is done.

  • Adapt interval based on task complexity and whether the previous poll returned new events.

poll: events since cursor. Default maxEvents=1.

respond_permission: approval decision. Default maxEvents=0 (compact ACK).

respond_user_input: user-input answers. Default maxEvents=0 (compact ACK).

events[].type is coarse-grained; details are in events[].data.method. cursor omitted => use session last cursor. cursorResetTo => reset and continue.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
server_infoServer metadata and runtime capabilities
compat_reportCross-backend compatibility capability report
configParameter guide and config.toml mapping
gotchasPractical limits and common issues
quickstartMinimal end-to-end workflow
errorsError code reference and recovery hints

TDQS

A3.6/5.0

Scored across 4 tools

Disambiguation4/5

The four tools map to distinct lifecycle stages: start (codex), continue (codex_reply), manage (codex_session), and poll/respond (codex_check). There is minor overlap between codex_reply and codex_check's respond_user_input/respond_permission (both send input to a session), but the descriptions disambiguate by session state (idle/error vs waiting_approval).

Naming Consistency4/5

All tools share the `codex_` prefix and snake_case style, giving a predictable namespace. The bare `codex` tool for starting a session is the only deviation (no verb like codex_start), which is a minor inconsistency rather than a real problem.

Tool Count4/5

Four tools is a compact, well-scoped surface for an async session orchestrator, with each tool earning its place. However, codex_session hides six sub-actions (list/get/cancel/interrupt/fork/clean) and codex_check bundles poll plus two respond variants, so the effective surface is larger than the count suggests.

Completeness4/5

The full loop is covered: start a session, poll events, respond to approvals/input, continue turns, and cancel/interrupt/fork/manage sessions. Minor gaps exist—there is no explicit delete/archive action to remove sessions from memory and no dedicated result-retrieval beyond get details, but these are workaroundable.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues