codex-exec-mcp
by JaegerY
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CODEX_MCP_LEAN | No | `1` turns off Codex plugins and the MCP servers in `~/.codex/config.toml` for these runs only, saving tokens. | 0 |
| CODEX_MCP_LOG_DIR | No | Per-job logs (prompt, events, stderr, final message). | <tmp>/codex-exec-mcp |
| CODEX_MCP_LEAN_KEEP | No | Comma-separated MCP server names to keep in lean mode. | |
| CODEX_MCP_CODEX_PATH | No | Full path to `codex`, `codex.cmd`, `codex.exe` or Codex's `codex.js`. Defaults to finding it on `PATH`. | |
| CODEX_MCP_EXTRA_ARGS | No | JSON array of extra `codex exec` arguments, e.g. `["-c","model_reasoning_effort=high"]`. | [] |
| CODEX_MCP_DEFAULT_CWD | No | Folder used when a call gives no `cwd`. Defaults to the server's working directory. | |
| CODEX_MCP_TIMEOUT_SEC | No | Hard limit per Codex run. | 1800 |
| CODEX_MCP_ALLOW_DANGER | No | Must be `1` before `danger-full-access` can be used. | 0 |
| CODEX_MCP_RUN_WAIT_SEC | No | How long one `codex_run` call waits before returning a job id. | 45 |
| CODEX_MCP_ALLOWED_ROOTS | No | Folders `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_MODEL | No | Model passed as `--model`. Defaults to Codex config. | |
| CODEX_MCP_MAX_CONCURRENT | No | Codex jobs running at once. | 4 |
| CODEX_MCP_DEFAULT_SANDBOX | No | Default sandbox mode: `read-only`, `workspace-write` or `danger-full-access`. | workspace-write |
| CODEX_MCP_STATUS_WAIT_SEC | No | How long one `codex_status` call waits. | 45 |
| CODEX_MCP_WINDOWS_SANDBOX | No | Windows only: `unelevated`, `elevated` or `mxc`, passed as `-c windows.sandbox=…`. Defaults to Codex config. | |
| CODEX_MCP_MAX_OUTPUT_CHARS | No | Longer final messages are truncated (the full text stays in the log folder). | 20000 |
| CODEX_MCP_LOG_RETENTION_DAYS | No | How many days per-job logs are kept. | 7 |
| CODEX_MCP_SNAPSHOT_MAX_FILES | No | Workspace 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_CHECK | No | Lets 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
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues