
Repo Forensics Mcp
io.github.mrfentmen由 GitHub 帳號 mrfentmen 發布v1.0.1更新於 Nov 8, 2026
Local read-only Git repository archaeology, churn, hotspots, and hygiene checks.
概覽
本機唯讀 MCP 伺服器,讓助理在審查或重構前檢視 Git 儲存庫的歷史、變更頻率、熱點檔案與衛生狀況。
- 可以做什麼
- 彙整儲存庫概況:分支、工作區狀態、遠端名稱與最新提交中繼資料
- 讀取限定範圍內的近期提交歷史
- 找出近期歷史中最常出現的熱點檔案
- 檢查頂層衛生狀況:大型檔案、是否有 .gitignore 以及工作區是否有未提交變更,且不讀取檔案內容
- 適用情境
- 適合在程式碼審查、重構或發佈前,讓助理快速了解本機 Git 儲存庫,或在不授予寫入權限的情況下找出經常變動的檔案與基本衛生問題。
- 執行需求
- 以本機 stdio 程序執行,從 npm 套件 repo-forensics-mcp 安裝;需要 Node.js 與本機 Git。除非將 REPO_FORENSICS_ROOT 設為明確的工作區根目錄,否則路徑僅限於套件程序的父工作區。不需要帳號、API 金鑰或網路存取。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Repo Forensics Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
repo-forensics-mcp
A local-only MCP companion for understanding a Git repository before a review, refactor, or release.
Tools
repository_summary: branch, working tree status, remotes, and latest commit metadata.recent_changes: bounded recent commit history.file_hotspots: files appearing most often in recent history.top_level_hygiene: top-level large files,.gitignorepresence, and dirty state without reading file contents.
The server invokes local Git with fixed argument arrays. By default, paths must stay under the parent workspace of the package process; set REPO_FORENSICS_ROOT to an explicit workspace root when launching it. It returns remote names rather than remote URLs to avoid leaking credentials. It does not fetch, push, write files, inspect remote services, or send repository data over the network. Hotspots and hygiene are heuristics, not a complete code-quality or security audit.
Run
來源:README.md,提交 c2d5ff7
工具
0版本歷史
1- v1.0.0Sep 22, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。


