
Git
io.github.rog0x由 GitHub 帳號 rog0x 發布v1.0.1更新於 Oct 24, 2026
Git log, diff, blame, branch stats for AI agents
概覽
一個本機 MCP 伺服器,讓 AI 助理檢視 Git 儲存庫:提交歷史、差異、逐行歸屬、分支狀態與活動統計。
- 可以做什麼
- 依作者、日期範圍與檔案路徑篩選讀取提交歷史,並比較參照,回傳結構化差異摘要或僅統計。檢視檔案的逐行作者資訊,可限定行範圍或指定提交。彙總儲存庫活動:提交數、主要貢獻者、變動最多的檔案與時間趨勢。列出分支及其最後提交資訊、領先/落後數量與已合併或未合併狀態。
- 適用情境
- 適合讓助理分析本機儲存庫的歷史、檢視分支或提交之間的變動、查明某幾行最後由誰修改,或在不呼叫託管平台 API 的情況下快速了解儲存庫活躍度。
- 執行需求
- 以本機程序透過 stdio 執行,來自 npm 套件 @rog0x/mcp-git-tools。需要 Node.js 18 或更新版本,以及已安裝並在 PATH 中的 Git。每次工具呼叫需提供儲存庫的絕對路徑。未宣告驗證、API 金鑰或環境變數。
安裝
README
mcp-git-tools
Git repository analysis tools for AI agents, served over MCP (Model Context Protocol). Analyzes local repositories using native git commands — no GitHub API required.
Tools
Prerequisites
- Node.js >= 18
- Git installed and available in PATH
Setup
Configuration
Add to your MCP client configuration:
Tool Details
git_log
Retrieve recent commit history with optional filters.
Parameters:
repoPath(required) — Absolute path to the Git repositorycount— Number of commits to return (default: 20)author— Filter by author name or emailsince/until— Date range filterspath— Filter to commits touching a specific file or directory
git_diff
Compare two refs and get a structured summary of changes.
Parameters:
repoPath(required) — Absolute path to the Git repositoryfrom— Start ref (default: HEAD~1)to— End ref (default: HEAD)path— Limit diff to a specific file or directorysummaryOnly— Return only stats without full diff text
git_blame
See line-by-line authorship of a file.
Parameters:
repoPath(required) — Absolute path to the Git repositoryfilePath(required) — File path relative to repo rootstartLine/endLine— Blame a specific line rangeref— Blame at a specific commit
git_stats
Get a high-level overview of repository activity.
Parameters:
repoPath(required) — Absolute path to the Git repositorytopAuthors— Number of top contributors to list (default: 10)topFiles— Number of most-changed files to list (default: 10)
git_branch
List and analyze branches.
Parameters:
repoPath(required) — Absolute path to the Git repositorybaseBranch— Branch to compare against (default: main or master)includeRemote— Include remote-tracking branchesmergedOnly/unmergedOnly— Filter by merge status
License
MIT
來源:README.md,提交 d7330b0
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分