Git Auto Commit MCP Server
MCP 서버에서 변경 사항을 자동으로 커밋합니다. 🛠️
이 구현은 OpenAI의 GPT 모델을 사용하여 커밋 메시지를 생성하는 Git 변경 사항 분석기를 제공합니다.
데모

Related MCP server: git-auto-commit
특징
저장소(스테이징 및 비스테이징 모두)의 git 변경 사항을 분석합니다.
GPT-4o-mini를 사용하여 기존 커밋 메시지를 생성합니다.
다음에 대한 자세한 요약을 제공합니다.
📝 수정된 파일
✨ 새로 추가된 파일
🗑️ 삭제된 파일
📄 자세한 변경 사항(파일당 최대 10줄)
각 커밋에 자동 커밋 서명을 추가합니다.
프로젝트 구조
지엑스피1
필수 조건
Node.js가 설치됨
OpenAI API 키
분석할 Git 저장소
pnpm 패키지 관리자
시작하기
이 저장소를 복제하세요:
git clone https://github.com/jatinsandilya/mcp-server-auto-commit.git
cd mcp-server-auto-commit종속성 설치:
pnpm install다음 방법 중 하나를 사용하여 OpenAI API 키를 설정하세요.
환경 변수로 설정:
OPENAI_API_KEY=your-api-key명령줄 인수로 전달:
--key your-api-key프로젝트 루트의
.env파일에 추가
프로젝트를 빌드하세요:
pnpm run build이렇게 하면 /build/index.js 파일, 즉 컴파일된 MCP 서버 스크립트가 생성됩니다.
커서와 함께 사용
커서 설정 -> MCP -> 새 MCP 서버 추가로 이동하세요.
MCP를 구성하세요:
이름: git-auto-commit
유형: 명령
명령어:
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key(환경에 설정되어 있지 않으면your-api-key실제 OpenAI API 키로 바꾸세요)
Claude Desktop과 함께 사용
다음 MCP 구성을 Claude Desktop 구성에 추가하세요.
{
"mcpServers": {
"git-auto-commit": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js", "--key", "your-api-key"]
}
}
}사용 가능한 도구
git-changes-commit-message
이 도구는 저장소의 현재 Git 변경 사항을 분석하고 OpenAI의 GPT-4o-mini 모델을 사용하여 커밋 메시지를 생성합니다. 다음과 같은 기능을 제공합니다.
상태 표시기가 있는 수정된 파일 목록
새로 추가된 파일 목록
삭제된 파일 목록
각 파일에 대한 자세한 변경 사항(가독성을 위해 파일당 10줄로 제한)
기존 커밋 형식을 따라 생성된 커밋 메시지
자동 커밋 서명
사용 매개변수:
autoCommitPath: 특정 디렉터리/파일을 분석할 선택적 경로입니다. 지정하지 않으면 현재 작업 디렉터리를 사용합니다.
개발
index.ts 의 구현은 다음을 보여줍니다.
적절한 구성으로 MCP 서버 설정
명령줄 인수 및 환경 변수 처리
GPT-4o-mini 모델을 사용하여 OpenAI API와 통합
자식 프로세스를 사용한 Git 작업
오류 처리 및 대체 메커니즘
자세한 변경 분석 및 서식
구현을 수정하거나 확장하려면 다음을 수행하세요.
index.ts에서 서버 구성을 업데이트합니다.
const server = new McpServer({
name: "git-auto-commit",
version: "0.0.1",
});이 도구는 Zod 스키마를 사용하여 적절한 매개변수 검증을 통해
server.tool()사용하여 정의됩니다.변경 사항을 빌드하고 테스트하세요.
pnpm run build기여하다
문제점과 개선 요청을 자유롭게 제출하세요!
특허
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 Connectors
- ShipstarOAuthai.shipstar
Generate changelogs, release emails, help-center articles, banners, and social posts from commits.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Pre-commit code quality guardian. Detects semantic drift in AI-generated code.
Edit your Overleaf LaTeX projects from Claude and ChatGPT; every change is a real Git commit.
Related MCP Servers
- AlicenseAqualityCmaintenanceAutomatically generates conventional commit messages from staged git changes and checks repository status. Analyzes git diffs to create properly formatted commit messages following conventional commit standards.28MIT
- AlicenseNot gradedqualityNot gradedmaintenanceAnalyzes git repository changes to generate conventional commit messages and summaries using OpenAI's GPT-4o-mini. It provides detailed tracking of modified, added, and deleted files to streamline the version control process.5-
- AlicenseAqualityDmaintenanceAnalyzes Git repository changes and generates conventional, context-aware commit messages using the Model Context Protocol.15MIT
- AlicenseAqualityCmaintenanceGenerates commit messages, PR titles and descriptions, and release notes from git changes, with automatic domain detection for appropriate PR templates.10131MIT