Model Context Protocol Server

Expert Git Analysis for Claude

Empower your AI assistant with intelligent code reviews, commit generation, and specialized agent skills. Built for Claude Desktop and Claude Code.

claude-desktop-mcp
❯ gitsage.review_staged_changes()
- return data.filter(x => x.active)
+ return data.filter(item => item.status === 'active')

// AI Analysis:
✔ Code logic improved
✔ Consistent naming applied
✔ Conventional commit generated

Everything for Smart Code Reviews

GitSage bridges the gap between your local Git repository and Claude's advanced reasoning capabilities.

Smart Code Reviews

Review staged changes, specific commits, or branch comparisons with context-aware AI feedback.

Commit Generation

Automatically generate clear, concise conventional commit messages based on your actual code diffs.

Agent Skills

Download specialized review profiles from GitHub for targeted audits like security, performance, or accessibility.

Diff Filtering

Noise reduction by automatically filtering out lock files, generated code, and minified assets.

Deep Integration

Full access to repository status, branches, and commit history via standard MCP protocols.

Language Agnostic

Works with any framework. Optimized context for React, TypeScript, Node.js, and more via config.

Quick Setup

Integrate GitSage into your Claude workflow in seconds.

1. Install Package

Install globally via NPM or use NPX directly in your configuration.

npm install -g @vinhnguyen/gitsage

2. Configure Claude

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "gitsage": {
      "command": "npx",
      "args": ["-y", "@vinhnguyen/gitsage"]
    }
  }
}

Available MCP Tools

GitSage exposes these capabilities to Claude. You can ask Claude to use them naturally in conversation.

Category Tool Name Description
Review review_staged_changes Review all changes currently in the Git stage
Review review_branches Compare and review differences between two branches
Analysis generate_commit_message Create conventional commit messages from staged diffs
Analysis explain_code Detailed logic explanation for selected files/diffs
Skills list_skills View available specialized agent review profiles
Git get_git_status Get the current status of the working directory

Try These Prompts

Once installed, try asking Claude these questions:

"Review my staged changes and check for any potential security vulnerabilities using GitSage."

"Look at the differences between main and my current branch and summarize the changes."

"Generate a conventional commit message for the work I just did."