Skip to content

review tool missing --skip-git-repo-check flag #124

@JVL1

Description

@JVL1

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

  1. Configure Codex MCP server in Claude Code
  2. Call mcp__codex-cli__review with workingDirectory set to a git repo
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions