mcp-git-tools
mcp-git-tools
AI 에이전트를 위한 Git 저장소 분석 도구로, MCP(Model Context Protocol)를 통해 제공됩니다. GitHub API 없이 네이티브 git 명령어를 사용하여 로컬 저장소를 분석합니다.
도구
도구 | 설명 |
| 작성자, 날짜 범위, 파일 경로로 필터링하여 커밋 기록을 가져옵니다 |
| 변경 요약과 함께 커밋, 브랜치, 태그 간의 diff를 보여줍니다 |
| 커밋 정보와 함께 파일의 각 줄을 마지막으로 수정한 사람을 보여줍니다 |
| 저장소 통계: 커밋, 기여자, 기간별 활동, 가장 많이 변경된 파일 |
| 마지막 커밋 정보, 앞/뒤 커밋 수, 병합/미병합 상태와 함께 브랜치를 나열합니다 |
Related MCP server: Git MCP Server
사전 요구 사항
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Plain-English git for agents: 22 tools to branch, commit, push and tag. Free tier.
Git-backed platform for skills, tools, and context for AI agents
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
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 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.10ISC
- FlicenseNot gradedqualityDmaintenanceEnables analysis of local Git repositories via standard git commands, providing insights like line authorship, commit frequency, code churn, and co-changed files.-
- AlicenseBqualityDmaintenanceEnables AI agents to read git commits from local repositories and generate beautifully formatted, categorized changelogs.26 npmMIT