🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

DiffPilot

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

DiffPilot

MCP server for PR code review and developer productivity tools

Source
nugetNuGet
Version
1.0.7
Version published
Total downloads
797
Maintainers
1
Created
Source

🚀 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

FeaturesInstallationToolsConfiguration

🎯 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

FeatureDescription
🔄 PR DiffGet diff between branches
📊 Code ReviewAI-structured diff output for review
🏷️ PR TitleConventional commit format titles
📋 PR DescriptionFull description with checklist
💬 Commit MessageGenerate from staged/unstaged changes
🔐 Secret ScanDetect API keys, passwords, tokens
📈 Diff StatsLines added/removed, file breakdown
🧪 Test SuggestionsPattern-based test case recommendations
📝 ChangelogKeep a Changelog format from commits

⚡ Installation

  • Install from VS Code Marketplace
  • The extension automatically registers as an MCP server
  • 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

ToolPurpose
get_pr_diffRaw diff between branches
review_pr_changesDiff with AI review instructions
generate_pr_titleConventional PR title (feat/fix/refactor)
generate_pr_descriptionFull PR description with checklist

Developer Tools

ToolPurpose
generate_commit_messageCommit message from staged/unstaged changes
scan_secretsDetect API keys, passwords, tokens
diff_statsChange statistics (lines, files, types)
suggest_testsTest case recommendations
generate_changelogChangelog 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.

GitHubVS Code Marketplace@bkalafat

⭐ Star this repo if you find it useful!

Keywords

mcp

FAQs

Package last updated on 07 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts