MCP.so
登录

MCP Server to Auto commit changes 🛠️

@MCP-Mirror

关于 MCP Server to Auto commit changes 🛠️

Mirror of

基本信息

分类

版本控制

许可证

MIT license

运行时

node

传输方式

stdio

发布者

MCP-Mirror

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is MCP Server to Auto commit changes 🛠️?

MCP Server to Auto commit changes 🛠️ is an MCP (Model Context Protocol) server that analyzes Git changes in a repository and generates commit messages using OpenAI’s GPT-4o-mini model. It is built with the @modelcontextprotocol/sdk and is intended for developers who want automated, conventional commit messages.

How to use MCP Server to Auto commit changes 🛠️?

Clone the repository, install dependencies with pnpm, set your OpenAI API key (via environment variable, command‑line argument, or .env file), and build the project. Then configure the server in Cursor or Claude Desktop using the compiled build/index.js script, passing your API key. The tool git-changes-commit-message analyzes changes and produces a commit message.

Key features of MCP Server to Auto commit changes 🛠️

  • Analyzes staged and unstaged Git changes
  • Generates conventional commit messages using GPT‑4o-mini
  • Shows modified, added, and deleted files
  • Displays up to 10 lines of detailed changes per file
  • Supports optional custom path for analysis
  • Adds an auto‑commit signature to each commit

Use cases of MCP Server to Auto commit changes 🛠️

  • Automating commit message generation for Git workflows
  • Getting a structured summary of changes before committing
  • Integrating with AI‑powered assistants via MCP (Cursor, Claude Desktop)
  • Reducing manual effort in writing conventional commit messages

FAQ from MCP Server to Auto commit changes 🛠️

What prerequisites are needed to run the server?

Node.js, an OpenAI API key, a Git repository to analyze, and the pnpm package manager are required.

How can I provide my OpenAI API key?

It can be set as the environment variable OPENAI_API_KEY, passed as a command‑line argument --key your-api-key, or added to a .env file in the project root.

How do I configure the server with Cursor or Claude Desktop?

For Cursor, add an MCP server with type “command” and the command node ABSOLUTE_PATH/build/index.js --key your-api-key. For Claude Desktop, add a similar entry in the mcpServers JSON configuration.

What information does the git-changes-commit-message tool return?

It returns a list of modified, added, and deleted files, detailed changes (up to 10 lines per file), a conventional commit message, and an auto‑commit signature.

Are there any limits on the change details shown?

Yes, the tool limits detailed changes to 10 lines per file for readability.

评论

版本控制 分类下的更多 MCP 服务器