DiffPilot 1.0.7

dotnet tool install --global DiffPilot --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DiffPilot --version 1.0.7
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DiffPilot&version=1.0.7
                    
nuke :add-package DiffPilot --version 1.0.7
                    

๐Ÿš€ DiffPilot

MCP Server for AI-Powered PR Code Review

.NET MCP VS Code License

Works with GitHub Copilot, Claude, Azure DevOps, TFS โ€ข 100% Local โ€ข Zero Dependencies

Features โ€ข Installation โ€ข Tools โ€ข Configuration


๐ŸŽฏ What is DiffPilot?

DiffPilot is an MCP (Model Context Protocol) server that provides AI-powered PR code review and developer productivity tools. It runs locally and works with any MCP-compatible AI client.

Key Benefits

  • ๐Ÿ” Auto Branch Detection - Automatically detects your base branch
  • ๐Ÿ“ Smart PR Generation - Conventional commit titles & comprehensive descriptions
  • ๐Ÿ” Secret Scanning - Detects API keys, passwords, tokens before commit
  • ๐Ÿงช Test Suggestions - Analyzes code patterns and recommends test cases
  • โšก Zero Dependencies - Only uses .NET BCL, no external packages

โœจ Features

Feature Description
๐Ÿ”„ PR Diff Get diff between branches
๐Ÿ“Š Code Review AI-structured diff output for review
๐Ÿท๏ธ PR Title Conventional commit format titles
๐Ÿ“‹ PR Description Full description with checklist
๐Ÿ’ฌ Commit Message Generate from staged/unstaged changes
๐Ÿ” Secret Scan Detect API keys, passwords, tokens
๐Ÿ“ˆ Diff Stats Lines added/removed, file breakdown
๐Ÿงช Test Suggestions Pattern-based test case recommendations
๐Ÿ“ Changelog Keep a Changelog format from commits

โšก Installation

  1. Install from VS Code Marketplace
  2. The extension automatically registers as an MCP server
  3. Use with GitHub Copilot Agent Mode or any MCP client

Manual Setup

# Prerequisites: .NET 9 SDK, Git

# Clone and build
git clone https://github.com/bkalafat/DiffPilot.git
cd DiffPilot
dotnet build

# Run tests
dotnet test

# Run server
dotnet run

MCP Client Configuration

{
  "mcpServers": {
    "diffpilot": {
      "command": "dotnet",
      "args": ["run", "--project", "/path/to/DiffPilot"],
      "cwd": "/your/git/repository"
    }
  }
}

๐Ÿ› ๏ธ Tools

PR Review Tools

Tool Purpose
get_pr_diff Raw diff between branches
review_pr_changes Diff with AI review instructions
generate_pr_title Conventional PR title (feat/fix/refactor)
generate_pr_description Full PR description with checklist

Developer Tools

Tool Purpose
generate_commit_message Commit message from staged/unstaged changes
scan_secrets Detect API keys, passwords, tokens
diff_stats Change statistics (lines, files, types)
suggest_tests Test case recommendations
generate_changelog Changelog from commits (Keep a Changelog)

โš™๏ธ Configuration

VS Code Settings

{
  "diffpilot.dotnetPath": "dotnet",
  "diffpilot.serverPath": "",
  "diffpilot.defaultBaseBranch": "main",
  "diffpilot.prTitleStyle": "conventional",
  "diffpilot.commitMessageStyle": "conventional"
}

๐Ÿ“– Usage Examples

# Get PR diff
"Show me the changes compared to main branch"

# Code review
"Review this PR for security and performance issues"

# Generate PR title
"Suggest a PR title for these changes"

# Scan for secrets
"Check if there are any secrets in my changes"

# Generate commit message
"Create a commit message for my staged changes"

๐Ÿ—๏ธ Architecture

DiffPilot/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ Program.cs           # Entry point (JSON-RPC loop)
โ”‚   โ”œโ”€โ”€ Git/GitService.cs    # Git command execution
โ”‚   โ”œโ”€โ”€ Protocol/            # JSON-RPC & MCP handlers
โ”‚   โ””โ”€โ”€ Tools/               # Tool implementations
โ”œโ”€โ”€ tests/                   # Unit tests
โ””โ”€โ”€ vscode-extension/        # VS Code extension wrapper

Tech Stack: C# 13 / .NET 9 | JSON-RPC 2.0 | MCP stdio | xUnit


๐Ÿ“„ License

MIT License - see LICENSE file.



GitHub โ€ข VS Code Marketplace โ€ข @bkalafat

โญ Star this repo if you find it useful!

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.7 200 12/7/2025
1.0.6 198 12/7/2025
1.0.5 199 12/7/2025