Back to Home
missdeer icon

codex-mcp-rs

Verified Safe

by missdeer

Overview

This server acts as an MCP (Model Context Protocol) wrapper for the Codex CLI, enabling AI-assisted coding tasks through compatible clients like Claude Code.

Installation

Run Command
npx @missdeer/codex-mcp-rs

Environment Variables

  • CODEX_BIN
  • CODEX_DEFAULT_TIMEOUT
  • CODEX_ALLOW_DANGEROUS
  • CODEX_ALLOW_YOLO
  • CODEX_ALLOW_SKIP_GIT_CHECK
  • GITHUB_TOKEN

Security Notes

The server implements strong security practices including explicit sandbox policies ('read-only' by default, 'workspace-write', 'danger-full-access'), environment variable controls for dangerous features, and input validation for paths. It uses `std::process::Command` with `Command::arg()` for subprocess execution which handles argument escaping securely. The `npm/run.js` script uses `spawn` with path escaping for archive extraction, and GitHub downloads are performed over HTTPS. Output line limits are in place to prevent memory exhaustion. The primary security consideration is the use of 'danger-full-access' mode by the underlying Codex CLI, which is explicitly opt-in via an environment variable `CODEX_ALLOW_DANGEROUS` and defaults to disabled.

Similar Servers

Stats

Interest Score41
Security Score9
Cost ClassLow
Stars10
Forks1
Last Update2026-01-18

Tags

RustMCPAI-assisted codingCodex CLIServer