Git Prompts MCP Server logo

Git Prompts MCP Server

by MCP-Mirror

This repository provides a Model Context Protocol (MCP) server that offers commands to generate prompts based on a Git repository's content. It's designed to be used with editors like Zed to enhance code understanding and workflow.

View on GitHub

Last updated: N/A

What is Git Prompts MCP Server?

The Git Prompts MCP Server is a Model Context Protocol server that generates prompts based on the content of a Git repository. It allows users to leverage Git data to create helpful prompts for tasks like generating PR descriptions.

How to use Git Prompts MCP Server?

To use this server, you need to install it manually by cloning the repository and installing dependencies using uv sync --frozen. Then, configure your editor (e.g., Zed) to use the server by adding a context_servers entry in your settings.json, specifying the path to the server and any necessary arguments, such as the repository path and exclusion patterns.

Key features of Git Prompts MCP Server

  • Generates prompts based on Git repository content

  • Supports generating PR descriptions

  • Configurable exclude patterns for diff results

  • Supports JSON and text formats for diff results

  • Designed for use with editors like Zed

Use cases of Git Prompts MCP Server

  • Generating pull request descriptions automatically

  • Analyzing code changes within a Git repository

  • Creating prompts for code review

  • Automating documentation updates based on Git history

  • Integrating Git context into editor workflows

FAQ from Git Prompts MCP Server

What is MCP?

MCP stands for Model Context Protocol, a protocol for communication between editors and context servers.

What dependencies are required?

The server requires dependencies that can be installed using uv sync --frozen.

How do I configure the server in Zed?

Add a context_servers entry in your settings.json with the appropriate command and arguments.

Can I exclude certain files from the diff results?

Yes, you can use the --excludes argument to specify file patterns to exclude.

What formats are supported for diff results?

The server supports JSON and text formats for diff results.