
Sizecheck
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 3, 2026
根据变更文件和导出计算 PR 影响范围评分,并提供按目录拆分的建议。
AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。
原文描述
PR blast-radius score from changed files and exports, with per-directory split suggestions.
概览
Sizecheck 的本地 MCP 服务;无需登录;STDIO。
暂无 AI 概览:以下信息来自注册中心条目和服务本身。
安装
在 SourceWeft 中
- 打开 控制台中的 Sizecheck,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
sizecheck
A pull request can be three lines in one file or three thousand lines spread across half the repository, and the review burden is not the same. sizecheck takes the list of changed files — each file's path, the lines it adds and deletes, and optionally how many of its exported symbols changed — and turns it into one blast-radius report:
- Score and risk — a single integer score: total churn
(lines added plus lines deleted), plus 25 points for every
exported symbol touched, plus 10 points for every extra
top-level directory beyond the first. The score maps to a
risk band: under 100 is
small, 100–399 ismedium, 400–999 islarge, and 1000 or more ishuge. - Totals — the file count and the summed lines added, lines deleted, churn, and exports changed, so the score can always be checked against its inputs.
- Per-directory spread — the change grouped by
top-level directory (a file with no directory in its path
counts under
"(root)"), sorted by churn descending and then directory name ascending. - Hottest files — the five highest-churn files, ties broken by path ascending, so the files that deserve the closest read surface first.
- Split suggestions — when the risk is
largeorhuge, every directory group except the largest is listed as a part of the change that could land separately. Small and medium changes, and changes confined to a single directory, get no suggestions.
Every changed file needs a unique, non-empty path and
non-negative integer added and deleted counts.
exports_changed is optional (default 0) and must be a
non-negative integer when given; kind is optional
(default "code") and must be one of "code", "test",
"docs", "config", or "other" when given — it is
validated but does not affect the score. Invalid input is
a validation error naming the offending path (for example
files[0].added must be an integer >= 0) and no partial
report is produced. The computation is pure and local: no
network, no configuration, no files read beyond the input
you pass in.
CLI
args.json contains the full arguments object:
The report is printed as JSON:
The score is 270 churn + 25 × 3 exports + 10 × 1 extra directory = 355.
Exit codes: 0 on success, 1 on a runtime error (including
an unreadable or invalid input file, or invalid input), 2
on a usage error.
MCP server
MCP client config:
Tools
-
score_blast_radius— Score a pull request's blast radius from its changed files.files(array, required, at least one) — files as{path, added, deleted, exports_changed?, kind?}objects;pathis unique across the set
Returns
{score, risk, files_count, added, deleted, churn, exports_changed, by_directory, hottest_files, split_suggestions}.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
来源:README.md,提交 8b7c984
工具
0版本历史
1- v0.1.0最新Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分