← Codex MCP Server

Codex MCP Server 1.2.5

npm · @cexll/codex-mcp-server · current release

8
Tools
0
Resources
0
Templates
8
Prompts

Observation

Observed 2026-08-14T06:15:18.039Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2024-11-05.

Server capabilities
{
  "tools": {},
  "prompts": {},
  "notifications": {},
  "logging": {}
}

Tools 8

ToolCategoryAnnotationsRisk
ask-codexExecute Codex CLI with file analysis (@syntax), model selection, and safety controls. Supports changeMode.
Input schema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Task or question. Use @ to include files (e.g., '@largefile.ts explain')."
    },
    "model": {
      "type": "string",
      "description": "Model: gpt-5-codex, gpt-5, o3, o4-mini, codex-1, codex-mini-latest, gpt-4.1. Default: gpt-5-codex"
    },
    "sandbox": {
      "type": "boolean",
      "default": false,
      "description": "Quick automation mode: enables workspace-write + on-failure approval. Alias for fullAuto."
    },
    "fullAuto": {
      "type": "boolean",
      "description": "Full automation mode"
    },
    "approvalPolicy": {
      "type": "string",
      "enum": [
        "never",
        "on-request",
        "on-failure",
        "untrusted"
      ],
      "description": "Approval: never, on-request, on-failure, untrusted"
    },
    "approval": {
      "type": "string",
      "description": "Approval policy: untrusted, on-failure, on-request, never"
    },
    "sandboxMode": {
      "type": "string",
      "enum": [
        "read-only",
        "workspace-write",
        "danger-full-access"
      ],
      "description": "Access: read-only, workspace-write, danger-full-access"
    },
    "yolo": {
      "type": "boolean",
      "description": "⚠️ Bypass all safety (dangerous)"
    },
    "cd": {
      "type": "string",
      "description": "Working directory"
    },
    "workingDir": {
      "type": "string",
      "description": "Working directory for execution"
    },
    "changeMode": {
      "type": "boolean",
      "default": false,
      "description": "Return structured OLD/NEW edits for refactoring"
    },
    "chunkIndex": {
      "type": "number",
      "minimum": 1,
      "description": "Chunk index (1-based)"
    },
    "chunkCacheKey": {
      "type": "string",
      "description": "Cache key for continuation"
    },
    "image": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ],
      "description": "Optional image file path(s) to include with the prompt"
    },
    "config": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "object",
          "additionalProperties": {}
        }
      ],
      "description": "Configuration overrides as 'key=value' string or object"
    },
    "profile": {
      "type": "string",
      "description": "Configuration profile to use from ~/.codex/config.toml"
    },
    "timeout": {
      "type": "number",
      "description": "Maximum execution time in milliseconds (optional)"
    },
    "includeThinking": {
      "type": "boolean",
      "default": true,
      "description": "Include reasoning/thinking section in response"
    },
    "includeMetadata": {
      "type": "boolean",
      "default": true,
      "description": "Include configuration metadata in response"
    },
    "search": {
      "type": "boolean",
      "description": "Enable web search by activating web_search_request feature flag. Requires network access - automatically sets sandbox to workspace-write if not specified."
    },
    "oss": {
      "type": "boolean",
      "description": "Use local Ollama server (convenience for -c model_provider=oss). Requires Ollama running locally. Automatically sets sandbox to workspace-write if not specified."
    },
    "enableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Enable feature flags (repeatable). Equivalent to -c features.<name>=true"
    },
    "disableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Disable feature flags (repeatable). Equivalent to -c features.<name>=false"
    }
  },
  "required": [
    "prompt"
  ]
}
— · —
batch-codexDelegate multiple atomic tasks to Codex for batch processing. Ideal for repetitive operations, mass refactoring, and automated code transformations
Input schema
{
  "type": "object",
  "properties": {
    "tasks": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "task": {
            "type": "string",
            "description": "Atomic task description"
          },
          "target": {
            "type": "string",
            "description": "Target files/directories (use @ syntax)"
          },
          "priority": {
            "type": "string",
            "enum": [
              "high",
              "normal",
              "low"
            ],
            "default": "normal",
            "description": "Task priority"
          }
        },
        "required": [
          "task"
        ],
        "additionalProperties": false
      },
      "minItems": 1,
      "description": "Array of atomic tasks to delegate to Codex"
    },
    "model": {
      "type": "string",
      "description": "Model to use: gpt-5-codex, gpt-5, o3, o4-mini, codex-1, codex-mini-latest, gpt-4.1"
    },
    "sandbox": {
      "type": "string",
      "default": "workspace-write",
      "description": "Sandbox mode: read-only, workspace-write, danger-full-access"
    },
    "parallel": {
      "type": "boolean",
      "default": false,
      "description": "Execute tasks in parallel (experimental)"
    },
    "stopOnError": {
      "type": "boolean",
      "default": true,
      "description": "Stop execution if any task fails"
    },
    "timeout": {
      "type": "number",
      "description": "Maximum execution time per task in milliseconds"
    },
    "workingDir": {
      "type": "string",
      "description": "Working directory for execution"
    },
    "search": {
      "type": "boolean",
      "description": "Enable web search for all tasks (activates web_search_request feature)"
    },
    "oss": {
      "type": "boolean",
      "description": "Use local Ollama server"
    },
    "enableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Enable feature flags"
    },
    "disableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Disable feature flags"
    }
  },
  "required": [
    "tasks"
  ]
}
— · —
brainstormGenerate creative ideas using structured frameworks with domain context and feasibility analysis.
Input schema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "Brainstorming challenge or question"
    },
    "model": {
      "type": "string",
      "description": "Model: gpt-5-codex (default), gpt-5, o3, o4-mini, codex-1, codex-mini-latest, gpt-4.1"
    },
    "approvalPolicy": {
      "type": "string",
      "enum": [
        "never",
        "on-request",
        "on-failure",
        "untrusted"
      ],
      "description": "Approval: never, on-request, on-failure, untrusted"
    },
    "sandboxMode": {
      "type": "string",
      "enum": [
        "read-only",
        "workspace-write",
        "danger-full-access"
      ],
      "description": "Access: read-only, workspace-write, danger-full-access"
    },
    "fullAuto": {
      "type": "boolean",
      "description": "Full automation mode"
    },
    "yolo": {
      "type": "boolean",
      "description": "⚠️ Bypass all safety (dangerous)"
    },
    "cd": {
      "type": "string",
      "description": "Working directory"
    },
    "methodology": {
      "type": "string",
      "enum": [
        "divergent",
        "convergent",
        "scamper",
        "design-thinking",
        "lateral",
        "auto"
      ],
      "default": "auto",
      "description": "Framework: divergent, convergent, scamper, design-thinking, lateral, auto (default)"
    },
    "domain": {
      "type": "string",
      "description": "Domain: software, business, creative, research, product, marketing, etc."
    },
    "constraints": {
      "type": "string",
      "description": "Limitations: budget, time, technical, legal, etc."
    },
    "existingContext": {
      "type": "string",
      "description": "Background info or previous attempts"
    },
    "ideaCount": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "default": 12,
      "description": "Number of ideas (default: 12, range: 5-30)"
    },
    "includeAnalysis": {
      "type": "boolean",
      "default": true,
      "description": "Include feasibility/impact analysis"
    },
    "search": {
      "type": "boolean",
      "description": "Enable web search for research (activates web_search_request feature)"
    },
    "oss": {
      "type": "boolean",
      "description": "Use local Ollama server"
    },
    "enableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Enable feature flags"
    },
    "disableFeatures": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Disable feature flags"
    }
  },
  "required": [
    "prompt"
  ]
}
— · —
fetch-chunkRetrieves cached chunks from a changeMode response. Use this to get subsequent chunks after receiving a partial changeMode response.
Input schema
{
  "type": "object",
  "properties": {
    "cacheKey": {
      "type": "string",
      "description": "The cache key provided in the initial changeMode response"
    },
    "chunkIndex": {
      "type": "number",
      "minimum": 1,
      "description": "Which chunk to retrieve (1-based index)"
    }
  },
  "required": [
    "cacheKey",
    "chunkIndex"
  ]
}
— · —
Helpreceive help information
Input schema
{
  "type": "object",
  "properties": {},
  "required": []
}
— · —
pingEcho
Input schema
{
  "type": "object",
  "properties": {
    "prompt": {
      "type": "string",
      "default": "",
      "description": "Message to echo "
    }
  },
  "required": []
}
— · —
timeout-testTest timeout prevention by running for a specified duration
Input schema
{
  "type": "object",
  "properties": {
    "duration": {
      "type": "number",
      "minimum": 10,
      "description": "Duration in milliseconds (minimum 10ms)"
    }
  },
  "required": [
    "duration"
  ]
}
— · —
versionDisplay version and system information
Input schema
{
  "type": "object",
  "properties": {},
  "required": []
}
— · —

Resources 0

Resource templates 0

Prompts 8

Let’s talk about MCP security.

Share your details and our security team will contact you.