Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
davidweb3-ctrl avatar

Git Enhanced

  • 1 repo stars
  • Updated June 2, 2026
  • davidweb3-ctrl/mcp-git-enhanced

io.github.davidweb3-ctrl/git-enhanced is a MCP server that exposes enhanced local Git operations for code review, commit analysis, and branch management to your agent.

About

git-enhanced is an Enhanced Git MCP server that wires your AI assistant to local repository operations with a focus on code review, commit analysis, and branch management. Developers who ship from a single repo but want agent help summarizing changes, comparing branches, or reasoning about history will register this when Git context is too tedious to paste manually. It installs from npm as @davidweb3-ctrl/mcp-git-enhanced over stdio, which matches how most agent IDEs expect MCP servers to run. Pair it with your normal commit workflow during Ship: use it when you are about to open a PR, debug a regression introduced in recent commits, or decide whether a feature branch is ready to merge. It is a task integration for Git, not a substitute for hosting APIs—keep a GitHub MCP alongside if you need remote PR and issue lists.

  • stdio MCP server via npm package @davidweb3-ctrl/mcp-git-enhanced (v1.0.1)
  • Code review and commit analysis oriented tooling on local Git repos
  • Branch management operations exposed as agent-callable tools
  • Runs as a local stdio transport—fits Claude Code, Cursor, and other MCP clients

Git Enhanced by the numbers

  • Data as of Jul 7, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env YOUR_API_KEY=YOUR_YOUR_API_KEY git-enhanced -- npx -y @davidweb3-ctrl/mcp-git-enhanced

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Package@davidweb3-ctrl/mcp-git-enhanced
TransportSTDIO
AuthRequired
Last updatedJune 2, 2026
Repositorydavidweb3-ctrl/mcp-git-enhanced

What it does

Let your coding agent inspect commits, branches, and diffs for review-style questions without leaving the chat.

Who is it for?

Best when you use Claude Code or Cursor and want agent-driven commit and branch context on a local clone without switching to the terminal for every question.

Skip if: Skip if you only need GitHub.com PR and issue lists—use a GitHub API MCP with a personal access token instead of local Git enrichment alone.

What you get

After you register the server, your agent can query repository state and change history directly so review and branch decisions stay grounded in real Git data.

  • Agent-callable Git review and history context from the active repo
  • Branch-oriented operations without manual git CLI transcription
  • Faster Ship-phase review loops grounded in commit data

By the numbers

  • Server schema version 1.0.1
  • npm identifier @davidweb3-ctrl/mcp-git-enhanced
  • Transport: stdio
README.md

MCP Git Enhanced

CI License MCP

MCP Git Enhanced is a Model Context Protocol server that helps AI coding assistants inspect repository state for day-to-day open-source maintenance.

It gives maintainers structured Git context for code review, commit analysis, branch comparison, and release preparation without asking the assistant to run broad shell commands.

Why Maintainers Use It

Open-source maintainers spend a lot of time answering the same repository questions before they can review or merge work:

  • What changed in this branch?
  • Which commits matter for the release notes?
  • Is this branch behind the base branch?
  • What is staged, unstaged, or untracked?
  • Which merged or stale branches need cleanup?

This server exposes those workflows as focused MCP tools so assistants can help with PR review, issue triage, release management, and repository hygiene.

Available Tools

Tool Purpose
git_diff Analyze working tree, staged, branch, commit, or path-specific diffs.
git_log Review commit history with filters for author, date range, branch, path, and stats.
git_branch List branches, compare a branch to its base, or suggest cleanup candidates.
git_status Summarize staged, unstaged, and untracked repository state.
git_commit_analyze Inspect one commit with metadata, changed files, statistics, and diff output.

Installation

From Source

git clone https://github.com/davidweb3-ctrl/mcp-git-enhanced.git
cd mcp-git-enhanced
npm install
npm run build

Claude Code Configuration

Use the built server from this repository:

{
  "mcpServers": {
    "git-enhanced": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-git-enhanced/dist/index.js"]
    }
  }
}

Future npm Install

The package is published as @davidweb3-ctrl/mcp-git-enhanced:

npm install -g @davidweb3-ctrl/mcp-git-enhanced

After publication, clients can use:

{
  "mcpServers": {
    "git-enhanced": {
      "command": "npx",
      "args": ["@davidweb3-ctrl/mcp-git-enhanced"]
    }
  }
}

Example Workflows

PR Review

Use git_diff to compare this branch with master and summarize the risky files.
Use git_log to list commits since the last release.
Use git_commit_analyze on the largest commit before I review it.

Issue Triage

Use git_log to find recent commits touching src/tools.ts.
Use git_status to check whether the local reproduction has uncommitted changes.

Release Management

Use git_branch compare against master to prepare release notes.
Use git_log with --stat style output to identify user-visible changes.
Use git_branch suggest_cleanup after the release branch is merged.

Tool Examples

git_diff

{
  "repoPath": "/absolute/path/to/repo",
  "target": "HEAD~5",
  "source": "HEAD~10",
  "filePath": "src/",
  "staged": false
}

git_log

{
  "repoPath": "/absolute/path/to/repo",
  "maxCount": 20,
  "author": "Maintainer Name",
  "since": "1 week ago",
  "stat": true
}

git_branch

{
  "repoPath": "/absolute/path/to/repo",
  "action": "list",
  "includeRemote": true
}
{
  "repoPath": "/absolute/path/to/repo",
  "action": "compare",
  "branchName": "feature/pr-review-summary",
  "baseBranch": "master"
}

git_status

{
  "repoPath": "/absolute/path/to/repo",
  "short": false
}

git_commit_analyze

{
  "repoPath": "/absolute/path/to/repo",
  "commitHash": "abc123"
}

Security Model

MCP Git Enhanced is designed as a read-oriented repository inspection server.

  • It runs fixed git subcommands through spawnSync without shell interpolation.
  • It does not expose destructive branch deletion, reset, checkout, rebase, push, or force-push tools.
  • It validates that repoPath points to a Git repository before executing tool handlers.
  • It is intended for local repositories controlled by the user or maintainer.

See SECURITY.md for reporting and supported-version details.

Development

npm install
npm run build
npm test
npm run lint
npm run format:check

Project Files

Requirements

  • Node.js >= 18.0.0
  • Git installed and available in PATH

License

MIT

Recommended MCP Servers

How it compares

Local Git MCP integration for review and history, not a hosted GitHub REST wrapper for issues and search.

FAQ

Who is io.github.davidweb3-ctrl/git-enhanced for?

It is for developers and small teams who want their coding agent to analyze commits, branches, and review-oriented Git context from the workspace repo.

When should I use io.github.davidweb3-ctrl/git-enhanced?

Use it during Ship when you are reviewing diffs, tracing a bug through recent commits, or comparing branches before merge or deploy.

How do I add io.github.davidweb3-ctrl/git-enhanced to my agent?

Add the npm package @davidweb3-ctrl/mcp-git-enhanced as an stdio MCP server in your client config, set any required secrets from the server schema, and point it at your project directory.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.