{
  "markdown": "\n# mcp-git-tools\n\nGit repository analysis tools for AI agents, served over MCP (Model Context Protocol). Analyzes local repositories using native git commands — no GitHub API required.\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `git_log` | Get commit history with filtering by author, date range, and file path |\n| `git_diff` | Show diff between commits, branches, or tags with change summaries |\n| `git_blame` | Show who last modified each line of a file with commit info |\n| `git_stats` | Repository statistics: commits, contributors, activity over time, most changed files |\n| `git_branch` | List branches with last commit info, ahead/behind counts, merged/unmerged status |\n\n## Prerequisites\n\n- **Node.js** >= 18\n- **Git** installed and available in PATH\n\n## Setup\n\n```bash\nnpm install\nnpm run build\n```\n\n## Configuration\n\nAdd to your MCP client configuration:\n\n```json\n{\n  \"mcpServers\": {\n    \"git-tools\": {\n      \"command\": \"node\",\n      \"args\": [\"D:/products/mcp-servers/mcp-git-tools/dist/index.js\"]\n    }\n  }\n}\n```\n\n## Tool Details\n\n### git_log\n\nRetrieve recent commit history with optional filters.\n\n**Parameters:**\n- `repoPath` (required) — Absolute path to the Git repository\n- `count` — Number of commits to return (default: 20)\n- `author` — Filter by author name or email\n- `since` / `until` — Date range filters\n- `path` — Filter to commits touching a specific file or directory\n\n### git_diff\n\nCompare two refs and get a structured summary of changes.\n\n**Parameters:**\n- `repoPath` (required) — Absolute path to the Git repository\n- `from` — Start ref (default: HEAD~1)\n- `to` — End ref (default: HEAD)\n- `path` — Limit diff to a specific file or directory\n- `summaryOnly` — Return only stats without full diff text\n\n### git_blame\n\nSee line-by-line authorship of a file.\n\n**Parameters:**\n- `repoPath` (required) — Absolute path to the Git repository\n- `filePath` (required) — File path relative to repo root\n- `startLine` / `endLine` — Blame a specific line range\n- `ref` — Blame at a specific commit\n\n### git_stats\n\nGet a high-level overview of repository activity.\n\n**Parameters:**\n- `repoPath` (required) — Absolute path to the Git repository\n- `topAuthors` — Number of top contributors to list (default: 10)\n- `topFiles` — Number of most-changed files to list (default: 10)\n\n### git_branch\n\nList and analyze branches.\n\n**Parameters:**\n- `repoPath` (required) — Absolute path to the Git repository\n- `baseBranch` — Branch to compare against (default: main or master)\n- `includeRemote` — Include remote-tracking branches\n- `mergedOnly` / `unmergedOnly` — Filter by merge status\n\n## License\n\nMIT\n",
  "bytes": 2628,
  "sha": "795e22571e2481f4063dbb7938a2698ffe929bdab007e6d62f1d1d7bc26be85a",
  "repo_slug": "rog0x/mcp-git-tools",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_rog0x_git_7250d8cd/readme"
}