Skip to main content
Glama
rog0x

mcp-git-tools

by rog0x

mcp-git-tools

AI 에이전트를 위한 Git 저장소 분석 도구로, MCP(Model Context Protocol)를 통해 제공됩니다. GitHub API 없이 네이티브 git 명령어를 사용하여 로컬 저장소를 분석합니다.

도구

도구

설명

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 (필수) — Git 저장소의 절대 경로

  • count — 반환할 커밋 수 (기본값: 20)

  • author — 작성자 이름 또는 이메일로 필터링

  • since / until — 날짜 범위 필터

  • path — 특정 파일 또는 디렉터리에 영향을 주는 커밋으로 필터링

git_diff

두 ref를 비교하고 변경 사항의 구조화된 요약을 얻습니다.

매개변수:

  • repoPath (필수) — Git 저장소의 절대 경로

  • from — 시작 ref (기본값: HEAD~1)

  • to — 끝 ref (기본값: HEAD)

  • path — diff를 특정 파일 또는 디렉터리로 제한

  • summaryOnly — 전체 diff 텍스트 없이 통계만 반환

git_blame

파일의 줄별 작성자를 확인합니다.

매개변수:

  • repoPath (필수) — Git 저장소의 절대 경로

  • filePath (필수) — 저장소 루트 기준 파일 경로

  • startLine / endLine — 특정 줄 범위에 대해 blame

  • ref — 특정 커밋에서 blame 수행

git_stats

저장소 활동에 대한 개괄적인 개요를 얻습니다.

매개변수:

  • repoPath (필수) — Git 저장소의 절대 경로

  • topAuthors — 나열할 상위 기여자 수 (기본값: 10)

  • topFiles — 나열할 가장 많이 변경된 파일 수 (기본값: 10)

git_branch

브랜치를 나열하고 분석합니다.

매개변수:

  • repoPath (필수) — 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