GitがMCPサーバーにプロンプトを出す
このリポジトリは、Git リポジトリの内容に基づいてプロンプトを生成するためのいくつかのコマンドを提供するモデル コンテキスト プロトコル (MCP) サーバーを提供します。
(このリポジトリは、MarkItDown MCP サーバーとサンプルGit MCP サーバーから多大なインスピレーションを得ています。)
インストール
手動インストール
このリポジトリをクローンする
依存関係をインストール:
uv sync --frozen
使用法
Zed EditorのMCPサーバーとして
次の内容をsettings.json
に追加します。
コマンド
サーバーは次のコマンドに応答します。
/git-diff <ancestor_branch_or_commit>
: HEAD と指定された祖先ブランチまたはコミット間の diff 結果を入力します。/generate-pr-desc <ancestor_branch_or_commit>
: HEAD と指定された祖先ブランチまたはコミット間の diff 結果に基づいて、プル リクエストの説明を生成します。
注: これは
/git-diff
とほぼ同じですが、出力の最後にプル リクエストの説明を生成するための手順が含まれています。
/git-cached-diff
: ステージングされた変更と HEAD の diff 結果を入力します。
例:
/generate-pr-desc main
/git-diff dev
/git-cached-diff
ライセンス
MITライセンス。詳細はライセンスを参照してください。
local-only server
The server can only run on the client's local machine because it depends on local resources.
差分から PR の説明を生成するコマンドを含む、Git リポジトリの内容に基づいてプロンプトを生成するモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server for Git repository interaction and automation. This server provides tools to read, search, and manipulate Git repositories via Large Language Models.Last updated -1370,957MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables Large Language Models to interact with Git repositories through a robust API, supporting operations like repository initialization, cloning, file staging, committing, and branch management.Last updated -2,311136Apache 2.0
- AsecurityAlicenseAqualityA flexible Model Context Protocol server that makes documentation or codebases searchable by AI assistants, allowing users to chat with code or docs by simply pointing to a git repository or folder.Last updated -11761MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides specialized prompt suggestions for backend development, frontend development, and general tasks to help LLMs generate better content.Last updated -631