pr-narrator-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BASE_BRANCH | No | Base branch for PRs (default: auto-detected from repo) | |
| TICKET_LINK | No | Ticket URL template (e.g., 'https://jira.example.com/browse/{ticket}') | |
| PREFIX_STYLE | No | Prefix format: 'capitalized' or 'bracketed' | |
| TICKET_PATTERN | No | Ticket regex pattern (e.g., '[A-Z]+-\\d+') | |
| DEFAULT_REPO_PATH | No | Fallback repo path for single-repo workflows | |
| PR_TEMPLATE_PRESET | No | Force a PR template preset: 'mobile', 'backend', 'devops', etc. | |
| PR_DETECT_REPO_TEMPLATE | No | Enable/disable repo template detection (default: 'true') |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_configA | Get the current pr-narrator configuration. Returns settings from MCP env vars or defaults. Set in MCP JSON:
|
| analyze_git_changesA | Analyze the current git repository state and changes. Provides context for generating commit messages and PR content. Returns:
Use this before generating commits or PRs to understand the changes. |
| generate_commit_messageA | Prepare commit message context from staged changes. Falls back to unstaged working tree changes when nothing is staged, so you can analyze changes before running 'git add'. Check 'source' in the response to see whether staged or unstaged changes were used, and 'hint' for staging instructions. TWO MODES:
For best results: First analyze the staged changes yourself, then call this tool WITH the summary parameter to get a properly formatted commit message. Prefix behavior:
Examples:
|
| validate_commit_messageA | Validate a commit message against configured rules. Checks:
|
| extract_ticketsA | Extract ticket numbers from the current branch, commits, and optional additional text. Uses TICKET_PATTERN env var to find tickets in:
|
| generate_pr_titleA | Generate a PR title based on branch info. Prefix behavior:
If no summary is provided, extracts one from the branch name. |
| generate_pr_descriptionA | Generate a PR description with sections. Auto-populates:
|
| generate_prA | Generate a PR title and description. IMPORTANT: The returned 'description' has a PLACEHOLDER Purpose. You MUST rewrite it using purposeContext.commitTitles, purposeContext.commitBullets, and purposeGuidelines BEFORE showing to the user. You MUST also rewrite the title to reflect ALL changes, not just the branch name. Read ALL commitTitles and commitBullets to understand the full scope before writing. FORMAT:
Example (3+ changes): "Enables automatic Slack notifications to PR authors when builds fail.
Show ONLY the final title + rewritten description. Never mention "MCP provided" or show raw purposeContext. |
| get_pr_templateA | Returns the resolved PR template for a repository, showing which sections will appear based on repo template detection, domain auto-detection, or explicit preset. Useful for previewing the template structure before generating a PR. |
| generate_changelogA | Generate release notes / changelog from git commit history between two refs. Analyzes commits between two refs (tags, SHAs, or branches) and produces a formatted changelog. Supports three output formats: Keep a Changelog (keepachangelog), GitHub Release (github-release), and plain text. Auto-detects:
Use this when a user wants to generate release notes, changelogs, or understand what changed between two versions. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
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/mhaviv/pr-narrator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server