Serves as the backend framework for the MCP server, exposing an HTTP endpoint to query Mistral for PR description generation.
Processes git diffs to generate PR descriptions, with specific support for analyzing staged changes in git repositories.
Generates structured pull request descriptions specifically formatted for GitHub PRs from git diffs.
Provides a web-based user interface for pasting git diffs and receiving generated PR descriptions.
Integrates with Ollama to run the Mistral language model locally for generating PR descriptions without cloud dependencies.
🧠 MCP PR Description Generator using Mistral
This project is a lightweight tool that uses Mistral running locally via Ollama to generate clean, structured GitHub pull request (PR) descriptions from staged git diffs.
It wraps the model inside a FastAPI server and provides a Gradio web UI for quick generation.
📌 Features
- 💻 Local-first: All processing is done on your machine using
ollama
(no cloud calls) - ⚙️ FastAPI backend: Exposes a simple HTTP endpoint to query Mistral
- 🌐 Gradio frontend: Paste a git diff and get a structured PR description instantly
- 🧩 Git-aware: Designed around generating summaries from actual diffs
- 🪶 Lightweight and privacy-friendly
🚀 Getting Started
1. Install Dependencies
2. Start Ollama with Mistral
3. Run the FastAPI server
4. Start the Gradio UI
✨ Example
Git Diff
Output PR Description
🧠 How it Works
- The Gradio UI sends the pasted diff to
http://localhost:8000/mistral
- FastAPI receives it and forms a prompt for the local Mistral model
- Mistral responds with a human-readable PR title + description
- The Gradio UI displays the result
🔒 Privacy Note
This tool is completely local. Nothing is sent to the cloud — your code and git diffs stay on your machine.
🙌 Credits
📬 License
MIT License
This server cannot be installed
A lightweight tool that uses Mistral AI running locally to generate structured GitHub pull request descriptions from git diffs.
Related MCP Servers
- AsecurityFlicenseAqualityGenerates comprehensive and formatted release notes from GitHub repositories, efficiently organizing commits by type and including detailed statistics using smart API usage.Last updated -32TypeScript
- -securityFlicense-qualityExtracts diffs from GitHub Pull Requests, allowing users to retrieve and analyze changes between branches in a repository.Last updated -1JavaScript
- AsecurityFlicenseAqualityProvides GitHub data analysis for repositories, developers, and organizations, enabling insights into open source ecosystems through API calls and natural language queries.Last updated -52JavaScript
- -securityFlicense-qualityA tool that integrates with GitHub and Notion to analyze and review pull requests, enabling automated code reviews and documentation in Notion.Last updated -Python