Git提交消息生成器

一个分析Git变更并自动生成提交消息的工具,支持自动提交到GitHub。

  • by BirajMainali
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 birajmainali/git-committer-mcp-server

使用说明

MCP服务器生成提交或免费!!

此实现提供了一个Git更改分析器,可以生成提交消息并免费提交所有内容。

特性

  • 分析存储库中的git更改(分阶段和非分阶段)
  • 将更改提交到github

项目结构

git-committer-mcp-server/
├── index.ts        
├── package.json    
├── tsconfig.json   
└── build/         

先决条件

  • 已安装Node.js
  • 要分析的Git存储库
  • pnpm包管理器

入门指南

  1. 克隆此存储库:
git clone https://github.com/BirajMainali/git-committer-mcp-server.git
cd git-committer-mcp-server
  1. 安装依赖项:
pnpm install
  1. 构建项目:
pnpm run build

这将生成 /build/index.js file-您编译的MCP服务器脚本。

与光标一起使用

  1. 转到光标设置->MCP->添加新的MCP服务器
  2. 配置您的MCP:
    • 名称:git提交器mcp服务器
    • 类型:命令
    • 命令:`node CLONED_FULL_PATH/build/index.js

与Claude Desktop一起使用

将以下MCP配置添加到您的Claude Desktop配置中:

{
  "mcpServers": {
    "git-commit-generator": {
      "command": "node",
      "args": [
        "C:\\MCP\\git-commit-generator-mcp\\build\\index.js"
      ],
      "env": {
        "REPOSITORY_PATH": "C:\\MCP\\portainer-ce-mcp"
      }
    }
  }
}

贡献

请随时提交问题和增强请求!

许可证

麻省理工学院