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 private MCP server for accessing Linear
Learn how to use MCP Servers with GitHub Copilot
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project

Model Context Protocol Servers
A GitHub MCP Server extension for Zed
コメント