# ReviewGuard

> ReviewGuard is an open-source MCP server for developer tools. Let an agent draft GitHub PR reviews that stay pending until a human submits them. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/eclipsesource/review-guard
- **MCP Registry name:** com.eclipsesource/review-guard
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-23

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

```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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "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.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```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.

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_context` (name suggests: reads): Get PR author, message, submitted review summaries, inline threads and general comments.
- `list_pending_review` (name suggests: reads): List the authenticated user's pending draft review and its comments.
- `add_review_comments` (name suggests: changes): Add comments to the pending review, creating it if needed.
- `reply_to_review_threads` (name suggests: changes): Reply to existing review threads as part of the pending review.
- `modify_review_comment` (name suggests: changes): Update or delete one comment or reply in the pending review.
- `delete_pending_review` (name 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.

## 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.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/reviewguard
