Analyzes Git changes between branches to extract file change metadata, commit history, and diffs for PR template suggestions.
Provides tools for analyzing Git changes and suggesting appropriate PR templates, including detecting changed files, gathering diff statistics, fetching commit history, and capturing diffs.
Github with PR Template Tools
The following illustrates basic Github MCP server that provides tools for analyzing git changes and suggesting appropriate PR templates.
Setup
1. Install uv
Follow the official installation instructions at: https://docs.astral.sh/uv/getting-started/installation/
2. Install dependencies
3. Configure the MCP Server
Add the server to Claude Code:
Tools Available
- analyze_file_changes - Tool that analyzes Git changes between a base branch and HEAD to extract file change
metadata, commit history, and optionally truncated diffs, for the purpose of PR template suggestions or automation.
- Key Functionalities:
- Detects changed files using git diff --name-status
- Gathers diff statistics with git diff --stat
- Fetches commit history since base_branch
- Optionally captures full or truncated diffs (default max: 500 lines)
- Auto-resolves working directory via MCP context or falls back to os.getcwd()
- Returns a structured JSON with all change metadata
- Debug metadata included (e.g., working directories, roots)
- Key Functionalities:
This server cannot be installed
A MCP server that provides tools for analyzing git changes and suggesting appropriate PR templates, helping automate PR-related workflows.
Related MCP Servers
- -securityAlicense-qualityA specialized MCP server for in-depth analysis of git repositories, offering tools for branch overview, time period analysis, file changes, and merge recommendations.Last updated -41JavaScriptApache 2.0
- AsecurityFlicenseAqualityThe Git MCP Server allows AI assistants to perform enhanced Git operations via the Model Context Protocol, supporting core Git functions, branch and tag management, GitHub integration, and more.Last updated -21554TypeScript
- AsecurityFlicenseAqualityMCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.Last updated -6Python
- -securityAlicense-qualityAn MCP server that provides tools for standardized Git branch management and Jira integration, allowing developers to create, validate branches according to conventions and synchronize with Jira issues.Last updated -2PythonMIT License