mcp-merge-guard

mcp-merge-guard

Guards PR merge decisions by validating CI, approvals, conflicts, and branch freshness.

Category
Visit Server

README

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 localRepoPath support 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 build

Add 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 merge
Merge PR #42 in owner/repo if all guards pass

Documentation

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 pipeline

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured