GitHub PR Template Tools
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.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub PR Template Toolssuggest a PR template for my bug fix in the authentication module"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
# Install all dependencies
uv sync
# Or install with dev dependencies for testing
uv sync --all-extras3. Configure the MCP Server
Add the server to Claude Code:
# Add the MCP server
claude mcp add pr-agent -- uv --directory /absolute/path/to/module1/solution run server.py
# Verify it's configured
claude mcp listRelated MCP server: Cursor Auto-Review MCP Server
Tools Available
**analyze_file_changes**: Analyzes Git changes between a base branch and HEAD to extract file-level modifications, commit history, and optionally truncated diffs — enabling automated PR generation, impact assessment, or review workflows.
Key Functionalities:
Parses changed files via
git diff --name-statusinto structured JSON:[{ "status": "M", "file": "main.py" }, ...]Fetches change statistics via
git diff --statCaptures commit history using
git log --onelineOptionally includes full or truncated diff (default: 500 lines)
Smart fallback logic:
Uses
mcp.get_context().session.list_roots()to infer working directoryDefaults to
os.getcwd()if context is unavailableEmbeds a rich
_debugblock with root info, working directory trace, and server context
**get_pr_template**: Fetches the available PR templates from the shared template directory, including content and metadata — ready to be displayed, edited, or autofilled by Claude or similar agents.
Key Functionalities:
Loads all templates defined in
DEFAULT_TEMPLATES(e.g.,bug.md,feature.md,docs.md, etc.)Reads the content of each template file from disk
Fails gracefully if a file is missing or unreadable (
Error loading template...)Returns metadata alongside the file body:
filename,type,content
**suggest_templates**: Provides Claude-friendly PR template recommendations based on a natural language change summary and change type (e.g., "bug", "feature"). Suggests the best-fit template and alternatives with reasoning and confidence level.
Key Functionalities:
Normalizes change_type using a semantic map (TYPE_MAPPING)
Selects a recommended template (or defaults to feature.md)
Includes 2–3 alternatives to support Claude in ambiguous scenarios
Adds reasoning and confidence level ("high"/"medium")
Embeds the full template content to support AI-based autofill or mutation
Inputs:
changes_summary: natural language summary of the diffchange_type: one of bug, feature, docs, refactor, performance, etc.
Future Improvements:
Expose this as a web tool or MCP extension
Embed automatic PR generation directly into GitHub Actions
Integrate template generation with LLM-assisted refactoring
Author
Udayan Sawant | Generative AI Engineer
Building intelligent tools for the future of developer productivity
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that enables Git repository operations and GitHub PR workflows, allowing users to manage repositories, create branches, commit changes, and create pull requests through natural language.Last updated2
- Flicense-qualityDmaintenanceAn MCP server that automates code reviews through linting, testing, and git diff analysis. It also generates conventional commit messages and detailed pull request descriptions based on file changes and code patterns.Last updated
- AlicenseAqualityDmaintenanceMCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.Last updated84MIT
- Alicense-qualityBmaintenanceAn MCP server that enables checking GitHub and Codeberg PR reviews, change requests, and conversations.Last updatedMIT
Related MCP Connectors
A MCP server built for developers enabling Git based project management with project and personal…
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/sawantudayan/github-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server