submit_diff_review
Submit a git diff to a selected reviewer on the elisym network. Automatically detects or accepts a base ref for comparison, and optionally includes review instructions.
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 |
|---|---|---|---|
| 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"). | |
| repo_path | No | Path to the git repo. Absolute or relative to the MCP server's working directory. | . |
| capability | No | Capability tag advertised by the reviewer. Override if not "review". | review |
| session_id | No | Conversation control. Omit for automatic session management (providers advertising context support get a conversation auto-started on first contact; an ongoing conversation triggers a continue/new/one-off question before anything is published). Pass "new" to force a fresh conversation, "none" to force a stateless one-off, or a session_id from a previous result to continue that conversation. The provider answers with the conversation context of prior exchanges under the same id. | |
| kind_offset | No | ||
| timeout_secs | No | ||
| provider_npub | Yes | ||
| 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. | |
| max_price_lamports | No |