Back to Home
w31r4 icon

codex-mcp-go

Verified Safe

by w31r4

Overview

Wraps the OpenAI Codex CLI as an MCP tool, enabling AI clients like KiloCode, Roo Code, and Claude Code to utilize Codex for high-precision coding tasks, debugging, and code reviews within an agentic workflow.

Installation

Run Command
npx @zenfun510/codex-mcp-go

Environment Variables

  • OPENAI_API_KEY

Security Notes

The server executes the external 'codex' CLI command with strict input validation for parameters like 'cd' (working directory) and 'sandbox'. The 'sandbox' parameter is explicitly validated against a whitelist of safe modes (read-only, workspace-write, danger-full-access), defaulting to 'read-only'. Critically, 'model' and 'profile' parameters are explicitly rejected by the wrapper unless an allowlist is enabled (which is not present in the provided code), preventing potential misuse of alternative configurations for the underlying 'codex' CLI. Prompts for Windows are escaped to prevent shell injection. The primary security consideration remains the trusted integrity of the underlying 'codex' CLI itself and the cautious use of 'danger-full-access' by the controlling AI, which the project's recommended prompts strongly discourage.

Similar Servers

Stats

Interest Score49
Security Score9
Cost ClassHigh
Avg Tokens3500
Stars45
Forks2
Last Update2025-12-27

Tags

MCP ServerCodex CLIAI AssistantCode GenerationGoLang