Analyzes git changes, writes a conventional-commit message with an OpenAI model and commits the changes.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
claude mcp add auto-commit -- node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key~/.codex/config.toml
[mcp_servers.auto-commit]
command = "node"
args = ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js", "--key", "your-api-key"]
# codex mcp add auto-commit -- node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key~/.cursor/mcp.json
{
"mcpServers": {
"auto-commit": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
]
}
}
}.vscode/mcp.json
{
"servers": {
"auto-commit": {
"type": "stdio",
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"auto-commit": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"auto-commit": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"auto-commit": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
]
}
}
}