- Home
- MCP servers
- Auto-commit
Auto-commit
- typescript
13
GitHub Stars
typescript
Language
6 months ago
First Indexed
2 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"hypermodel-labs-mcp-server-auto-commit": {
"command": "node",
"args": [
"ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js",
"--key",
"your-api-key"
],
"env": {
"OPENAI_API_KEY": "YOUR_API_KEY"
}
}
}
}You run a server that analyzes Git repository changes and automatically generates conventional commit messages using GPT models, then commits them with an auto-signature. This helps you keep your project history clear, consistent, and well-documented without manual drafting of each commit message.
How to use
You will deploy a local MCP server and connect it to an MCP client. Once connected, the server analyzes current repository changes (staged and unstaged), generates a conventional commit message using GPT-4o-mini, and applies the commit with an auto-signature. You can use this workflow to enforce consistent commit messages across your team and improve changelog quality.
How to install
Prerequisites you need before installation:
Step-by-step setup
Clone the project repository and move into its directory.
git clone https://github.com/jatinsandilya/mcp-server-auto-commit.git
cd mcp-server-auto-commit
Install dependencies using pnpm.
pnpm install
Provide your OpenAI API key. You can set it as an environment variable or pass it as a command-line argument when starting the server.
export OPENAI_API_KEY=your-api-key
Build the MCP server so you have a runnable script.
pnpm run build
Run the MCP server locally. Use the absolute path to the built script and include your API key if not set in the environment.
node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key
Connecting your MCP client
In your MCP client, configure a new MCP server with the following settings to point to your local server and enable the auto-commit workflow.
{
"mcpServers": {
"git_auto_commit": {
"command": "node",
"args": ["ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js", "--key", "your-api-key"]
}
}
}
Available tools
git-changes-commit-message
Analyzes current git changes (staged and unstaged), lists modified/new/deleted files, shows up to 10 lines of detailed changes per file, and generates a conventional commit message using GPT-4o-mini, including an auto-commit signature.