Skip to content
MCP server

ReviewGuard

Let an agent draft GitHub PR reviews that stay pending until a human submits them

Runs locally

ReviewGuard is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can delete data (1 tool)
Version
0.4.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add review-guard --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @eclipsesource/review-guard-mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "review-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@eclipsesource/review-guard-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "review-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@eclipsesource/review-guard-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "review-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@eclipsesource/review-guard-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "review-guard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@eclipsesource/review-guard-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add review-guard --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @eclipsesource/review-guard-mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.review-guard]
command = "npx"
args = ["-y", "@eclipsesource/review-guard-mcp"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "review-guard": {
      "command": "npx",
      "args": [
        "-y",
        "@eclipsesource/review-guard-mcp"
      ],
      "env": {
        "GITHUB_TOKEN": "<GITHUB_TOKEN>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e GITHUB_TOKEN='<GITHUB_TOKEN>' review-guard npx -- -y @eclipsesource/review-guard-mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "review-guard": {
          "command": "npx",
          "args": [
            "-y",
            "@eclipsesource/review-guard-mcp"
          ],
          "env": {
            "GITHUB_TOKEN": "<GITHUB_TOKEN>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • GITHUB_TOKENGitHub token with pull request read and write access. Can be left unset if the GitHub CLI is authenticated, because the server then falls back to gh auth token.

About ReviewGuard

GitHub tokens are too coarse for agent reviews: a token that can draft comments can also approve or request changes. ReviewGuard sits in front of the token. The server holds it, the agent never sees it, and what the agent may do is fixed when the server starts rather than negotiated.

By default it runs in pending mode. The agent reads PR discussion and builds a draft review that nobody else can see until a human opens the PR and submits it. The submit tool is not even registered in this mode. With --allow-submit, you choose which actions are permitted (approve, comment, reject), every review begins with a fixed disclaimer the agent cannot remove, and --allow-resolve lets it close only its own threads. --repo and --pr pin the server to one pull request, which the README says guards against prompt-injected actions on unrelated PRs.

It installs from npm, needs Node.js 22 or newer, and reads GITHUB_TOKEN or falls back to the GitHub CLI login. The registry entry is a local package, not a hosted instance.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 8 tools deletes data and 3 change data; 2 names don't say.

From the server's own tool labels and tool names; not verified by us.

get_pr_review_contextName suggests: reads
Get PR author, message, submitted review summaries, inline threads and general comments.
list_pending_reviewName suggests: reads
List the authenticated user's pending draft review and its comments.
add_review_commentsName suggests: changes
Add comments to the pending review, creating it if needed.
reply_to_review_threadsName suggests: changes
Reply to existing review threads as part of the pending review.
modify_review_commentName suggests: changes
Update or delete one comment or reply in the pending review.
delete_pending_reviewName suggests: deletes
Delete the pending review and all its comments.
submit
Submit the pending review; only available with --allow-submit.
resolve_review_thread
Resolve one of the user's own review threads; only with --allow-resolve.

What it does

Pending-only default
Agents build draft reviews that stay invisible until a human submits them.
Opt-in submission
The submit tool exists only with --allow-submit and is limited to the actions you list.
Fixed disclaimer
Every submitted review starts with a server-configured notice the agent cannot change.
Own-thread resolution
--allow-resolve lets the agent resolve only threads it started.
Single-PR pinning
--repo and --pr restrict every tool to one pull request.
Hidden token
The server keeps the GitHub token so the agent never sees it.

Good for

  • Have an IDE agent draft inline comments for a human reviewer
  • Run a comment-only review bot on PRs where it is requested
  • Reply to existing review threads as part of a draft review
  • Stop an agent from approving or closing others' threads
  • Pin an automated review to one known PR

Pricing

Open source

ReviewGuard FAQ

Can the agent approve a PR by default?

No. In pending mode the submit tool is not registered, and the client refuses every submit action.

What credentials does ReviewGuard need?

A GitHub token with pull request read and write access, or an authenticated GitHub CLI as fallback.

Can I limit ReviewGuard to comment-only reviews?

Yes. Pass --allow-submit comment to restrict the allowed actions.

What Node version is required?

Node.js 22 or newer.

Is ReviewGuard free?

Yes. ReviewGuard is open source, so you can use and self-host it for free.

How do I add ReviewGuard to Claude Code?

Run this command in your terminal: claude mcp add review-guard --env GITHUB_TOKEN='<GITHUB_TOKEN>' -- npx -y @eclipsesource/review-guard-mcp

What are the best alternatives to ReviewGuard?

The closest alternatives to ReviewGuard are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers