
ReviewGuard
com.eclipsesource由 eclipsesource.com 發布v0.3.0更新於 Oct 24, 2026
Safety boundary for agent written GitHub PR reviews: pending and invisible, submitting is opt-in
發布方自己的服務:Review Expert
概覽
一個本機 MCP 伺服器,讓 AI 助理在安全邊界內起草 GitHub 拉取請求審查,提交功能預設關閉、需明確開啟。
- 可以做什麼
- 讀取 PR 審查脈絡:作者、說明、已提交審查摘要、含解決狀態的行內討論串、表情回應、永久連結和一般留言,以及目前驗證使用者的待提交草稿審查及其留言和連結。建立與編輯待提交草稿審查:新增一或多則留言、修改或刪除單則留言、刪除整份待提交審查。僅在啟動時開啟提交選項後才提交審查,動作限於允許的集合,且摘要以伺服器設定的固定免責聲明開頭。僅在開啟解決選項時解決驗證使用者自己的審查討論串。可選擇把所有操作限定在單一儲存庫和拉取請求。
- 適用情境
- 適合讓助理協助人工審查者起草行內 PR 留言、在人工提交前對他人不可見的情境,例如 IDE 環境。也適合無人值守的審查機器人張貼僅留言的審查,此時提交模式、固定免責聲明和 PR 限定能把代理的權限收得很窄。
- 執行需求
- 透過 npx 以 stdio 在本機執行,或作為獨立 HTTP 端點監聽連接埠。需要 Node.js 22 或更新版本。需要具備拉取請求讀寫權限的 GitHub 權杖,可透過 GITHUB_TOKEN 環境變數提供,或使用 GH_TOKEN,或從已驗證的 GitHub CLI 工作階段取得。建議使用限定在被審查儲存庫的細粒度權杖。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 ReviewGuard,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
ReviewGuard MCP
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.
Why
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.
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-resolvelets the agent resolve its own review threads (never anyone else's), and--repo/--prpin 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):
Or pin to a specific 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):
Tools
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:
--allow-submit <csv>enables thesubmittool and restricts itsactionenum to exactly these values.approvemaps to APPROVE,commentto COMMENT, andrejectto 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-submitis set, a built-in default disclaimer is used. Its wording adapts to the allowed actions (whenapproveis not allowed it states the review is not an approval, rather than caveating one). Requires--allow-submitand must not be empty.--allow-resolveregisters theresolve_review_threadtool. 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:
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).
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):
For Codex, add the server to ~/.codex/config.toml or a trusted project-local
.codex/config.toml:
Or pin to a specific version:
Remote HTTP mode
The server runs standalone and exposes a Streamable HTTP endpoint.
Start the server:
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:
--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):
The host firewall must also allow traffic on the MCP port from the container subnet, e.g. with ufw:
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:
The full resolution order is:
GITHUB_TOKENenvironment variableGH_TOKENenvironment variablegh 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.1by default and validates theHostheader against the bound address (DNS rebinding protection), so a malicious website cannot reach the server through a victim's browser. - The
/mcpendpoint itself is unauthenticated. Anyone who can reach the port can use the configured capabilities. Keep it on localhost, or with a non-loopback--hostrestrict 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/--prscoping 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:
- No
eventfield on comment/thread mutations. Draft comments always leave the reviewPENDINGbecauseeventis omitted entirely. - Submission is opt-in and gated. The
submitPullRequestReviewmutation is called only insidesubmitReview, which refuses any action not in theallowSubmitset passed at construction. A client built without--allow-submit(the default) can never submit.DISMISSis never supported. - Fixed submission body. Submitted reviews always start with the server-configured
--submit-body. Callers can only append below it, never replace or remove it. - Thread resolution is opt-in and own-threads-only.
resolveReviewThreadruns only when--allow-resolveis set and refuses threads not started by the authenticated user. - No REST submit/dismiss endpoints are ever called.
- Own-review writes. Write tools only affect the authenticated user's own review.
- 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. - Auditable. Grep
src/github.tsforsubmitPullRequestReview,dismiss,APPROVE,REQUEST_CHANGES. The mutation and events appear only insidesubmitReview. The gates are covered by unit tests intest/github.test.ts. - Post-mutation tripwire (defense in depth). After creating a review, the response state is verified to be
PENDING. 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.
Architecture
- GraphQL for resolved review-thread context and mutations (
addPullRequestReview,addPullRequestReviewThread,updatePullRequestReviewComment,deletePullRequestReviewComment,deletePullRequestReview, and, behind their opt-in gates,submitPullRequestReviewandresolveReviewThread). - REST for well-paginated PR review summaries and general PR conversation comments.
- HTTP mode binds to
127.0.0.1only (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
來源:README.md,提交 24bfa02
工具
0版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Review 整合

Review Expert
expert.review官方發布者
讓助理讀取、搜尋、分析 App Store 與 Google Play 評論並草擬回覆,需 OAuth 登入。

DECIDE: Migration Discovery Risk Review
由 GitHub 帳號 stratus-consulting 發布
遠端風險審查服務:提交遷移探索發現,依嚴重程度回傳未決風險,並指出下一步該問誰、問什麼。

Arch theological review
由 GitHub 帳號 tnvolman 發布
Cursor/Grok 外掛,讓助理對信仰文本進行付費的 Arch 神學審閱,並提供免費的離線欽定版聖經經文查詢。

ReviewBot App Reviews
由 GitHub 帳號 fahimk 發布
讀取收集到的 App Store 和 Google Play 留言以及有界反饋統計資料。AI 翻譯

Khavion Architecture Review
com.khavion
本機 MCP 伺服器,為助理提供附原文引用的雲端最佳實務,並對 Terraform、CloudFormation 與 Kubernetes 檔案做基於規則的確定性審查。