What does `commit_staged` actually do?
It commits all staged changes in the repository with the provided message and modifies the committer name to include "(aider)".
@MrOrz
Basic information
A simple MCP server that makes git commits on behave of AI, so that you can track AI contribution in your codebase
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"git-commit-aider": {
"command": "npx",
"args": [
"mcp-git-commit-aider"
]
}
}
}Commit staged changes with a specific message, appending "(aider)" to the committer name.
This server provides an MCP tool to commit staged Git changes while automatically appending "(aider)" to the committer name. It is intended for developers who want to clearly attribute AI‑generated commits in their codebase.
Add the server configuration to your MCP settings file using npx mcp-git-commit-aider. Once installed, invoke the commit_staged tool with a required commit message and an optional cwd parameter to specify the working directory. The server reads committer information from GIT_COMMITTER_NAME/GIT_COMMITTER_EMAIL environment variables or falls back to git config values.
commit_staged with a required message string.cwd path for the git working directory.aider --stats for contribution analysis.It commits all staged changes in the repository with the provided message and modifies the committer name to include "(aider)".
First, the server checks the environment variables `GIT_COMMITTER_NAME` and `GIT_COMMITTER_EMAIL`. If those are not set, it falls back to the output of `git config user.name` and `git config user.email`.
You can use the `aider --stats` command (from the Aider‑AI project) or run the shell script provided in the README. The script parses `git log --numstat` over a revision range and outputs a JSON report of added/deleted lines per author, identifying AI commits by the "(aider)" marker.
Yes. You can commit normally and then run `git commit --amend --author="$(git config user.name) (aider) <$(git config user.email)>"` to manually add the "(aider)" marker. A git alias (`git aimend`) can simplify this process.
MCP server for getting github trending repos & developers
A Cloudflare-powered MCP (Model Context Protocol) Server that allows you to search and query your GitHub starred repositories using natural language.
a mcp server to manage github project's functionality
Learn how to use MCP Servers with GitHub Copilot
Interact seamlessly with GitLab repositories to manage merge requests and issues. Fetch details, add comments, and streamline your code review process with ease.
Comments