mcp-merge-guard
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., "@mcp-merge-guardCheck if PR #42 in owner/repo is ready to merge"
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.
mcp-merge-guard
MCP server that guards PR merge decisions by validating CI, approvals, conflicts, and branch freshness.
Features
check-merge-ready - Query-only status check that validates all guards
guard-merge - Atomic validate-then-merge that refuses if guards fail
Optional
localRepoPathsupport updates the local base branch after merge without relying on the clone's remote protocol
Guards
Guard | Description |
ci-status | All CI checks passed, none pending or failed |
approval | PR is approved (or no review required) |
conflicts | No merge conflicts |
up-to-date | Branch is current with base (optional, off by default) |
Installation
Requires gh CLI installed and authenticated.
With Nix (recommended)
Add to your Claude Code settings (~/.claude/settings.json):
{
"mcpServers": {
"merge-guard": {
"command": "nix",
"args": ["run", "github:paolino/mcp-merge-guard"]
}
}
}Or use /settings in Claude Code to add the MCP server through the UI.
From source
git clone https://github.com/paolino/mcp-merge-guard
cd mcp-merge-guard
npm install && npm run buildAdd to ~/.claude/settings.json (use absolute path):
{
"mcpServers": {
"merge-guard": {
"command": "node",
"args": ["/absolute/path/to/mcp-merge-guard/dist/index.js"]
}
}
}Restart Claude Code after adding the configuration.
Usage
Once configured, use the tools in Claude Code:
Check if PR #42 in owner/repo is ready to mergeMerge PR #42 in owner/repo if all guards passDocumentation
Full documentation at paolino.github.io/mcp-merge-guard
Development
just install # Install dependencies
just build # Build TypeScript
just test # Run tests
just CI # Full CI pipelineLicense
MIT
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.
Latest Blog Posts
- 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/paolino/mcp-merge-guard'
If you have feedback or need assistance with the MCP directory API, please join our Discord server