Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_MCP_LEANNo`1` turns off Codex plugins and the MCP servers in `~/.codex/config.toml` for these runs only, saving tokens.0
CODEX_MCP_LOG_DIRNoPer-job logs (prompt, events, stderr, final message).<tmp>/codex-exec-mcp
CODEX_MCP_LEAN_KEEPNoComma-separated MCP server names to keep in lean mode.
CODEX_MCP_CODEX_PATHNoFull path to `codex`, `codex.cmd`, `codex.exe` or Codex's `codex.js`. Defaults to finding it on `PATH`.
CODEX_MCP_EXTRA_ARGSNoJSON array of extra `codex exec` arguments, e.g. `["-c","model_reasoning_effort=high"]`.[]
CODEX_MCP_DEFAULT_CWDNoFolder used when a call gives no `cwd`. Defaults to the server's working directory.
CODEX_MCP_TIMEOUT_SECNoHard limit per Codex run.1800
CODEX_MCP_ALLOW_DANGERNoMust be `1` before `danger-full-access` can be used.0
CODEX_MCP_RUN_WAIT_SECNoHow long one `codex_run` call waits before returning a job id.45
CODEX_MCP_ALLOWED_ROOTSNoFolders `cwd` must be inside (`;` on Windows, `:` elsewhere). The filesystem root, your home folder and the Windows system folder are always refused. Default: any.
CODEX_MCP_DEFAULT_MODELNoModel passed as `--model`. Defaults to Codex config.
CODEX_MCP_MAX_CONCURRENTNoCodex jobs running at once.4
CODEX_MCP_DEFAULT_SANDBOXNoDefault sandbox mode: `read-only`, `workspace-write` or `danger-full-access`.workspace-write
CODEX_MCP_STATUS_WAIT_SECNoHow long one `codex_status` call waits.45
CODEX_MCP_WINDOWS_SANDBOXNoWindows only: `unelevated`, `elevated` or `mxc`, passed as `-c windows.sandbox=…`. Defaults to Codex config.
CODEX_MCP_MAX_OUTPUT_CHARSNoLonger final messages are truncated (the full text stays in the log folder).20000
CODEX_MCP_LOG_RETENTION_DAYSNoHow many days per-job logs are kept.7
CODEX_MCP_SNAPSHOT_MAX_FILESNoWorkspace snapshot used to list files changed by shell commands. Skips `.git`, `node_modules`, build folders. `0` turns it off.20000
CODEX_MCP_SKIP_GIT_REPO_CHECKNoLets Codex work outside git repositories.1

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources