Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_BINNoPath to codex.exe, the codex binary, or @openai/codex/bin/codex.js. If unset, the Codex CLI is auto-detected. On Windows point it at codex.exe or …\node_modules\@openai\codex\bin\codex.js — .cmd shims cannot be spawned safely.auto-detect
CODEX_HOMENoCodex home (auth, config, generated_images).~/.codex
CODEX_MCP_WAITNoDefault seconds a call waits before returning a job_id (max 240).50
CODEX_MCP_SANDBOXNoDefault sandbox for codex_task (read-only or workspace-write).workspace-write
CODEX_MCP_ASSET_DIRNoDefault out_dir for images.~/Pictures/codex-assets
CODEX_MCP_MAX_TASKSNoConcurrent codex_task runs; extra jobs queue.3
CODEX_MCP_MAX_IMAGESNoConcurrent image jobs (keep 1 for reliable attribution).1
CODEX_MCP_PREVIEW_MAX_BYTESNoLargest image embedded as a preview.1500000
CODEX_MCP_PREVIEW_MAX_COUNTNoPreviews per result.4

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": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex_taskA

Delegate a task to OpenAI Codex, running codex exec on this computer with the user's own ChatGPT/Codex subscription. Good for a second opinion or code review, implementing a well-scoped change, refactors, writing tests, or digging through a codebase. Write a self-contained prompt: goal, relevant files, constraints, and what to report back. Codex works in cwd; with sandbox workspace-write it can edit files there. Returns Codex's final message plus a session_id that continues the same Codex session. Runs longer than wait_seconds return a job_id — poll it with codex_job.

codex_imageA

Generate image assets with Codex's built-in image_gen tool (GPT Image), billed to the user's ChatGPT/Codex plan — no API key. Files are copied into out_dir and small previews are returned so you can check them. Use for icons, sprites, illustrations, textures, UI mockups and similar. Supports transparent backgrounds and reference images. Each image typically takes 30-120 s.

codex_jobB

Wait for or fetch the result of a codex_task / codex_image job, or cancel it.

codex_jobsB

List recent jobs started by this server (status, kind, session_id).

codex_modelsA

List Codex models available to the user's account (slug, description, supported reasoning efforts, default effort) and the configured default from config.toml. Use before choosing model / reasoning_effort.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.9/5.0

Scored across 5 tools

Disambiguation4/5

codex_task, codex_image, and codex_models target clearly distinct purposes (delegation, image generation, model discovery). The one hazard is codex_job vs codex_jobs, whose near-identical names differ only by number; descriptions do clarify (single-job wait/fetch/cancel vs listing recent jobs), so the overlap is minor rather than fatal.

Naming Consistency4/5

Every tool shares the predictable `codex_` prefix plus a noun (task, job, image, jobs, models), which reads consistently. The only blemish is the singular/plural pair codex_job/codex_jobs, a small deviation from an otherwise clean scheme.

Tool Count5/5

Five tools is well-scoped for a Codex-delegation server: one per core action (task, image, job polling, job listing, model listing). Each tool earns its place with no redundancy or padding.

Completeness4/5

The surface covers the full lifecycle: model discovery before choosing, task/image execution, and job wait/fetch/cancel plus listing for async runs. Cancellation being folded into codex_job rather than a dedicated tool is a minor gap an agent can work around.

Maintenance

ActivityMaintained
ResponsivenessNo issues