mcp-git-tools
mcp-git-tools
AI 에이전트를 위한 Git 저장소 분석 도구로, MCP(Model Context Protocol)를 통해 제공됩니다. GitHub API 없이 네이티브 git 명령어를 사용하여 로컬 저장소를 분석합니다.
도구
도구 | 설명 |
| 작성자, 날짜 범위, 파일 경로로 필터링하여 커밋 기록을 가져옵니다 |
| 변경 요약과 함께 커밋, 브랜치, 태그 간의 diff를 보여줍니다 |
| 커밋 정보와 함께 파일의 각 줄을 마지막으로 수정한 사람을 보여줍니다 |
| 저장소 통계: 커밋, 기여자, 기간별 활동, 가장 많이 변경된 파일 |
| 마지막 커밋 정보, 앞/뒤 커밋 수, 병합/미병합 상태와 함께 브랜치를 나열합니다 |
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— 특정 줄 범위에 대해 blameref— 특정 커밋에서 blame 수행
git_stats
저장소 활동에 대한 개괄적인 개요를 얻습니다.
매개변수:
repoPath(필수) — Git 저장소의 절대 경로topAuthors— 나열할 상위 기여자 수 (기본값: 10)topFiles— 나열할 가장 많이 변경된 파일 수 (기본값: 10)
git_branch
브랜치를 나열하고 분석합니다.
매개변수:
repoPath(필수) — Git 저장소의 절대 경로baseBranch— 비교할 브랜치 (기본값: main 또는 master)includeRemote— 원격 추적 브랜치 포함mergedOnly/unmergedOnly— 병합 상태로 필터링
라이선스
MIT
This server cannot be installed
Maintenance
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
- FlicenseNot gradedqualityNot gradedmaintenanceEnables 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.
- AlicenseBqualityDmaintenanceEnables Git repository interaction and automation via LLMs, providing tools to read, search, and manipulate Git repositories.15159MIT
- FlicenseBqualityDmaintenanceEnables 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.10121
- FlicenseNot gradedqualityBmaintenanceEnables analysis of local Git repositories via standard git commands, providing insights like line authorship, commit frequency, code churn, and co-changed files.
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.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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