git-commit-aider MCP Server
@MrOrz
A simple MCP server that makes git commits on behave of AI, so that you can track AI contribution in your codebase
Overview
What is git-commit-aider MCP Server?
A TypeScript-based MCP server that provides a tool to commit staged changes in a Git repository while appending "(aider)" to the committer's name. It helps track AI contributions in a codebase.
How to use git-commit-aider MCP Server?
Add its configuration to your MCP settings file, specifying the path to the built index.js. Use the commit_staged tool with a required message parameter and an optional cwd parameter for the working directory.
Key features of git-commit-aider MCP Server
- Provides a
commit_stagedtool to commit staged changes. - Automatically appends "(aider)" to the committer name.
- Supports an optional
cwdparameter for the working directory. - Reads
GIT_COMMITTER_NAMEandGIT_COMMITTER_EMAILenvironment variables. - Falls back to Git config for name and email.
- Built with TypeScript for the Model Context Protocol.
Use cases of git-commit-aider MCP Server
- Automatically tag AI-made commits with "(aider)".
- Track AI contributions in a Git codebase.
- Integrate with MCP-enabled clients to commit changes.
- Ensure proper attribution for AI-assisted development.
FAQ from git-commit-aider MCP Server
What tool does this server provide?
It provides the commit_staged tool, which commits staged changes with a given message.
How do I set the committer name and email?
Set the GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL environment variables in the server configuration. If unset, the server falls back to Git's user.name and user.email.
What happens to the committer name?
"(aider)" is appended to the committer name automatically for every commit made with this tool.
How do I debug this server?
Debug over stdio using the MCP Inspector, available via npm run inspector in the project directory.
What runtime is required?
Node.js is required; the server is compiled to JavaScript (index.js) and run with the node command.