git-enhanced MCP server
✓ 인증됨코드 리뷰, 커밋 분석, 브랜치 관리 및 저장소 정리를 위해 AI 어시스턴트에게 구조화된 Git 컨텍스트를 제공합니다.
다른 이름 davidweb3-ctrl/mcp-git-enhanced, mcp-git-enhanced, @davidweb3-ctrl/mcp-git-enhanced
- 스타
- 1
- Tools
- 5
- 다운로드, 30일
- 224
- 최신 버전
- 1.0.1
- 마지막 커밋
- 2026년 6월 2일
- 라이선스
- MIT
git-enhanced MCP란?
코드 리뷰, 커밋 분석, 브랜치 관리 및 저장소 정리를 위해 AI 어시스턴트에게 구조화된 Git 컨텍스트를 제공합니다. 5개 도구를 제공합니다. 예: git_diff, git_log, git_branch.
프로젝트 README에서 생성된 요약
git-enhanced MCP server 정보
git-enhanced의 주요 기능은 오픈소스 메인테이너의 저장소 관리를 돕는 것입니다. AI 코딩 어시스턴트가 광범위한 shell 명령어를 직접 실행할 필요 없이 코드 리뷰, 커밋 분석, 브랜치 관리와 같은 작업을 수행할 수 있도록 구조화된 Git 컨텍스트를 제공합니다. 이 server는 로컬 저장소를 위해 설계되었으며, push나 rebase와 같은 파괴적인 작업을 피하는 읽기 중심의 조사 도구로 작동합니다.
개발자는 Node.js를 사용하여 로컬에 server를 설정할 수 있으며, Claude Code와 같은 MCP client가 컴파일된 index 파일을 가리키도록 설정하면 됩니다. 도구 모음에는 변경 사항 분석을 위한 git_diff, 작성자나 날짜 필터를 사용하여 히스토리를 검토하는 git_log, 스테이징되었거나 추적되지 않은 파일을 확인하는 git_status와 같은 특정 명령어가 포함되어 있습니다. 또한 브랜치를 비교하는 git_branch와 특정 커밋의 메타데이터 및 통계를 조사하는 git_commit_analyze 기능도 제공합니다.
이러한 특화된 도구를 사용하면 메인테이너는 저장소 정리 및 릴리스 준비 작업을 자동화할 수 있습니다. 이 server는 spawnSync를 통해 고정된 서브 명령어를 실행하고, 실행 전 제공된 저장소 경로가 유효한 Git 저장소인지 검증하여 보안을 보장합니다.
활용 사례
- 1Pull Request 리뷰 수행어시스턴트에게 브랜치를 master와 비교하고 diff를 사용하여 위험한 파일을 식별하도록 요청합니다.
- 2릴리스 노트 준비통계 출력이 포함된 커밋 히스토리를 검토하여 사용자에게 보이는 변경 사항을 식별합니다.
- 3저장소 정리 유지 관리릴리스 후 정리가 필요한 브랜치를 찾아 제안합니다.
- 4최근 코드 변경 사항 조사소스 디렉토리 내의 특정 파일을 수정한 최근 커밋을 찾습니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
git-enhanced MCP 설치 방법
형식 확인: 2026년 11월 10일Cursor에 추가Goose에 추가Claude Code에 git-enhanced MCP 설치
$ claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced -- npx -y @davidweb3-ctrl/mcp-git-enhancedCursor에 git-enhanced MCP 설치
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS Code에 git-enhanced MCP 설치
.vscode/mcp.json
{
"servers": {
"mcp-git-enhanced": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}VS Code CLI에 git-enhanced MCP 설치
$ code --add-mcp '{"name":"mcp-git-enhanced","type":"stdio","command":"npx","args":["-y","@davidweb3-ctrl/mcp-git-enhanced"],"env":{"YOUR_API_KEY":"<YOUR_YOUR_API_KEY>"}}'Claude Desktop에 git-enhanced MCP 설치
claude_desktop_config.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}Codex에 git-enhanced MCP 설치
$ codex mcp add mcp-git-enhanced --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' -- npx -y @davidweb3-ctrl/mcp-git-enhancedCodex config.toml에 git-enhanced MCP 설치
~/.codex/config.toml
[mcp_servers.mcp-git-enhanced] command = "npx" args = ["-y", "@davidweb3-ctrl/mcp-git-enhanced"] [mcp_servers.mcp-git-enhanced.env] YOUR_API_KEY = "<YOUR_YOUR_API_KEY>"
Gemini CLI에 git-enhanced MCP 설치
$ gemini mcp add -s user -e 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced npx -- -y @davidweb3-ctrl/mcp-git-enhancedGemini settings.json에 git-enhanced MCP 설치
~/.gemini/settings.json
{
"mcpServers": {
"mcp-git-enhanced": {
"command": "npx",
"args": [
"-y",
"@davidweb3-ctrl/mcp-git-enhanced"
],
"env": {
"YOUR_API_KEY": "<YOUR_YOUR_API_KEY>"
}
}
}
}git-enhanced MCP 도구 5
README에서 감지됨git_diffgit_loggit_branchgit_statusgit_commit_analyze
| git_diff | — | |
| git_log | — | |
| git_branch | — | |
| git_status | — | |
| git_commit_analyze | — |
구성
YOUR_API_KEY필수비밀Your API key for the service
| 이름 | 설명 | 유형 |
|---|---|---|
| YOUR_API_KEY | Your API key for the service | 필수비밀 |
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 이는 보안 감사가 아닙니다. 코드를 직접 읽고 서버에 필요한 최소한의 권한만 부여하십시오. 검사 방식
- 소스 저장소 연결 및 접근 가능davidweb3-ctrl/mcp-git-enhanced is public and reachablegithub.com/davidweb3-ctrl/mcp-git-enhanced ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)No build attestation published for this release검사되지 않음
- 오픈 소스 라이선스 (OSI)MITspdx.org/licenses/MIT.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-06-02github.com/davidweb3-ctrl/mcp-git-enhanced ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음No popular package one edit away from @davidweb3-ctrl/mcp-git-enhanced통과
- 패키지 및 해당 종속성에 중요한 보안 권고 없음99 resolved dependencies checked; no critical advisoryosv.dev ↗통과
- 모델에 대한 숨겨진 지침 없음5 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨No tool named like delete, drop or exec통과
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기MCP Git Enhanced
MCP Git Enhanced is a Model Context Protocol server that helps AI coding assistants inspect repository state for day-to-day open-source maintenance.
It gives maintainers structured Git context for code review, commit analysis, branch comparison, and release preparation without asking the assistant to run broad shell commands.
Why Maintainers Use It
Open-source maintainers spend a lot of time answering the same repository questions before they can review or merge work:
- What changed in this branch?
- Which commits matter for the release notes?
- Is this branch behind the base branch?
- What is staged, unstaged, or untracked?
- Which merged or stale branches need cleanup?
This server exposes those workflows as focused MCP tools so assistants can help with PR review, issue triage, release management, and repository hygiene.
Available Tools
| Tool | Purpose |
|---|---|
git_diff |
Analyze working tree, staged, branch, commit, or path-specific diffs. |
git_log |
Review commit history with filters for author, date range, branch, path, and stats. |
git_branch |
List branches, compare a branch to its base, or suggest cleanup candidates. |
git_status |
Summarize staged, unstaged, and untracked repository state. |
git_commit_analyze |
Inspect one commit with metadata, changed files, statistics, and diff output. |
Installation
From Source
git clone https://github.com/davidweb3-ctrl/mcp-git-enhanced.git
cd mcp-git-enhanced
npm install
npm run build
Claude Code Configuration
Use the built server from this repository:
{
"mcpServers": {
"git-enhanced": {
"command": "node",
"args": ["/absolute/path/to/mcp-git-enhanced/dist/index.js"]
}
}
}
Future npm Install
The package is published as @davidweb3-ctrl/mcp-git-enhanced:
npm install -g @davidweb3-ctrl/mcp-git-enhanced
After publication, clients can use:
{
"mcpServers": {
"git-enhanced": {
"command": "npx",
"args": ["@davidweb3-ctrl/mcp-git-enhanced"]
}
}
}
Example Workflows
PR Review
Use git_diff to compare this branch with master and summarize the risky files.
Use git_log to list commits since the last release.
Use git_commit_analyze on the largest commit before I review it.
Issue Triage
Use git_log to find recent commits touching src/tools.ts.
Use git_status to check whether the local reproduction has uncommitted changes.
Release Management
Use git_branch compare against master to prepare release notes.
Use git_log with --stat style output to identify user-visible changes.
Use git_branch suggest_cleanup after the release branch is merged.
Tool Examples
git_diff
{
"repoPath": "/absolute/path/to/repo",
"target": "HEAD~5",
"source": "HEAD~10",
"filePath": "src/",
"staged": false
}
git_log
{
"repoPath": "/absolute/path/to/repo",
"maxCount": 20,
"author": "Maintainer Name",
"since": "1 week ago",
"stat": true
}
git_branch
{
"repoPath": "/absolute/path/to/repo",
"action": "list",
"includeRemote": true
}
{
"repoPath": "/absolute/path/to/repo",
"action": "compare",
"branchName": "feature/pr-review-summary",
"baseBranch": "master"
}
git_status
{
"repoPath": "/absolute/path/to/repo",
"short": false
}
git_commit_analyze
{
"repoPath": "/absolute/path/to/repo",
"commitHash": "abc123"
}
Security Model
MCP Git Enhanced is designed as a read-oriented repository inspection server.
- It runs fixed
gitsubcommands throughspawnSyncwithout shell interpolation. - It does not expose destructive branch deletion, reset, checkout, rebase, push, or force-push tools.
- It validates that
repoPathpoints to a Git repository before executing tool handlers. - It is intended for local repositories controlled by the user or maintainer.
See SECURITY.md for reporting and supported-version details.
Development
npm install
npm run build
npm test
npm run lint
npm run format:check
Project Files
- CONTRIBUTING.md: development setup and contribution process.
- SECURITY.md: vulnerability reporting and trust boundaries.
- ROADMAP.md: planned maintainer workflows and release direction.
- CHANGELOG.md: release notes.
- docs/CODEX_FOR_OSS.md: Codex for Open Source maintenance plan.
Requirements
- Node.js >= 18.0.0
- Git installed and available in
PATH
License
MIT
git-enhanced MCP 질문
git-enhanced MCP를 Claude Code에 추가하려면 어떻게 하나요?
터미널에서 claude mcp add --env 'YOUR_API_KEY=<YOUR_YOUR_API_KEY>' mcp-git-enhanced -- npx -y @davidweb3-ctrl/mcp-git-enhanced를 실행합니다. 모든 프로젝트에서 사용할 수 있게 하려면 --scope user를 추가합니다.
git-enhanced MCP를 Cursor에 추가하려면 어떻게 하나요?
~/.cursor/mcp.json를 열고 mcpServers 아래에 서버를 추가합니다. 위 설치 섹션에 표시된 Cursor 구성을 사용합니다.
git-enhanced MCP는 어떤 도구를 제공하나요?
5개 도구를 제공합니다. 예: git_diff, git_log, git_branch, git_status, git_commit_analyze.
코드 리뷰 시 이 MCP server로 무엇을 할 수 있나요?
어시스턴트가 diff를 분석하고, 커밋 히스토리를 검토하며, 메타데이터와 통계가 포함된 특정 커밋을 조사하여 변경 사항을 요약할 수 있도록 돕습니다.
파괴적인 작업에 사용해도 안전한가요?
아니요, 이 server는 읽기 중심의 조사 도구로 설계되었으며 브랜치 삭제, reset 또는 push와 같은 파괴적인 작업을 수행하는 도구는 제공하지 않습니다.
시스템 요구 사항은 무엇인가요?
Node.js 버전 18.0.0 이상이 필요하며, Git이 설치되어 있고 PATH에서 사용 가능해야 합니다.