submit_diff_review
Send a code diff from a git repository to an AI reviewer for analysis. Specify the provider, optional base branch, and custom instructions to scope the review.
Instructions
Send a code-review job: the MCP server runs git diff inside repo_path and forwards the diff to the chosen provider. The diff content never appears in the LLM's output tokens, only the short tool call does. When base is omitted, auto-detects: dirty working tree -> diff against HEAD; clean tree with main/master/origin-HEAD found -> ${detected}...HEAD; otherwise falls back to diff against HEAD. Pass base explicitly (e.g. "main", a tag, or a SHA) to force a ${base}...HEAD PR-style range. Optional prompt is prepended above the diff so reviewers can scope the review. Default capability is "review" - override if the provider advertises a different tag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider_npub | Yes | ||
| capability | No | Capability tag advertised by the reviewer. Override if not "review". | review |
| repo_path | No | Path to the git repo. Absolute or relative to the MCP server's working directory. | . |
| base | No | Optional base ref (branch, tag, SHA). When set, diffs ${base}...HEAD. When omitted, auto-detects working-tree vs main/master/origin-HEAD. | |
| prompt | No | Optional instructions prepended above the diff (e.g. "focus on auth flow"). | |
| kind_offset | No | ||
| timeout_secs | No | ||
| max_price_lamports | No | ||
| allow_outside_cwd | No | Allow reviewing a repo outside the MCP server working directory. Off by default - the diff is forwarded to the provider before payment and is invisible in the transcript, so the repo is confined to the working dir subtree unless this is set. Sensitive paths (secret keys, .env, SSH/keypair, ~/.elisym, /proc) are always refused. |