MCP ExplorerExplorer

Git Prompts Mcp Server

@ceshineon a year ago
1 MIT
FreeCommunity
AI Systems
A MCP server that offers several commands to generate prompts based on the Git repository's content

Overview

What is Git Prompts Mcp Server

git-prompts-mcp-server is a Model Context Protocol (MCP) server that generates prompts based on the content of a Git repository.

Use cases

Use cases include generating pull request descriptions to streamline code reviews, automating documentation generation based on repository changes, and enhancing developer productivity by providing context-aware prompts.

How to use

To use git-prompts-mcp-server, clone the repository, install dependencies, and configure it in your Zed Editor’s settings.json file. You can then use commands like ‘/generate-pr-desc <ancestor_branch_or_commit>’ to generate pull request descriptions.

Key features

Key features include the ability to generate PR descriptions based on diffs, support for JSON and text output formats, and customizable exclusion patterns for files and directories.

Where to use

git-prompts-mcp-server is primarily used in software development environments where Git is utilized for version control, particularly in collaborative projects.

Content

Git Prompts MCP Server

This repository provides a Model Context Protocol (MCP) server that offers several commands to generate prompts based on the Git repository’s content.

(This repository draws heavy inspiration from MarkItDown MCP server and the example Git MCP server.)

Installation

Manual Installation

  1. Clone this repository
  2. Install dependencies: uv sync --frozen

Usage

As a MCP Server for Zed Editor

Add the following to your settings.json:

Commands

The server responds to the following commands:

  1. /git-diff <ancestor_branch_or_commit>: Populate the diff results between HEAD and the specified ancestor branch or commit.
  2. /generate-pr-desc <ancestor_branch_or_commit>: Generate a pull request description based on the diff results between HEAD and the specified ancestor branch or commit.
  • Note: This is largely the same as /git-diff, but it includes instructions for generating a pull request description at the end of the output.
  1. /git-cached-diff: Populate the diff results for the staged changes and HEAD.

Examples:

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

License

MIT License. See LICENSE for details.

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers