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

aca-govern

v0.1.0

Published

MCP governance proxy - add ACA governance to any MCP server

Downloads

141

Readme

aca-govern

Add governance to any MCP server — one line, zero code changes.

Part of the Agent Civilization Architecture (ACA) ecosystem.

The Problem

MCP lets agents use tools. But there's no standard way to audit what tools they use, limit which tools they can call, or enforce governance policies. MCP servers run with whatever the agent asks for — no questions asked.

aca-govern wraps any existing MCP server with a governance proxy. Every tool call passes through a pipeline of gates before reaching the server.

Quick Start

# Before: no governance
npx my-mcp-server

# After: with governance
npx aca-govern -- npx my-mcp-server

In your MCP client config (Claude Desktop, Cursor, Windsurf, Codex):

{
  "mcpServers": {
    "my-server": {
      "command": "npx",
      "args": ["aca-govern", "--", "npx", "my-mcp-server"]
    }
  }
}

That's it. Every tool call is now audited, and you can add allowlists, rate limits, and more.

What It Does

MCP Client (Claude/Cursor)
        │
        │ stdin/stdout
        ▼
┌─────────────────────┐
│   aca-govern        │
│                     │
│   1. Audit Log ✅   │  ← append-only JSONL, every call logged
│   2. Allowlist  ✅  │  ← glob patterns: allow/deny tools
│   3. Rate Limit ✅  │  ← per-minute / per-tool limits
│   4. Tool Classify  │  ← schema-based memory tool detection
│                     │
└────────┬────────────┘
         │ stdin/stdout
         ▼
┌─────────────────────┐
│  Your MCP Server    │
│  (unchanged)        │
└─────────────────────┘

Governance Gates

| Gate | What it does | Always on? | |------|-------------|------------| | Audit Log | Logs every tool call to JSONL (timestamp, tool, verdict) | Yes — mandatory, cannot be disabled | | Tool Allowlist | Glob-pattern allow/deny for tool names | Optional | | Rate Limit | Sliding window per-minute and per-tool limits | Optional | | Tool Classify | Intercepts tools/list to classify tools by schema | Always on |

Governance Modes

| Mode | Behavior | |------|----------| | enforce (default) | Denied calls are blocked — client gets a JSON-RPC error | | audit_only | Everything passes, but violations are logged — safe for testing |

Configuration

Create .aca-govern.json (or pass --config <path>):

{
  "audit": {
    "enabled": true,
    "path": "~/.aca/audit.jsonl",
    "redact_patterns": ["password", "token", "secret"]
  },
  "tools": {
    "allow": ["*"],
    "deny": ["delete_*", "drop_*"]
  },
  "rate_limit": {
    "enabled": true,
    "max_calls_per_minute": 60,
    "max_calls_per_tool": 10
  },
  "mode": "enforce"
}

CLI Options

aca-govern [options] -- <command...>

Options:
  --config <path>       Config file (default: .aca-govern.json)
  --audit-path <path>   Audit log path (default: ~/.aca/audit.jsonl)
  --mode <mode>         enforce | audit_only (default: enforce)
  --version             Print version

Audit Log Format

Append-only JSONL at ~/.aca/audit.jsonl:

{"ts":"2026-06-15T12:00:00Z","method":"tools/call","tool":"search_web","verdict":"allow","gates":["audit","allowlist","rate_limit"]}
{"ts":"2026-06-15T12:00:01Z","method":"tools/call","tool":"delete_file","verdict":"deny","reason":"tool_denied"}

ACA Ecosystem

aca-govern is the second pillar of the ACA protocol ecosystem:

| Product | Purpose | |---------|---------| | Agent Memory Hall | ACA L1-3: Memory + Trust + Identity server | | aca-govern | Governance proxy: add ACA governance to any MCP server | | ACA Spec | The open protocol specification (6 layers + 34 conformance tests) |

Roadmap

  • [x] Stdio proxy with audit logging
  • [x] Tool allowlist/denylist (glob)
  • [x] Rate limiting
  • [x] Schema-based tool classification
  • [x] audit_only mode
  • [ ] Anti-Ouroboros for memory tools
  • [ ] Source tier tagging
  • [ ] AMH integration (full ACA L1-3)
  • [ ] HTTP/SSE transport
  • [ ] Human approval flow

License

Apache 2.0