MCP.so
登录
G

Gi MCP Server

@HasanJahidul

基本信息

分类

版本控制

传输方式

stdio

作者

HasanJahidul

提交者

Jahidul Hasan

关于 Gi MCP Server

暂无概览

#git#blame#co-change#github#pull-request#branch-hygiene#code-ownership#developer-tools#mcp-server

Gi MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "git-insight": {
      "command": "git-insight-mcp"
    }
  }
}

Gi MCP Server 工具

6

Group blame by author. Lines, commits, last-touched, primary owner. Optional line-range narrowing.

Find the PR that introduced a line (or commit). Parses merge messages first; falls back to GitHub API.

Files most often changed together with the input file.

List branches with ahead/behind, last commit, merged status, stale flag.

Standup helper: author's commits + files + ins/del in a window.

Full commit context: subject, body, files, PR, related issues.

概览

What is git-insight-mcp?

git‑insight‑mcp is an MCP server that enables semantic git queries — answering who, what, when, and why about any line, file, or branch. It integrates with any local git repository and is designed for developers and LLM agents who need richer git context than git log provides.

How to use git-insight-mcp?

Install globally via npm install -g git-insight-mcp, then wire it into an MCP‑compatible client (e.g., Claude Code with claude mcp add --scope user git-insight -- git-insight-mcp). It runs as a stdio MCP server. For PR and issue lookups, set the environment variable GH_TOKEN. Use the provided CLI commands (e.g., git-insight-mcp who-touched src/auth.ts) for ad‑hoc checks.

Key features of git-insight-mcp

  • who_touched – Group blame by author, lines, commits, and primary owner.
  • introducing_pr – Find the PR that introduced a line or commit.
  • co_change – Identify files most often changed together with a given file.
  • branch_hygiene – List branches with ahead/behind, last commit, merged status, and stale flag.
  • recent_work – Standup helper: author’s commits, files, and insertion/deletion counts.
  • commit_context – Full commit details including subject, body, files, PR, and related issues.

Use cases of git-insight-mcp

  • Determine who last touched a function or code region.
  • Find which PR introduced a specific line of code.
  • Identify files that frequently change together to plan refactors.
  • List stale or unmerged branches for cleanup.
  • Generate a summary of recent work for standups or reports.

常见问题

1

What dependencies does git-insight-mcp require?

Node.js (npm) and a local git repository. An optional GitHub token (`GH_TOKEN`) enables PR/issue lookups; without it, local‑git tools still work.

2

Does git-insight-mcp support GitLab or Bitbucket?

No, only GitHub is supported. PR linkage falls back to the GitHub API.

3

How do I set up GitHub authentication for PR lookups?

Set the environment variable `GH_TOKEN` to a valid GitHub personal access token. Without a token, PR lookup is skipped but all other tools remain functional.

4

What are the performance limits?

The `co_change` tool is O(window × files‑per‑commit) with a default cap of 1000 commits. Function‑level blame is based on line ranges, not AST, and renames are not yet tracked. GitHub API rate limits apply (5000 requests per hour for authenticated users).

5

What transport does git-insight-mcp use?

It runs as a stdio MCP server and pairs with other stdio‑based MCP servers such as terminal‑history‑mcp and localhost‑mcp.

评论

版本控制 分类下的更多 MCP 服务器