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 を提供します。
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
- 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 -191PythonMIT License
- -securityFlicense-qualityA custom server implementation that allows AI assistants to interact with GitLab repositories, providing capabilities for searching, fetching files, creating/updating content, and managing issues and merge requests.Last updated -JavaScript
- -securityFlicense-qualityA set of tools allowing AI assistants to interact directly with GitHub, enabling automation of tasks like fetching user profiles, creating repositories, and managing pull requests.Last updated -Python
- AsecurityAlicenseAqualityProvides comprehensive Git operations as tools for AI assistants and applications. This server enables AI systems to interact with Git repositories, allowing to initialize, fetch, commit, log, status, etc..Last updated -100TypeScriptMIT License