@mergeguide/mcp-server and exposes a mergeguide-mcp command.
Requires Node.js 18 or newer. The MCP server connects an
MCP-capable client (such as Claude Code) to
your MergeGuide policies.
Run it
The simplest way to run the server is withnpx, which fetches and runs the
published package without a global install:
Configure your client
Add the server to your client’s.mcp.json so it launches automatically. Most
MCP clients use this shape:
.mcp.json
Optional environment variables
You can tune the server’s behavior through environment variables in theenv
block of your .mcp.json entry:
| Variable | Default | Description |
|---|---|---|
MERGEGUIDE_MODE | local-only | Operating mode: online, offline, or local-only. |
MERGEGUIDE_LOG_LEVEL | info | Log level: debug, info, warn, or error. |
MERGEGUIDE_CACHE_TTL | 300000 | Result cache lifetime in milliseconds. |
.mcp.json
Next steps
Install the CLI
The CLI powers local checks and git hooks.
Enforcement layers
How the MCP server fits with the IDE, hooks, and PR gate.