
Sizeverdict
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
根據提供的模組大小估算依賴項的打包體積成本,並扣除實際發布中重疊的部分。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Weigh a dependency's bundle cost from supplied module sizes, with shipped overlap netted.
概覽
Sizeverdict 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sizeverdict,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
sizeverdict
Adding a dependency is easy to agree to and hard to price. The headline size in a package listing is not what you actually pay: part of the new code may already be in your bundle, shipped by dependencies you already depend on. sizeverdict works out the real price from numbers you already have. You supply the candidate's modules with a path and a byte size for each one, the same facts for any dependencies you already ship, and optionally a budget for net new bytes. sizeverdict hands back the candidate's total bytes, the bytes that are already shipped, the net new cost, an overlap list, and a verdict band. It never downloads, installs, or measures a package; it computes from the supplied facts only.
A candidate module counts as overlapping when its exact path appears in at least one installed dependency's module list. Shared bytes are summed at the candidate's sizes, and each overlapping module is counted once, even when two installed dependencies carry the same path — the installed dependencies' own sizes for that path are never used. The overlap list holds one entry per overlapping module, sorted by path, each with the candidate's size and the distinct names of the installed dependencies carrying that path, sorted ascending. Net new bytes are candidate bytes minus shared bytes.
The verdict is read off the net new cost. Zero net new
bytes is free_overlap. Up to 10240 bytes is
negligible, up to 102400 is small, up to 512000 is
moderate, and anything above that is large. Each
threshold is inclusive at the top of its band: 10240 is
still negligible, 10241 is small, and so on. When you
supply budget_bytes, the result also reports whether
the net new cost is over it; landing exactly on the
budget is not over.
Malformed input — a missing candidate, a missing, empty,
or non-string name, a missing or empty module list, a
module with a missing or empty path or a negative or
fractional byte size, the same faults inside an installed
dependency, or a bad budget — is a validation error
naming the offending path, with no partial result. Two
modules with the same path inside one package, two
installed dependencies with the same name, and a
candidate whose name matches an installed dependency
(candidate already installed: X) are also errors.
Unknown extra fields are ignored.
CLI
args.json contains the full arguments object:
The assessment is printed as JSON:
Note the shared module contributes the candidate's 9000
bytes, not the installed copy's 8500. 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
-
assess_bundle_cost— Weigh a candidate dependency's real bundle cost from caller-supplied module sizes: total bytes, the modules already shipped via installed deps (shared bytes), the net new cost, and a verdict band.candidate(object, required) — the dependency being weighed:name(string, required, non-empty) — candidate package namemodules(array, required, at least 1 item) — the candidate's shipped modules; each item:path(string, required, non-empty) — module path inside the packagebytes(integer, required, at least 0) — module size in bytes
installed(array, optional) — dependencies already shipped, same shape as the candidate; each item has anameand amoduleslist in the same form. Absent means none are shipped.budget_bytes(integer, optional, at least 0) — net-new-bytes budget to check against
Returns
{candidate, candidate_bytes, shared_bytes, net_new_bytes, overlap, verdict, budget}, wherecandidateechoes the candidate's name,overlapholds one{path, bytes, also_in}per overlapping candidate module sorted by path,verdictis one offree_overlap,negligible,small,moderate, orlarge, andbudgetis{budget_bytes, net_new_bytes, over_budget}ornullwhen no budget was supplied.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
來源:README.md,提交 0ce3ce5
工具
0版本歷史
1- v0.1.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分