GitPeak

v4.1.12
io.github.awalhadi/gitpeak Checked 17 hours ago Published 1 month ago

Git context for AI agents: status, staged diff, commit log, repo health, merge risk, line history

The GitPeak MCP server as a standalone package. It gives AI agents (Copilot, Claude Code, Cursor, Windsurf, any MCP client) structured git context without the agent running git itself. It serves the git repository in its working directory. It needs Node 20+ and git on your PATH, and it has no dependencies. If you use the GitPeak extension, you don't need this: the extension registers the server with VS Code itself.

Summary extracted from the README.

gitpeak-mcp

The GitPeak MCP server as a standalone package. It gives AI agents (Copilot, Claude Code, Cursor, Windsurf, any MCP client) structured git context without the agent running git itself.

It serves the git repository in its working directory. It needs Node 20+ and git on your PATH, and it has no dependencies.

Tools

Tool What it returns
gitpeak_repo_status Staged, unstaged and untracked files, branch, ahead/behind, merge or rebase in progress
gitpeak_staged_diff The full diff of staged changes
gitpeak_commit_log Recent commits with author, date, message and AI-agent detection
gitpeak_health A 0–100 health score, stale and never-pushed branches, secret-leak warnings, unpushed commits
gitpeak_merge_risk Predicted risk (0–100%) of merging one branch into another
gitpeak_blame_line Every commit that touched a line, newest first, with linked issue refs
gitpeak_worktrees All worktrees with their branch and status
gitpeak_dispatch Runs other GitPeak commands; those that need the editor report HOST_ONLY

Install

VS Code: open the Extensions view, search @mcp gitpeak and click Install. You can also add it to .vscode/mcp.json:

{
  "servers": {
    "gitpeak": { "command": "npx", "args": ["-y", "gitpeak-mcp"] }
  }
}

If you use the GitPeak extension, you don't need this: the extension registers the server with VS Code itself.

Claude Code:

claude mcp add gitpeak -- npx -y gitpeak-mcp

Cursor, Windsurf and other clients (.cursor/mcp.json or the client's MCP settings):

{
  "mcpServers": {
    "gitpeak": { "command": "npx", "args": ["-y", "gitpeak-mcp"] }
  }
}

License

MIT