Skip to main content
Glama

git-commit-aider MCP Server

by MrOrz

git-commit-aider MCP サーバー

AI に代わって Git コミットを実行し、コードベースでの AI の貢献を追跡できるようにします。

これは、コミッターの名前に「(aider)」を追加しながら、Git リポジトリ内のステージングされた変更をコミットするためのツールを提供する、TypeScript ベースの MCP サーバーです。

特徴

この MCP サーバーは、次の 1 つのツールのみを提供します。

commit_staged - 特定のメッセージでステージングされた変更をコミットします。

  • コミット メッセージとしてmessage (文字列、必須) を受け取ります。
  • cwd (文字列、オプション) を受け取り、git コマンドの作業ディレクトリを指定します。
  • コミッター名に「(aider)」を自動的に追加します。
  • 設定されている場合、環境変数 ( GIT_COMMITTER_NAMEGIT_COMMITTER_EMAIL ) からコミッター名とメールを読み取ります。設定されていない場合は、 git config user.namegit config user.emailにフォールバックします。

このツールをコード エディターにインストールすると、次のような指示を AI に出すことができます。

変更をコミットする

これは通常、AI がコードベースに何らかの変更を加えた後に発生するため、多くの場合、AI はコンテキストから適切なコミット メッセージを提供できます。

「(aider)」を含むコミットは、 aider --statsコマンドで取得でき、コードベースにおける AI の貢献が表示されます。

インストール

このサーバーを使用するには、その構成を MCP 設定ファイルに追加します。

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

コミッター情報は以下から取得されます:

  1. 環境変数GIT_COMMITTER_NAMEGIT_COMMITTER_EMAILは、 git の規則に従います。
  2. git config user.nameおよびgit config user.emailコマンドの出力。

発達

依存関係をインストールします:

npm install

サーバーを構築します。

npm run build

自動リビルドを使用した開発の場合:

npm run watch

サンプル MCP 構成:

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

( /path/to/git-commit-aiderこのサーバー ディレクトリへの実際のパスに置き換えます。)

デバッグ

MCPサーバーはstdio経由で通信するため、デバッグが困難になる場合があります。パッケージスクリプトとして提供されているMCP Inspectorの使用をお勧めします。

npm run inspector

インスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。

You must be authenticated.

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

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

コミッターの名前に「(aider)」を追加して AI に代わって Git コミットを実行し、コードベースでの AI の貢献を追跡できるようにします。

  1. 特徴
    1. インストール
      1. 発達
        1. デバッグ

          Related MCP Servers

          • 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
            34
            33
            TypeScript
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables 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 -
            3
            2
            JavaScript
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/MrOrz/mcp-git-commit-aider'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server