git-commit-aider MCP サーバー
AI に代わって Git コミットを実行し、コードベースでの AI の貢献を追跡できるようにします。
これは、コミッターの名前に「(aider)」を追加しながら、Git リポジトリ内のステージングされた変更をコミットするためのツールを提供する、TypeScript ベースの MCP サーバーです。
特徴
この MCP サーバーは、次の 1 つのツールのみを提供します。
commit_staged
- 特定のメッセージでステージングされた変更をコミットします。
- コミット メッセージとして
message
(文字列、必須) を受け取ります。 cwd
(文字列、オプション) を受け取り、git コマンドの作業ディレクトリを指定します。- コミッター名に「(aider)」を自動的に追加します。
- 設定されている場合、環境変数 (
GIT_COMMITTER_NAME
、GIT_COMMITTER_EMAIL
) からコミッター名とメールを読み取ります。設定されていない場合は、git config user.name
とgit config user.email
にフォールバックします。
このツールをコード エディターにインストールすると、次のような指示を AI に出すことができます。
変更をコミットする
これは通常、AI がコードベースに何らかの変更を加えた後に発生するため、多くの場合、AI はコンテキストから適切なコミット メッセージを提供できます。
「(aider)」を含むコミットは、 aider --stats
コマンドで取得でき、コードベースにおける AI の貢献が表示されます。
インストール
このサーバーを使用するには、その構成を MCP 設定ファイルに追加します。
コミッター情報は以下から取得されます:
- 環境変数
GIT_COMMITTER_NAME
とGIT_COMMITTER_EMAIL
は、 git の規則に従います。 git config user.name
およびgit config user.email
コマンドの出力。
発達
依存関係をインストールします:
サーバーを構築します。
自動リビルドを使用した開発の場合:
サンプル MCP 構成:
( /path/to/git-commit-aider
このサーバー ディレクトリへの実際のパスに置き換えます。)
デバッグ
MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。
インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Tools
コミッターの名前に「(aider)」を追加して AI に代わって Git コミットを実行し、コードベースでの AI の貢献を追跡できるようにします。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityThe 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 -21554TypeScript
- AsecurityAlicenseAqualityEnables 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 -19PythonMIT License
- AsecurityFlicenseAqualityAn 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 -93433TypeScript
- AsecurityAlicenseAqualityEnables AI models to access GitHub repository contents as context, with features to fetch entire repositories, specific file contents, and repository structures for use in AI interactions.Last updated -32JavaScriptMIT License