MCP.so
Sign In

MCP Server to Auto commit changes ๐Ÿ› ๏ธ

@jatinsandilya

About MCP Server to Auto commit changes ๐Ÿ› ๏ธ

An mcp server that auto commits changes and creates commit message in the form of conventional commits (https://www.conventionalcommits.org/en/v1.0.0/)

Basic information

Category

Version Control

License

MIT

Runtime

node

Transports

stdio

Publisher

jatinsandilya

Config

No standard config provided

This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.

Repository

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Server to Auto commit changes ๐Ÿ› ๏ธ?

This server analyzes both staged and unstaged git changes in a repository and generates conventional commit messages using OpenAI's GPT-4o-mini model. It is built with the Model Context Protocol SDK and is designed for developers using AI assistants such as Claude Desktop or Cursor.

How to use MCP Server to Auto commit changes ๐Ÿ› ๏ธ?

Install dependencies with pnpm, set the OpenAI API key (via environment variable, command line argument, or .env file), and build the project with pnpm run build. Then configure an MCP client (e.g., Cursor or Claude Desktop) to run node ABSOLUTE_PATH_TO_MCP_SERVER/build/index.js --key your-api-key and invoke the git-changes-commit-message tool with an optional autoCommitPath parameter.

Key features of MCP Server to Auto commit changes ๐Ÿ› ๏ธ

  • Analyzes both staged and unstaged git changes
  • Generates conventional commit messages using GPT-4o-mini
  • Provides summaries of modified, added, and deleted files
  • Shows detailed changes up to 10 lines per file
  • Adds an auto-commit signature to each commit
  • Built with the official Model Context Protocol SDK

Use cases of MCP Server to Auto commit changes ๐Ÿ› ๏ธ

  • Automating commit message generation from git diffs
  • Integrating with Claude Desktop for AI-assisted commits
  • Using Cursor's MCP support to auto-commit changes
  • Standardizing commit messages with conventional commits format

FAQ from MCP Server to Auto commit changes ๐Ÿ› ๏ธ

What dependencies are required?

Node.js, pnpm, an OpenAI API key, and a Git repository.

How do I pass the OpenAI API key?

You can set it as an environment variable (OPENAI_API_KEY), pass it as a command line argument (--key your-api-key), or add it to a .env file in the project root.

What model is used for generating commit messages?

The server uses OpenAI's GPT-4o-mini model.

What transport or authentication does the server use?

The server uses the Model Context Protocol's standard command/stdio transport. Authentication is handled via the OpenAI API key.

Can I specify a custom path for analysis?

Yes, the git-changes-commit-message tool accepts an optional autoCommitPath parameter to analyze a specific directory or file; otherwise it uses the current working directory.

Comments

More Version Control MCP servers