Bug
The review tool handler in dist/tools/handlers.js does not pass --skip-git-repo-check to the Codex CLI, while the codex (exec) tool handler does. This causes review to fail with:
Not inside a trusted directory and --skip-git-repo-check was not specified.
...when invoked via MCP from a parent orchestrator (e.g., Claude Code) even when the directory is trusted in ~/.codex/config.toml.
Repro
- Configure Codex MCP server in Claude Code
- Call
mcp__codex-cli__review with workingDirectory set to a git repo
- The review fails with the trust directory error
mcp__codex-cli__codex (which uses exec --skip-git-repo-check) works fine on the same directory.
Fix
Add --skip-git-repo-check to the review command args in ReviewToolHandler.execute(), matching the behavior of CodexToolHandler.execute():
// handlers.js, ReviewToolHandler.execute()
cmdArgs.push('-c', `model="${selectedModel}"`);
+ cmdArgs.push('--skip-git-repo-check');
cmdArgs.push('review');
Environment
- codex-mcp-server v1.4.2
- Codex CLI (codex binary at /opt/homebrew/bin/codex)
- macOS Darwin 25.3.0
Bug
The
reviewtool handler indist/tools/handlers.jsdoes not pass--skip-git-repo-checkto the Codex CLI, while thecodex(exec) tool handler does. This causesreviewto fail with:...when invoked via MCP from a parent orchestrator (e.g., Claude Code) even when the directory is trusted in
~/.codex/config.toml.Repro
mcp__codex-cli__reviewwithworkingDirectoryset to a git repomcp__codex-cli__codex(which usesexec --skip-git-repo-check) works fine on the same directory.Fix
Add
--skip-git-repo-checkto the review command args inReviewToolHandler.execute(), matching the behavior ofCodexToolHandler.execute():// handlers.js, ReviewToolHandler.execute() cmdArgs.push('-c', `model="${selectedModel}"`); + cmdArgs.push('--skip-git-repo-check'); cmdArgs.push('review');Environment