
Busfactor
io.github.CloudCorpRecords由 GitHub 帳號 CloudCorpRecords 發布v0.1.0更新於 Nov 3, 2026
根據作者和評審資料,映射出由單一作者編寫且從未經過評審的檔案:一份事實性風險清單。
AI 翻譯由 AI 模型根據下方的原文描述翻譯,可能有誤。
原文描述
Map single-author, never-reviewed files from authorship and review data: a factual risk list.
概覽
Busfactor 的本機 MCP 服務;無需登入;STDIO。
暫無 AI 概覽:以下資訊來自註冊中心條目和服務本身。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Busfactor,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
busfactor
Every codebase has files that only one person really knows. If that person is away — on holiday, off sick, gone from the team — those files are the ones nobody can safely change. busfactor works out where that risk sits. You give it, for each file, who wrote it and how many commits each author made, plus who reviewed changes to it, and it gives back a factual map:
- Per-file entries — for every file, its
total_commits, how many distinct authors it has, itstop_authorand that author'stop_shareof the file's commits, andexternal_reviewers: how many of its reviewers are not authors of the file. A review by one of the file's own authors does not count as external review, so a file checked only by the people who wrote it reads as never reviewed. - Two flags, one list — a file is
dominatedwhen its top author's share reaches the threshold (0.8 by default), andnever_reviewedwhen it has no external reviewers. A file that is both isat_risk, andat_risk_filescollects exactly those paths. The list is a statement of fact about concentration and coverage; it carries no judgement about the people involved. - Summary counts — how many files were analysed, how many are at risk, how many have a single author, and how many were never externally reviewed.
Duplicate author names inside one file are merged by
summing their commits before anything is computed, and
reviewer names are de-duplicated. The top-author share is
rounded to four decimal places, and the domination check
compares that rounded share — the number the report itself
shows — against the threshold, so a file reported at
exactly the threshold is always flagged dominated. Every
list in the result is sorted ascending, so the same data
always yields exactly the same map. Malformed input — a
missing or empty file list, a duplicate path, an author
with no commits — is a validation error naming the
offending path (for example
files[1].authors[0].commits must be an integer >= 1),
and no partial map 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:
reviewers defaults to [] per file, and threshold
defaults to 0.8. Here src/solo.ts is single-author and
unreviewed, while src/shared.ts is split evenly and was
externally reviewed by cleo. The map is printed as JSON:
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
-
analyze_bus_factor— Map single-author, never-reviewed files from authorship and review data.files(array, required, at least one) — files as{path, authors, reviewers?}objects;pathis unique across the set, eachauthorsentry is a{name, commits}pair with at least 1 commit, andreviewerslists names that reviewed changes to the filethreshold(number, optional, default 0.8) — the top-author share at or above which a file counts as dominated by one author; must be > 0 and <= 1
Returns
{files, at_risk_files, summary}.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
來源:README.md,提交 154faf7
工具
0版本歷史
1- v0.1.0最新Nov 3, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分