aicommit mcp
](https://smithery.ai/server/@suenot/aicommit-mcp)
用于aicommit的MCP(模型上下文协议)服务器-由AI驱动的git commit消息生成。
概述
此MCP服务器允许AI助手(如Claude)为您的代码更改生成git提交消息。它充当LLM和 aicommit 该工具支持AI驱动的版本控制工作流程。
可用包
此软件包有两个版本:
1.常规版 @suenot/aicommit mcp
需要单独安装aicommit的标准软件包。
📦
2.捆绑版本 @suenot/aicommit mcp捆绑
自动为您安装aicommit的捆绑包。
📦
功能对比
| 功能 | 常规 | 捆绑 |
|---|---|---|
| 生成AI提交消息 | ✅ | ✅ |
| 执行aicommit操作 | ✅ | ✅ |
| 检查git存储库状态 | ✅ | ✅ |
| 查看aicommit提供者 | ✅ | ✅ |
| 自动分段、推、拉 | ✅ | ✅ |
| 自动安装aicommit | ❌ | ✅ |
快速安装指南
常规版本(aicommit单独安装)
# Install aicommit first
npm install -g @suenot/aicommit
# or
cargo install aicommit
# Install the MCP server
npm install -g @suenot/aicommit-mcp捆绑版本(包括aicommit安装)
# Install the bundled MCP server
npm install -g @suenot/aicommit-mcp-bundledDocker安装
您还可以使用Docker运行MCP服务器:
常规版本
# Pull the Docker image
docker pull suenot/aicommit-mcp
# Run the container
docker run -p 8888:8888 -v $(pwd):/workspace --name aicommit-mcp suenot/aicommit-mcp捆绑版本
# Pull the Docker image
docker pull suenot/aicommit-mcp-bundled
# Run the container
docker run -p 8888:8888 -v $(pwd):/workspace --name aicommit-mcp-bundled suenot/aicommit-mcp-bundledSmithery部署
此MCP服务器与Smithery兼容,可以部署到Smithery市场。服务器实现了aicommit工具的“延迟加载”,这意味着:
- 工具列表不需要身份验证或配置
- 只有在实际调用工具时才会检查身份验证和依赖关系
- 服务器支持部署和Smithery web界面中的工具显示
与Smithery合作
# Using the Smithery CLI
npx -y @smithery/cli@latest install @suenot/aicommit-mcp --client claude --config '{}'
# For bundled version
npx -y @smithery/cli@latest install @suenot/aicommit-mcp-bundled --client claude --config '{}'Smithery的本地安装
aicommit MCP服务器的两个版本都支持从Smithery web界面直接安装:
- 访问 史密瑟里
- 出现提示时,单击“继续”
- 选择您的首选客户(Claude、Cursor等)
- 点击“安装服务器”
安装程序将指导您完成整个过程:
- 对于常规版本,您需要单独安装aicommit
- 对于捆绑版本,aicommit将自动安装
本地安装故障排除
如果您遇到“啊哦!此服务器在本地工作得最好…”错误:
- 确保您已安装Node.js 14+
- 使用npm手动安装包:
npm install -g @suenot/aicommit-mcp
# or for bundled version
npm install -g @suenot/aicommit-mcp-bundled- 配置您的MCP客户端(Claude、Cursor等),如助手集成部分所示
助理集成
克劳德桌面
{
"mcpServers": {
"aicommit": {
"command": "npx",
"args": ["-y", "@suenot/aicommit-mcp"]
// For bundled version: "args": ["-y", "@suenot/aicommit-mcp-bundled"]
}
}
}使用Docker
要在Claude Desktop中使用Docker,请将以下内容添加到您的配置中:
{
"mcpServers": {
"aicommit": {
"command": "docker",
"args": ["run", "--rm", "-v", "${workspaceFolder}:/workspace", "suenot/aicommit-mcp"]
// For bundled version: "args": ["run", "--rm", "-v", "${workspaceFolder}:/workspace", "suenot/aicommit-mcp-bundled"]
}
}
}光标
{
"mcpServers": {
"aicommit": {
"command": "npx",
"args": ["-y", "@suenot/aicommit-mcp"]
}
}
}帆板运动
{
"mcpServers": {
"aicommit": {
"command": "npx",
"args": ["-y", "@suenot/aicommit-mcp"]
}
}
}克莱恩
{
"mcpServers": {
"aicommit": {
"command": "npx",
"args": ["-y", "@suenot/aicommit-mcp"]
}
}
}史密瑟里
通过Smithery CLI安装:
# Regular version
npx -y @smithery/cli@latest install @suenot/aicommit-mcp --client claude --config '{}'
# Bundled version
npx -y @smithery/cli@latest install @suenot/aicommit-mcp-bundled --client claude --config '{}'有关每个包的完整文档,请参阅:
许可证
麻省理工学院
