codex-mcp-go
by w31r4
Overview
Wraps OpenAI's Codex CLI to serve it as an MCP tool for AI clients, enabling multi-turn conversations and sandbox-controlled code execution.
Installation
npx @zenfun510/codex-mcp-goEnvironment Variables
- OPENAI_API_KEY
Security Notes
The server acts as a wrapper for the `codex` CLI, passing user-provided prompts as arguments. It incorporates sandbox controls (`read-only`, `workspace-write`, `danger-full-access`) for the underlying `codex` operations. A significant security consideration is the default `yolo=true` flag, which causes the `codex` CLI to execute generated commands without explicit human confirmation. This design, while intended for automated agentic workflows, introduces a risk where a malicious or erroneous AI prompt could lead to unintended actions within the configured sandbox. No direct `eval` or similar dangerous patterns are used within the Go code, nor are there hardcoded sensitive secrets. Path validation for `cd` and `image` parameters is present. The overall security relies heavily on the robustness of the underlying `codex` CLI and the trust in the AI's generated actions when `yolo` is enabled.
Similar Servers
wcgw
An MCP server that empowers AI chat applications to execute shell commands, edit code, and manage project context on a local machine for development tasks.
codex-mcp-server
Provides a Model Context Protocol (MCP) server to integrate OpenAI Codex CLI with AI clients like Claude, offering session management, model selection, and native resume capabilities for coding assistance.
mcp-use-cli
An interactive command-line interface (CLI) tool for connecting to and interacting with Model Context Protocol (MCP) servers using natural language, acting as an AI client that orchestrates LLM responses with external tools.
codex-mcp-rs
Acts as an MCP server wrapping the Codex CLI for high-performance AI-assisted coding tasks.