A
securityA
licenseA
qualityA Model Context Protocol server for creating commit messages from git staged files.
Last updated -
2
1
TypeScript
MIT License
此实现提供了一个 Git 更改分析器,它使用 OpenAI 的 GPT 模型生成提交消息。
OPENAI_API_KEY=your-api-key
--key your-api-key
.env
文件这将生成/build/index.js
文件 - 已编译的 MCP 服务器脚本。
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key
(如果环境中未设置,请将your-api-key
替换为您的实际 OpenAI API 密钥)将以下 MCP 配置添加到您的 Claude Desktop 配置中:
此工具会分析存储库中当前的 git 更改,并使用 OpenAI 的 GPT-4o-mini 模型生成提交消息。它提供以下功能:
使用参数:
autoCommitPath
:用于分析特定目录/文件的可选路径。如果未提供,则使用当前工作目录。index.ts
中的实现展示:
要修改或扩展实施:
index.ts
中的服务器配置:server.tool()
定义,并使用 Zod 模式进行适当的参数验证。请随时提交问题和增强请求!
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
分析存储库中的 git 更改并使用 OpenAI 的 GPT 模型生成常规提交消息,支持暂存和非暂存更改以及详细摘要。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jatinsandilya/mcp-server-auto-commit'
If you have feedback or need assistance with the MCP directory API, please join our Discord server