mcp-server-auto-commit
This project is a Git changes analyzer that auto-generates commit messages using AI models from OpenAI. It is intended for developers to streamline their workflow by automating the commit message generation process while analyzing staged and unstaged changes in a Git repository.
What is the purpose of the auto-commit signature?
The auto-commit signature is added to each commit to provide traceability and indicate that the commit message was generated automatically by the MCP server.
Can I specify a particular directory or file for analysis?
Yes, you can specify a particular directory or file for analysis using the autoCommitPath
parameter. If not provided, the current working directory is used by default.
What are the prerequisites for using this MCP server?
You need to have Node.js installed, an OpenAI API key, a Git repository to analyze, and the pnpm package manager.
How do I set up the OpenAI API key?
You can set up the OpenAI API key as an environment variable, pass it as a command line argument, or add it to a .env
file in the project root.
What is the maximum number of lines of changes displayed per file?
The tool provides detailed changes for each file, limited to 10 lines per file for readability.