
Diffpilot
io.github.bkalafat由 GitHub 帳號 bkalafat 發布v1.0.7更新於 Oct 24, 2026
MCP server for PR code review, commit messages, changelogs, and secret detection.
概覽
本機 MCP 伺服器,讓助手審查 Git 變更、草擬 PR 標題、描述與提交訊息,並掃描差異中的機密資訊。
- 可以做什麼
- 檢視目前分支與自動辨識的基礎分支之間的差異與變更統計,並依安全性、錯誤處理等重點審查變更。草擬 PR 標題與描述,包含檢查清單。依提交產生符合慣例式提交規範的提交訊息與變更日誌。掃描變更中的 API 金鑰、密碼、權杖等機密資訊。依變更程式碼的模式建議測試案例。
- 適用情境
- 適合在推送或建立 PR 前自行審查本機變更、以審查者身分審查已檢出的分支,或在提交前檢查是否外洩機密資訊。也適合使用 Azure DevOps、TFS 或隔離網路環境、希望不把程式碼送往雲端服務的團隊。僅支援桌面端。
- 執行需求
- 以 .NET 工具(dotnet tool install -g DiffPilot)或 VS Code 擴充功能形式在本機執行。需要 .NET 9 SDK、Git,使用擴充功能時還需 VS Code 1.101 以上版本。未宣告帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Diffpilot,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
🔍 DiffPilot
Local AI Code Review Before You Push
[.NET 9] [VS Code] [MCP] [License: MIT]
💡 Why DiffPilot?
Review your code locally before creating a PR. DiffPilot is an MCP server that lets you:
- Self-Review Before PR - Run AI code review on your local changes after your last commit, before pushing
- Reviewer Workflow - As a code reviewer, checkout the source branch locally and get AI-assisted review
- Auto Branch Detection - No need to specify
main- DiffPilot finds your base branch automatically
🔒 100% Local - No cloud, no external APIs. Works with Azure DevOps, TFS, air-gapped environments.
🚀 Quick Start
Install
Use with GitHub Copilot
🛠️ 9 MCP Tools
PR Review Tools
Developer Tools
✨ Key Features
🛡️ Security
DiffPilot implements enterprise-grade security features:
Auto-Redacted Patterns: API keys, AWS credentials, GitHub/Slack tokens, JWTs, passwords, private keys, connection strings.
See SECURITY.md for full documentation.
📋 Use Cases
1. Self-Review Before PR
2. Code Reviewer Workflow
3. Pre-Commit Secret Check
⚙️ Configuration
📦 Installation Options
Requirements: .NET 9 SDK, VS Code 1.101+, Git
📜 Version History
1.2.0 (2025-12-09)
- Security Hardening - Bank-grade security features
- Input validation (CWE-20)
- Command injection prevention (CWE-78)
- Path traversal protection (CWE-22)
- Output sanitization - auto-redacts secrets (CWE-200)
- Rate limiting (CWE-400)
- Secure error handling
- Added SECURITY.md documentation
- 80 new security unit tests
1.1.5 (2025-12-08)
- Updated README with use cases and
#toolprompts - Highlighted auto branch detection
1.1.4 (2025-12-07)
- Icon refinements
1.1.3 (2025-12-07)
- New extension icon (lens with plus/minus)
1.1.2 (2025-12-07)
- Optimized package size
1.1.1 (2025-12-07)
- Updated extension icon
1.1.0 (2025-12-07)
- Improved tool documentation
1.0.9 (2025-12-07)
- Fixed: Server uses workspace folder for git operations
1.0.8 (2025-12-07)
- Shortened tool descriptions for cleaner UI
1.0.7 (2025-12-07)
- Fixed: Bundled server includes TargetFramework
1.0.6 (2025-12-07)
- Fixed: MCP auto-registration for VS Code 1.101+
1.0.5 (2025-12-07)
- Published to NuGet and MCP Registry
1.0.0 (2025-12-06)
- Initial release with 9 MCP tools
📄 License
MIT License - Burak Kalafat
GitHub • VS Code Marketplace • NuGet
⭐ Star if useful!
來源:README.md,提交 f3ba53d
工具
0版本歷史
1- v1.0.7最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。