Skip to main content
Glama

Git Prompts MCP Server

by ceshine

GitがMCPサーバーにプロンプトを出す

このリポジトリは、Git リポジトリの内容に基づいてプロンプトを生成するためのいくつかのコマンドを提供するモデル コンテキスト プロトコル (MCP) サーバーを提供します。

(このリポジトリは、MarkItDown MCP サーバーとサンプルGit MCP サーバーから多大なインスピレーションを得ています。)

インストール

手動インストール

  1. このリポジトリをクローンする
  2. 依存関係をインストール: uv sync --frozen

使用法

Zed EditorのMCPサーバーとして

次の内容をsettings.jsonに追加します。

"context_servers": { "git_prompt_mcp": { "command": { "path": "uv", "args": [ "--directory", "/path/to/local/git_prompts_mcp_server", "run", "git-prompts-mcp-server", "/path/to/repo/", // parent folder of the .git directory "--excludes", // exclude files and directories from diff results "**/uv.lock", "--excludes", "**/.gitignore", "--format", // format for diff results "json" // options: json, text ] }, "settings": {} } }
コマンド

サーバーは次のコマンドに応答します。

  1. /git-diff <ancestor_branch_or_commit> : HEAD と指定された祖先ブランチまたはコミット間の diff 結果を入力します。
  2. /generate-pr-desc <ancestor_branch_or_commit> : HEAD と指定された祖先ブランチまたはコミット間の diff 結果に基づいて、プル リクエストの説明を生成します。
  • 注: これは/git-diffとほぼ同じですが、出力の最後にプル リクエストの説明を生成するための手順が含まれています。
  1. /git-cached-diff : ステージングされた変更と HEAD の diff 結果を入力します。

例:

  1. /generate-pr-desc main
  2. /git-diff dev
  3. /git-cached-diff

ライセンス

MITライセンス。詳細はライセンスを参照してください。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

差分から PR の説明を生成するコマンドを含む、Git リポジトリの内容に基づいてプロンプトを生成するモデル コンテキスト プロトコル サーバー。

  1. インストール
    1. 手動インストール
  2. 使用法
    1. Zed EditorのMCPサーバーとして
  3. ライセンス

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      A 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 -
      12
      54,999
      JavaScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server for creating commit messages from git staged files.
      Last updated -
      2
      1
      TypeScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      A 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 -
      21
      584
      84
      TypeScript
      Apache 2.0
    • A
      security
      F
      license
      A
      quality
      A Model Context Protocol server that automatically generates structured release notes from Git repository tags, analyzing differences between tags and saving formatted Markdown output to the .iris directory.
      Last updated -
      1
      0
      JavaScript

    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/ceshine/git-prompts-mcp-server'

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