git-commit-aider MCP Server

by MrOrz
MIT License
1

Integrations

  • Allows committing staged changes to a Git repository with AI attribution by automatically appending '(aider)' to the committer's name, enabling tracking of AI contributions in codebases.

git-commit-aider MCP Server

Make git commits on behalf of AI, so that you can track AI contribution in your codebase.

This is 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.

Features

This MCP server provides only one tool:

commit_staged - Commit staged changes with a specific message.

  • Takes message (string, required) as the commit message.
  • Takes cwd (string, optional) to specify the working directory for the git command.
  • Appends "(aider)" to the committer name automatically.
  • Reads committer name and email from environment variables (GIT_COMMITTER_NAME, GIT_COMMITTER_EMAIL) if set, otherwise falls back to git config user.name and git config user.email.

With this tool installed in your code editor, you can prompt the AI by something like:

Commit the changes for me

This usually happens after the AI has made some changes to your codebase, so often times AI is able to provide a good commit message from the context.

Commits with "(aider)" can be picked up by aider --stats command, which will show you the contribution of AI in your codebase.

Installation

To use this server, add its configuration to your MCP settings file.

{ "mcpServers": { "git-commit-aider": { "command": "npx", "args": ["mcp-git-commit-aider"] } } }

The committer information is retrieved from:

  1. Environment variables GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL, which follows git's convention.
  2. Output of git config user.name and git config user.email commands.

Development

Install dependencies:

npm install

Build the server:

npm run build

For development with auto-rebuild:

npm run watch

Sample MCP config:

{ "mcpServers": { "git-commit-aider": { "command": "node", "args": [ "/path/to/git-commit-aider/build/index.js" ] } } }

(Replace /path/to/git-commit-aider with the actual path to this server directory.)

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Makes git commits on behalf of AI by appending "(aider)" to the committer's name, allowing tracking of AI contributions in your codebase.

  1. Features
    1. Installation
      1. Development
        1. Debugging

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Enables interaction with GitHub through the GitHub API, supporting file operations, repository management, advanced search, and issue tracking with comprehensive error handling and automatic branch creation.
            Last updated -
            9
            1
            TypeScript
          • A
            security
            F
            license
            A
            quality
            The Git MCP Server allows AI assistants to perform enhanced Git operations via the Model Context Protocol, supporting core Git functions, branch and tag management, GitHub integration, and more.
            Last updated -
            21
            55
            4
            TypeScript
          • A
            security
            A
            license
            A
            quality
            Enables AI assistants to interact with GitHub through the PyGithub library, providing tools for managing issues, repositories, pull requests, and other GitHub operations with intelligent parameter handling and error management.
            Last updated -
            19
            Python
            MIT License
          • A
            security
            F
            license
            A
            quality
            An MCP server that enables AI assistants to manage GitHub Actions workflows by providing tools for listing, viewing, triggering, canceling, and rerunning workflows through the GitHub API.
            Last updated -
            9
            24
            TypeScript
            • Linux
            • Apple

          View all related MCP servers

          ID: zxtlid1j9k