
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 分
请在仓库或注册中心条目中声明许可证。


