npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mergen-server

v1.4.3

Published

Mergen — the Execution & Security Gateway for AI agents. Deterministic local gate that blocks destructive tool calls in <1ms before they execute, holds risky calls for Slack HITL approval, and keeps a tamper-evident audit trail. MCP proxy + Claude Code Ba

Downloads

44

Readme

mergen-server

Prompts are not boundaries. Mergen is the deterministic gate between AI agents and your systems.

The Execution & Security Gateway for AI agents: an MCP proxy — plus a Claude Code Bash hook and a mergen-server exec CLI entrypoint — that intercepts every covered tool call before the handler runs, evaluates it against your local policy engine in under 1ms, and either passes it, blocks it with a guided alternative, or holds it for one-click human approval in Slack. No LLM in the critical path. No probabilistic guardrails.

npm License MCP


Quick start

npm install -g mergen-server
mergen-server setup     # connects your AI IDE, Slack, and the Claude Code Bash hook

Then add to Claude Code:

claude mcp add mergen --transport stdio -- mergen-server start

Ask your agent to git push --force. It won't — it gets a structured error explaining why the call was blocked and what to do instead, then reformulates within policy.


What it does

Agent calls a tool (MCP tools/call, Claude Code Bash, or `mergen-server exec -- <cmd>`)
  → Local policy engine evaluates the payload in <1ms
  → PASS   → handler runs
  → BLOCK  → structured error: why + guided alternative; action hash-chained to the Blunder Log
  → HOLD   → Promise suspends; Slack approve/deny resumes or denies the call

Blocked by default: rm -rf, DROP TABLE, terraform destroy, force-pushes and history rewrites, secret exfiltration, unscoped SQL mutations, infrastructure teardown. Every human override becomes binding enforcement policy for the next agent.

All data stays on your infrastructure. No cloud. No copy-paste.


CLI

mergen-server exec -- terraform apply   # gate any raw shell command outside an IDE
mergen-server doctor                    # verify gateway + hook health (--fix repairs)
mergen-server approve <token>          # resolve a held action locally
mergen-server test hitl                 # verify Slack approval delivery end to end
mergen-server login                     # device-authorized account sign-in

MCP tools

| Tool | What it does | |------|-------------| | execute_fix | Execute a fix (requires confirm: true) — intercepted by the gate first | | triage_incident | Full autonomous loop — diagnosis + optional fix | | analyze_runtime | Causal analysis — root cause + fix hint, no execution | | get_recent_logs | Console events from the ring buffer | | get_network_activity | HTTP/fetch events with status, duration, body | | validate_fix | Compare error counts before/after a fix | | generate_runbook | Self-updating runbook from your incident corpus | | search_postmortems | Semantic search over past incidents | | draft_postmortem | Blameless post-mortem draft in seconds |

Every tools/call — these and any other MCP server's — passes through the policy gate before its handler runs.


Environment variables

MERGEN_SHADOW_MODE=true            # dry-run: log verdicts, enforce nothing (trial mode)
MERGEN_AUTOPILOT=true              # enable autonomous fix execution
MERGEN_SLACK_BOT_TOKEN=xoxb-...    # Slack Web API (HITL approvals + threads)
MERGEN_SLACK_CHANNEL=#incidents    # default channel

Point your OTLP exporter at http://127.0.0.1:3000 and PagerDuty webhooks at /webhooks/pagerduty for the incident-triage loop.


Node.js SDK (one line)

import 'mergen-server/sdk/node.js';
// Captures uncaught exceptions, unhandledRejections, and process exits automatically

Full documentation

mergen.app/guide · questions: [email protected]