Skip to content
MCP server
Registry

ReviewGuard MCP Server

Safety boundary for agent written GitHub PR reviews: pending and invisible, submitting is opt-in

ReviewGuard scores 68 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 7 tools. Filed under Version control. GitHub shows 4 stars. Package registries report about 95 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by eclipsesourceMITTypeScript4 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "eclipsesource-review-guard": {      "command": "npx",      "args": [        "-y",        "@eclipsesource/review-guard-mcp@0.4.0"      ],      "env": {        "GITHUB_TOKEN": "YOUR_GITHUB_TOKEN"      }    }  }}

Environment variables

NameRequiredNotes
GITHUB_TOKENSecretOptionalGitHub 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.

Tools7Tool docs quality grade F

All capabilities

About

ReviewGuard MCP

CI npm License: MIT

MCP server (review-guard-mcp) that lets AI agents work on GitHub PR reviews behind a safety boundary. The server holds the GitHub token and exposes only review operations, so the agent never sees the token. What those operations are allowed to do is fixed at server start, not negotiable by the agent.

Why

GitHub token permissions are too coarse for agent reviews. A token that can draft review comments can also submit the review, including approvals and change requests, and the finest scope it offers is a repository. ReviewGuard holds the token and narrows it further than even fine-grained tokens allow: by default the agent can only build a pending review, submission is opt-in and limited to the actions you allow, and the server can be pinned to a single pull request. This guards against accidental or prompt-injected actions such as unwanted approvals, closing other people's review threads, or commenting on unrelated pull requests.

Modes

The server supports two modes of use:

Pending mode (default)

The agent reads PR discussion context and builds a pending (draft) review. Nothing it writes is visible to anyone else until a human opens the PR, inspects the draft comments, and submits the review themselves. Submission is structurally unreachable: the submit tool is not even registered, and the underlying client refuses every submit action.

Use this when an agent assists a human reviewer, for example in IDE setups (Claude Code, Codex, Theia) where the agent drafts inline comments and the human stays the reviewer of record.

Submit mode (opt-in, --allow-submit)

Started with --allow-submit, the server additionally registers a submit tool so the agent can post the review itself. Guardrails stay in place:

  • The allowed review actions are restricted to the set you list (for example comment-only, with no approvals).
  • Every submitted review starts with a fixed, server-configured disclaimer the agent cannot change or remove.
  • Optionally, --allow-resolve lets the agent resolve its own review threads (never anyone else's), and --repo/--pr pin the server to a single pull request.

Use this for unattended, autonomous review bots, for example a watcher that reviews every PR where a review is requested from the bot account and posts a real (comment-only) review.

Installation

Requires Node.js >= 22.

Install globally (makes review-guard-mcp available in PATH):

npm install -g @eclipsesource/review-guard-mcp

Or pin to a specific version:

npm install -g @eclipsesource/review-guard-mcp@<version>

The server is also listed in the MCP Registry as com.eclipsesource/review-guard, so clients that browse the registry can find and install it from there. The entry is metadata only, there is no hosted instance to connect to: it describes the npm package above, which your client installs and runs locally in the default pending mode.

From source

Requires npm >= 12 and a Node version supported by it (see CONTRIBUTING.md):

git clone https://github.com/eclipsesource/review-guard.git
cd review-guard
npm ci
npm run build
npm link          # creates a global symlink to the binary

Tools

ToolAvailabilityDescription
get_pr_review_contextalwaysGet PR author/message, submitted review summaries, inline review threads with resolved state, reactions and permalinks, and general PR comments
list_pending_reviewalwaysList the authenticated user's pending draft review, including all current pending review comments and their permalinks
add_review_commentsalwaysAdd one or more comments to the authenticated user's pending review, creating the pending review if needed
reply_to_review_threadsalwaysReply to existing review threads, whoever started them, as part of the authenticated user's pending review. The replies show up in their threads once the review is submitted
modify_review_commentalwaysUpdate or delete one comment or reply from the authenticated user's pending review
delete_pending_reviewalwaysDelete the authenticated user's pending review and all its comments
submit--allow-submitSubmit the pending review as a real, posted review. The action is limited to the allowed set and the review summary always starts with the fixed, server-configured disclaimer
resolve_review_thread--allow-resolveResolve one of the authenticated user's own review threads (e.g. a prior finding the latest push fixed). Refuses threads started by anyone else

Submit mode flags

By default the server cannot submit reviews. To allow it, start the server with --allow-submit listing one or more of approve, comment, reject:

review-guard-mcp --port 4000 \
  --allow-submit approve,comment \
  --submit-body "This is an autonomous, AI-based review and may contain mistakes."
  • --allow-submit <csv> enables the submit tool and restricts its action enum to exactly these values. approve maps to APPROVE, comment to COMMENT, and reject to REQUEST_CHANGES. Invalid actions abort startup.
  • --submit-body <text> sets the fixed review summary prefix posted with every submission. The agent cannot change or remove it and may only append its own summary below it. If omitted while --allow-submit is set, a built-in default disclaimer is used. Its wording adapts to the allowed actions (when approve is not allowed it states the review is not an approval, rather than caveating one). Requires --allow-submit and must not be empty.
  • --allow-resolve registers the resolve_review_thread tool. The client resolves only threads whose first comment was authored by the authenticated user, so a bot can tidy up its own now-fixed findings on a re-review but never close another reviewer's conversation.

Without --allow-submit, the submit tool is not registered and the submitReview client method refuses every action, so submission is structurally unreachable.

Scoping to a single PR (opt-in)

Start the server with --repo <owner/name> --pr <number> to pin it to one pull request:

review-guard-mcp --port 4000 --repo eclipsesource/some-repo --pr 123

When scoped, every tool drops its owner/repo/pull_number arguments and acts on that PR only. resolve_review_thread additionally checks that the thread belongs to it, and reply_to_review_threads checks the same for every thread it replies to, scoped or not. The client (github.ts) enforces this independently of the tool schemas, so a caller cannot reach a different PR or repo the token can otherwise write to. Use this whenever the server backs an automated review of a known PR (typically together with submit mode), so a prompt-injected agent cannot post to or resolve threads on unrelated PRs. Both flags are required together. Omitting them leaves the server unscoped (the caller supplies the PR per call).

MCP Client Configuration

Stdio mode (recommended for IDEs)

The server runs as a child process managed by the IDE. No port configuration needed.

For MCP clients that use the common JSON config shape (Claude Code, VS Code, Theia):

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

For Codex, add the server to ~/.codex/config.toml or a trusted project-local .codex/config.toml:

[mcp_servers.review-guard]
command = "npx"
args = ["-y", "@eclipsesource/review-guard-mcp", "--stdio"]

Or pin to a specific version:

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

Remote HTTP mode

The server runs standalone and exposes a Streamable HTTP endpoint.

Start the server:

review-guard-mcp --port 4000                     # bind to 127.0.0.1 (localhost only)
review-guard-mcp --port 4000 --host 172.17.0.1   # bind to a specific address instead

Then point your MCP client at the printed URL (e.g. http://127.0.0.1:4000/mcp). Each POST is an independent stateless request.

Codex HTTP configuration uses the same TOML shape:

[mcp_servers.review-guard]
url = "http://127.0.0.1:4000/mcp"

--host flag

By default the HTTP server binds to 127.0.0.1, which makes it unreachable from containers and other machines. Pass --host <address> to bind one specific address instead. Because the endpoint is unauthenticated, the unspecified addresses (0.0.0.0, ::) are rejected at startup.

The main use case is a reviewing agent that runs inside a container (e.g. a sandboxed agent runtime) and needs to reach the MCP server on the host. On Linux, bind the container network's gateway IP, e.g. for Docker's default bridge (typically 172.17.0.1):

review-guard-mcp --port 4000 \
  --host "$(docker network inspect bridge --format '{{(index .IPAM.Config 0).Gateway}}')"

The host firewall must also allow traffic on the MCP port from the container subnet, e.g. with ufw:

sudo ufw allow from 172.17.0.0/16 to any port 4000 proto tcp

From inside the container you can point the client at whichever local name reaches the host: the gateway IP itself, host.docker.internal (Docker) or host.containers.internal (Podman), or a localhost/127.0.0.1 alias that your runtime maps to the host. With a non-loopback --host the server accepts the Host header for any of these while still rejecting unknown hosts, so DNS-rebinding protection stays on.

Authentication

If the GitHub CLI is installed and authenticated (gh auth login), no token configuration is needed. The server automatically retrieves the token via gh auth token.

If gh is not available, provide a token explicitly via the MCP config:

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

The full resolution order is:

  1. GITHUB_TOKEN environment variable
  2. GH_TOKEN environment variable
  3. gh auth token, which reads the token from the GitHub CLI

A fine-grained personal access token scoped to the repositories you review is recommended.

Security considerations

  • The agent never sees the token. The server holds it and only exposes the tool set configured at startup.
  • HTTP mode binds to 127.0.0.1 by default and validates the Host header against the bound address (DNS rebinding protection), so a malicious website cannot reach the server through a victim's browser.
  • The /mcp endpoint itself is unauthenticated. Anyone who can reach the port can use the configured capabilities. Keep it on localhost, or with a non-loopback --host restrict the port to the intended subnet via firewall, because every machine or container on that network can otherwise reach it. Unspecified bind addresses (0.0.0.0, ::) are refused at startup.
  • Prefer a fine-grained token scoped to only the repositories under review, and add --repo/--pr scoping for automated setups.

Please report vulnerabilities privately, as described in SECURITY.md.

Safety Invariants

The src/github.ts module is the only file that talks to GitHub. By default it cannot submit. Every capability beyond pending-review writes is gated at construction time. It enforces:

  1. No event field on comment/thread/reply mutations. Draft comments and replies always leave the review PENDING because event is omitted entirely. Replies always name the pending review they belong to.
  2. Submission is opt-in and gated. The submitPullRequestReview mutation is called only inside submitReview, which refuses any action not in the allowSubmit set passed at construction. A client built without --allow-submit (the default) can never submit. DISMISS is never supported.
  3. Fixed submission body. Submitted reviews always start with the server-configured --submit-body. Callers can only append below it, never replace or remove it.
  4. Thread resolution is opt-in and own-threads-only. resolveReviewThread runs only when --allow-resolve is set and refuses threads not started by the authenticated user.
  5. No REST submit/dismiss endpoints are ever called.
  6. Own-review writes. Write tools only affect the authenticated user's own review. Replies are not limited to the user's own threads, since a reply is just another draft comment in that review.
  7. PR scoping. When started with --repo/--pr, every operation targeting a different PR or repository is refused inside the client, independent of the tool schemas.
  8. Auditable. Grep src/github.ts for submitPullRequestReview, dismiss, APPROVE, REQUEST_CHANGES. The mutation and events appear only inside submitReview. The gates are covered by unit tests in test/github.test.ts.
  9. Post-mutation tripwire (defense in depth). After creating a review or a thread reply, the response state is verified to be PENDING, and a reply must sit in the pending review it named. Unlike the gates above this detects rather than prevents: on a violation the tool call fails with an MCP error that tells the agent to stop and alert the human, because many MCP clients do not show tool errors to the user on their own.

Development

Development requires npm >= 12 and a Node version supported by it. See CONTRIBUTING.md for the full guide.

npm ci                           # install dependencies
npm run build                    # compile TypeScript to dist/
npm run dev                      # tsx watch mode
npm run typecheck                # type-check sources, tests, and configs
npm run lint                     # ESLint
npm run format:check             # Prettier
npm test                         # vitest suite
npm run test:integration         # manual suite against a real repo (see CONTRIBUTING.md)

Architecture

src/
├── index.ts     # Entry point: token resolution, mode dispatch (--stdio / HTTP)
├── args.ts      # CLI parsing: every flag in one place, unknown flags abort startup
├── server.ts    # MCP server factory with tool schemas (shared by both transports)
├── stdio.ts     # Stdio transport (for IDE-managed lifetime)
├── http.ts      # HTTP transport (node:http, Streamable HTTP)
└── github.ts    # Safety boundary: GraphQL mutations + REST reads
test/            # vitest suite: CLI parsing, safety gates, tool registration
  • GraphQL for resolved review-thread context and mutations (addPullRequestReview, addPullRequestReviewThread, addPullRequestReviewThreadReply, updatePullRequestReviewComment, deletePullRequestReviewComment, deletePullRequestReview, and, behind their opt-in gates, submitPullRequestReview and resolveReviewThread).
  • REST for well-paginated PR review summaries and general PR conversation comments.
  • HTTP mode binds to 127.0.0.1 only (or the specific address given with --host).

Contributing

Contributions are welcome, see CONTRIBUTING.md. Contributors are required to sign a CLA, which is checked automatically on pull requests.

License

MIT

Frequently asked questions

What is ReviewGuard MCP Server?

Safety boundary for agent written GitHub PR reviews: pending and invisible, submitting is opt-in

How do I install ReviewGuard MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. ReviewGuard MCP Server runs locally from the npm package @eclipsesource/review-guard-mcp with the command npx -y @eclipsesource/review-guard-mcp@0.4.0.

Is ReviewGuard MCP Server free and open source?

Yes. ReviewGuard MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does ReviewGuard MCP Server support remote (HTTP) connections?

No remote endpoint is listed for ReviewGuard MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does ReviewGuard MCP Server provide?

ReviewGuard MCP Server provides 7 tools, including add_review_comments, delete_pending_review, get_pr_review_context, and list_pending_review. See the full tool list for descriptions and parameters.

How is ReviewGuard MCP Server's trust score calculated?

ReviewGuard MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server