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.

CategoryTool NameDescription
Reviewreview_staged_changesReview all changes currently in the Git stage
Reviewreview_branchesCompare and review differences between two branches
Analysisgenerate_commit_messageCreate conventional commit messages from staged diffs
Analysisexplain_codeDetailed logic explanation for selected files/diffs
Skillslist_skillsView available specialized agent review profiles
Gitget_git_statusGet 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."