Skip to main content
Glama
rog0x

mcp-git-tools

by rog0x

mcp-git-tools

Инструменты анализа Git-репозиториев для AI-агентов, предоставляемые через MCP (Model Context Protocol). Анализирует локальные репозитории с помощью нативных git-команд — не требуется GitHub API.

Инструменты

Инструмент

Описание

git_log

Получить историю коммитов с фильтрацией по автору, диапазону дат и пути к файлу

git_diff

Показать diff между коммитами, ветками или тегами с сводками изменений

git_blame

Показать, кто последним изменил каждую строку файла, с информацией о коммите

git_stats

Статистика репозитория: коммиты, участники, активность по времени, наиболее изменяемые файлы

git_branch

Список веток с информацией о последнем коммите, количеством впереди/позади, статусом объединения/необъединения

Related MCP server: mcp-git

Предварительные требования

  • Node.js >= 18

  • Git установлен и доступен в PATH

Настройка

npm install
npm run build

Конфигурация

Добавьте в конфигурацию вашего MCP-клиента:

{
  "mcpServers": {
    "git-tools": {
      "command": "node",
      "args": ["D:/products/mcp-servers/mcp-git-tools/dist/index.js"]
    }
  }
}

Детали инструментов

git_log

Получить недавнюю историю коммитов с необязательными фильтрами.

Параметры:

  • repoPath (required) — Абсолютный путь к Git-репозиторию

  • count — Количество коммитов для возврата (по умолчанию: 20)

  • author — Фильтр по имени или email автора

  • since / until — Фильтры диапазона дат

  • path — Фильтр по коммитам, затрагивающим конкретный файл или каталог

git_diff

Сравните два refs и получите структурированную сводку изменений.

Параметры:

  • repoPath (required) — Абсолютный путь к Git-репозиторию

  • from — Начальный ref (по умолчанию: HEAD~1)

  • to — Конечный ref (по умолчанию: HEAD)

  • path — Ограничить diff конкретным файлом или каталогом

  • summaryOnly — Возвращать только статистику без полного текста diff

git_blame

Показать построчное авторство файла.

Параметры:

  • repoPath (required) — Абсолютный путь к Git-репозиторию

  • filePath (required) — Путь к файлу относительно корня репозитория

  • startLine / endLine — Blame для конкретного диапазона строк

  • ref — Blame на конкретном коммите

git_stats

Получить общий обзор активности репозитория.

Параметры:

  • repoPath (required) — Абсолютный путь к Git-репозиторию

  • topAuthors — Количество ведущих участников для отображения (по умолчанию: 10)

  • topFiles — Количество наиболее изменяемых файлов для отображения (по умолчанию: 10)

git_branch

Список и анализ веток.

Параметры:

  • repoPath (required) — Абсолютный путь к Git-репозиторию

  • baseBranch — Ветка для сравнения (по умолчанию: main или master)

  • includeRemote — Включить ветки отслеживания удаленных репозиториев

  • mergedOnly / unmergedOnly — Фильтр по статусу слияния

Лицензия

MIT

A
license - permissive license
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI assistants to interact with local Git repositories for operations like status, commits, branching, and diffs, plus GitHub API integration for managing pull requests when authenticated.
  • A
    license
    B
    quality
    D
    maintenance
    Enables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.
    15
    159
    MIT
  • F
    license
    B
    quality
    D
    maintenance
    Enables AI assistants to inspect local Git repositories and interact with the GitHub API for reading commits, diffs, files, issues, comments, pull requests, and project boards.
    10
    121
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables analysis of local Git repositories via standard git commands, providing insights like line authorship, commit frequency, code churn, and co-changed files.

View all related MCP servers

Related MCP Connectors

  • Git-backed platform for skills, tools, and context for AI agents

  • Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.

  • Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rog0x/mcp-git-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server