Batch Review
概览
作者提供的说明(英文原文)
Git diff and markdown review with a web UI plus MCP stdio for AI agents.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 文档、表格与办公
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月9日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 hevangel 验证,该账户拥有此仓库
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3598 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 3598 个服务器的 33% 更新
- 基础检查结果等于或优于此分类中其他 3598 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Batch Review 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.3.0)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Batch Review
A collaborative code and markdown review tool that bridges human reviewers and AI agents. Both can browse files, inspect git diffs, leave structured comments, and save a final review report — all from the same UI, in real time.
Features
| Feature | Description |
|---|---|
| 3-panel review UI | File explorer + git changes on the left, viewer in the center, comment thread on the right |
| Markdown rendering | .md files are fully rendered, including GitHub-style math with KaTeX: inline $…$ and GitHub’s dollar-backtick inline form, display $$…$$ blocks, and fenced math code blocks; plus Mermaid fenced diagrams and WaveDrom fenced diagrams (digital timing diagrams, bit-field/register diagrams, and logic/schematic diagrams), each with a toolbar toggle between rendered and source views; highlight any paragraph to add a comment |
| HTML previewing | .html and .htm files render in a sandboxed center-panel preview with scripts disabled; select rendered elements, text, or a visual region to add source-backed comments, including a saved PNG crop for region comments |
| PDF viewing | .pdf files render in the center panel with page-aware text or region comments and reload support |
| DOCX/PPTX viewing | .docx and .pptx files render locally in the browser with docx-preview and @aiden0z/pptx-renderer; select document text or a normalized page/slide region to add comments, with Office region selections saved as PNG screenshots beside the review JSON/Markdown output, without LibreOffice or Microsoft Office |
| Office document safety | Office packages are fetched as binary data; git diff mode reports them as binary instead of showing misleading ZIP/XML text |
| Syntax highlighting | All common languages via Monaco Editor (Python, TypeScript, Go, Rust, etc.) |
| Inline git diff | Click changed files to view inline red/green unified diffs for local changes, a previous commit/ref vs HEAD, or current checkout vs a GitHub PR head |
| Structured comments | Each comment captures @filename:L10-15 line references automatically, with richer rendered-view anchors where useful; Office anchors include document kind, page/slide, normalized region, selected text, and a renderer fingerprint |
| Outdated recovery | When a text comment goes stale, refresh its stored highlight from the current file directly from the right panel |
| AI collaboration | MCP server exposes many tools so AI agents can review alongside humans — UI updates live, with on-screen notices for agent-driven comment changes. Also ships a token-efficient CLI client mode (batch-review ) for coding agents and a Claude Code plugin with a review-workflow skill |
| Dual output | Saves review as both JSON (machine-readable) and Markdown (human-readable) |
| Resume session | On startup, if {output-dir}/{output}.json already exists, comments are loaded automatically |
| Cross-platform | Runs on Windows and Linux |
| Theme toggle | Switch the web UI between the original dark theme and a warm light theme from the left-panel top bar |
GitHub-style math example
The preview uses the delimiter rules from Writing mathematical expressions: inline $…$, GitHub’s dollar-backtick inline form (rewritten to $…$ before parsing), display $$…$$, and fenced math code blocks. Rendering is KaTeX rather than GitHub’s MathJax, so a few uncommon macros can differ even when markdown syntax matches.
This app does not embed raw HTML in the markdown preview, so GitHub’s $ workaround for literal dollar signs in prose is unavailable here—inside math, escape $ as \$ per GitHub’s docs.
Examples:
Inline: $\sqrt{3x-1}+(1+x)^2$
Dollar-backtick (GitHub-compatible): $e^{i\pi} + 1 = 0$
$$ \nabla_\theta J(\theta) = \mathbb{E}_{(s, a) \sim \pi_\theta} \left[\nabla_\theta \log \pi_\theta(a \mid s)\, R(s, a)\right] $$
WaveDrom example
Fenced wavedrom ` blocks are parsed as WaveJSON (via JSON5, so unquoted/single-quoted keys are fine) and rendered inline, with the same source/rendered toolbar toggle as Mermaid. Three diagram kinds are supported, selected automatically from the JSON shape:
A digital timing diagram (signal):
{signal: [
{name: 'clk', wave: 'p.....'}, {name: 'data', wave: 'x.345x', data: ['head', 'body', 'tail']}, {name: 'req', wave: '0.1..0'}, {name: 'ack', wave: '1.....'} ]}
A bit-field / register diagram (reg):
{reg: [
{bits: 7, name: 'opcode'}, {bits: 5, name: 'rd'}, {bits: 3, name: 'funct3'}, {bits: 5, name: 'rs1'}, {bits: 12, name: 'imm[11:0]'} ], config: {bits: 32}}
A logic / schematic diagram (assign):
{assign: [["z", ["|", "a", ["&", "b", "c"]]]]}
Architecture
At runtime, Batch Review is a single Python application that serves the browser UI, exposes REST and WebSocket endpoints for that UI, and optionally exposes the same review session to MCP clients.
flowchart LR
CLI["CLI entry point uv run batch-review"] Browser["Browser UI React + Zustand"] McpHost["MCP host Cursor / Claude Desktop / VS Code / other clients"] AgentCli["Coding agent Claude Code / Cursor CLI / Codex batch-review "]
subgraph Backend["Batch Review backend process"] Server["FastAPI app static frontend / REST /api/* WebSocket /ws"] Mcp["FastMCP server stdio transport HTTP transport /mcp/"] State["Shared AppState repo root, comments, per-client MCP sessions, connected WebSocket clients"] end
Repo["Git repository under review"] Output["Saved review output review_comments.json review_comments.md"] PortFile[".batch_review/server.json discovery file"]
CLI --> Server CLI --> Mcp Server --> Browser Browser -->|"REST reads/writes"| Server Browser <-->|"live sync"| Server Server --> State Mcp --> State McpHost -->|"stdio or HTTP MCP"| Mcp AgentCli -->|"REST /api/*"| Server AgentCli -.->|"reads for discovery"| PortFile Server -.->|"writes on start"| PortFile State -->|"read files, diffs, existing review data"| Repo State -->|"save/load review reports"| Output State -.->|"broadcast UI events"| Browser
- The browser loads the React app from the FastAPI server, fetches files/comments/config over REST, and stays synchronized through
/ws. - MCP tools and REST routes both operate on the same in-memory
AppState, so agent-created comments appear in the UI immediately. Every comment carries auserid; browser comments default to the Windows/Linux/macOS account running the server, while MCP connections and CLI profiles can change their own current userid. - Multiple MCP clients can connect to one server concurrently. They share the collaborative comment collection, but each client gets an isolated application session and current userid; legacy FastMCP connections map their
Context.session_idto that application session, while modern stateless clients pass its private ID explicitly. - In
--mcpmode, the HTTP server keeps the web UI available while FastMCP also runs over stdio for editor and CLI hosts. - In CLI client mode, coding agents invoke
batch-review(e.g.add-comment,diff) which calls the same REST endpoints — no MCP tool schemas loaded into agent context. The server writes.batch_review/server.jsonon startup so CLI verbs can discover it.
Distribution
- [PyPI — `batch-review-mcp`](https://pypi.org/project/batch-review-mcp/) — published wheels and sdist for
pip/uv. - [Official MCP Registry — `io.github.hevangel/batch-review-mcp`](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.hevangel%2Fbatch-review-mcp/versions/latest) — latest published server metadata (JSON API; the registry site is still preview).
Requirements
- Python ≥ 3.13 with uv
- Node.js ≥ 22 (for the one-time frontend build; matches GitHub Actions)
Installation
git clone https://github.com/hevangel/batch-review-mcp.git
cd batch-review-mcp uv sync
The first run will automatically build the React frontend if frontend/dist/ does not exist (requires Node.js + npm on PATH).
Usage
Standalone mode (browser opens by default)
# Review the current directory
uv run batch-review
Review a specific git repository
uv run batch-review --root /path/to/your/repo
Custom host / port
uv run batch-review --root /path/to/repo --host 0.0.0.0 --port 9100
Specify output filenames
uv run batch-review --root /path/to/repo --output review --output-dir /tmp/reviews
→ saves /tmp/reviews/review.json and /tmp/reviews/review.md
The server auto-selects a free port in the 9000–9999 range if the default port is already in use.
MCP stdio mode (Claude Desktop / Cursor / any MCP client; browser opens by default)
uv run batch-review --mcp --root /path/to/repo
The HTTP server starts in a background thread (so the browser UI remains accessible), your default browser opens to the app URL (same as standalone mode; use --no-browser to skip), and the MCP stdio transport runs in the main thread.
Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": { "batch-review": { "command": "uv", "args": ["run", "batch-review", "--mcp", "--root", "/path/to/repo"] } } }
CLI client mode (token-efficient agent interface)
For coding agents (Claude Code, Cursor CLI, Codex, etc.), the CLI client mode is more token-efficient than loading 18 MCP tool schemas into context. Each verb is one process invocation that emits a single JSON document to stdout. The CLI talks to a running server over REST, so every comment and highlight also appears in the human reviewer's browser UI in real time.
# Start the server in the background (browser opens by default)
batch-review start --root .
{"web_url": "http://127.0.0.1:9000", "pid": 12345, "port": 9000}
List changed files
batch-review changes
[{"path": "main.py", "status": "M", ...}, ...]
Inspect a diff
batch-review diff main.py
Identity defaults to the OS account running the command; change it when needed
batch-review get-userid batch-review set-userid reviewer-a
Add a comment anchored to a line range (captures the current userid)
batch-review add-comment main.py 10 15 "This null check is redundant."
Save the review report (JSON + Markdown)
batch-review save
Stop the server when done
batch-review stop
Server discovery — verbs auto-discover a running server in priority order: the BATCH_REVIEW_WEB_URL env var, then /.batch_review/server.json (written by start), then probing ports 9000–9999.
CLI identity — get-userid and set-userid manage the userid attached to new CLI comments. The default is the local OS account from Python's cross-platform account lookup. Profiles are stored independently under .batch_review/users/; use --profile NAME or BATCH_REVIEW_USER_PROFILE when multiple agents share one checkout. BATCH_REVIEW_USERID or add-comment --userid ID overrides the selected profile for one process/request. Userids may contain printable international text (maximum 25
只显示了开头部分;其余内容请在仓库中阅读