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.
@HasanJahidul
基本信息
暂无概览
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"git-insight": {
"command": "git-insight-mcp"
}
}
}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.
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.
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.
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.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.
No, only GitHub is supported. PR linkage falls back to the GitHub API.
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.
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).
It runs as a stdio MCP server and pairs with other stdio‑based MCP servers such as terminal‑history‑mcp and localhost‑mcp.
A Cloudflare-powered MCP (Model Context Protocol) Server that allows you to search and query your GitHub starred repositories using natural language.

Model Context Protocol Servers
This MCP server provides integration with Gerrit code review system, allowing AI assistants to review code changes and their details through a simple interface.
MCP server for Atlassian tools (Confluence, Jira)
Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
评论