GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Safety boundary for agent written GitHub PR reviews: pending and invisible, submitting is opt-in
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
GITHUB_TOKEN标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"review-guard": {
"command": "npx",
"args": [
"-y",
"@eclipsesource/review-guard-mcp",
"--stdio"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add review-guard --env GITHUB_TOKEN=your-value -- npx -y @eclipsesource/review-guard-mcp --stdio运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"review-guard": {
"command": "npx",
"args": [
"-y",
"@eclipsesource/review-guard-mcp",
"--stdio"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"review-guard": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@eclipsesource/review-guard-mcp",
"--stdio"
],
"env": {
"GITHUB_TOKEN": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过域名 eclipsesource.com 验证(注册中心会核实域名所有权)
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:GITHUB_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.3.0)于3个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP server (review-guard-mcp) that lets AI agents work on GitHub PR reviews behind a safety boundary. The server holds the write-enabled 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.
A write-enabled GitHub token is needed to create review comments, but giving that token directly to an agent risks accidental or prompt-injected actions: submitting approvals, requesting changes, closing other people's review threads, or touching unrelated repositories. This server sits in between and narrows the token down to exactly the review capabilities you opt into.
The server supports two modes of use:
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.
--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:
--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.
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.
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
| Tool | Availability | Description |
|---|---|---|
get_pr_review_context | always | Get PR author/message, submitted review summaries, inline review threads with resolved state, reactions and permalinks, and general PR comments |
list_pending_review | always | List the authenticated user's pending draft review, including all current pending review comments and their permalinks |
add_review_comments | always | Add one or more comments to the authenticated user's pending review, creating the pending review if needed |
modify_review_comment | always | Update or delete one comment from the authenticated user's pending review |
delete_pending_review | always | Delete the authenticated user's pending review and all its comments |
submit | --allow-submit | Submit 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-resolve | Resolve one of the authenticated user's own review threads (e.g. a prior finding the latest push fixed). Refuses threads started by anyone else |
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 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 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.
Start the server with --repo --pr 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. 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).
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@ ", "--stdio"] } } }
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 flagBy default the HTTP server binds to 127.0.0.1, which makes it unreachable from containers and other machines. Pass --host 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.
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:
A fine-grained personal access token scoped to the repositories you review is recommended.
Host header against the bound address (DNS rebinding protection), so a malicious website cannot reach the server through a victim's browser.--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.只显示了开头部分;其余内容请在仓库中阅读