mcp-git-assistant
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-git-assistant帮我生成一个commit message"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
# MCP Git Assistant
一个基于 MCP (Model Context Protocol) 协议开发的 Git 智能助手工具。
帮助开发者通过 AI 智能生成 commit message、建议分支命名、分析分支状态等。
功能特性
自动生成符合 Conventional Commits 规范的 commit message
基于任务描述智能建议分支命名
分析分支状态与主分支差异
查看 git status / diff / log 等常用命令输出
Related MCP server: Git Commit MCP Server
安装
pip install -r requirements.txt在 Trae IDE 中配置使用
打开 Trae IDE 设置
搜索 "MCP" 配置项
添加本地 MCP Server 配置:
{
"mcpServers": {
"git-assistant": {
"command": "python",
"args": ["-u", "D:/work/AI Agent/mcp-git-assistant/server.py"]
}
}
}重启 Trae IDE
可用工具
工具 | 描述 |
| 查看当前 Git 仓库状态 |
| 获取代码变更 diff 内容 |
| 查看最近的提交历史 |
| 基于代码变更自动生成 Commit Message |
| 基于任务描述建议分支命名 |
| 分析当前分支状态与主分支差异 |
使用示例
生成 Commit Message
在你的项目中修改一些代码
在聊天中说:"帮我生成 commit message"
AI 会自动调用工具分析你的代码变更
选择合适的方案执行
git commit
建议分支命名
在聊天中说:"新增用户登录功能,帮我起个分支名"
获取建议的分支名列表
分支分析
在聊天中说:"分析一下当前分支状态"
获得分支差异报告和操作建议
技术栈
Python 3.9+
MCP SDK (Model Context Protocol)
开发
# 安装依赖
pip install -r requirements.txt
# 运行测试
python server.pyLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Plan Salesforce deploys, open pull requests and trigger pipelines from your AI client.
- 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.
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.-
- AlicenseAqualityDmaintenanceEnables AI assistants to create conventional Git commits, update changelogs, and optionally push changes to remote repositories.22MIT
- AlicenseAqualityCmaintenanceEnables local git operations including commit, branch, push, pull, status, and sync with conventional commit enforcement and branch naming conventions.6MIT

Gitrama MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceProvides 15 MCP tools for AI-powered Git intelligence, enabling commit messages, branch creation, PR descriptions, code review, diff analysis, and push operations directly from your AI assistant.MIT