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

agentvault-gateway

v0.3.0

Published

MCP Proxy Gateway — Intercept, log, and secure all agent-to-MCP-server traffic

Readme

AgentVault Gateway 🏴‍☠️

All agent traffic flows through us.
MCP Proxy that intercepts, logs, and secures agent-to-tool communication.

npm version license

The Problem

AI agents call external tools via MCP (Model Context Protocol), but you have zero visibility into what they're doing:

  • What tools did the agent call?
  • What data did it send?
  • Did it try anything dangerous?
  • How much did it cost?

The Solution

AgentVault Gateway sits between your agent and any MCP server as a transparent proxy:

Without Gateway:
  Agent → MCP Server (GitHub, Slack, DB...)
  ❌ No logs. No visibility. No audit trail.

With Gateway:
  Agent → [AgentVault Gateway] → MCP Server
                    ↓
            📊 Full action log
            🔒 Security filtering  
            💰 Cost tracking

Quick Start

npx agentvault-gateway --target "npx -y @modelcontextprotocol/server-filesystem /tmp"

That's it. Your agent now connects to the Gateway instead of the MCP server directly. All traffic is logged to ./agentvault-logs/.

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "github-via-vault": {
      "command": "npx",
      "args": [
        "agentvault-gateway",
        "--target", "npx -y @modelcontextprotocol/server-github"
      ]
    }
  }
}

Features

| Feature | Description | |---------|-------------| | 📊 Audit Log | Every tool call recorded with timestamps, inputs, outputs, latency | | 🔒 Security Filter | Block dangerous operations (DELETE, DROP, rm -rf, etc.) | | 🚦 Rate Limiting | Prevent runaway agents from flooding your tools | | 📡 Telemetry | Optional cloud sync for cross-session analytics | | 🧩 Zero Config | Works with any MCP server. No code changes needed |

How It Works

  1. Agent connects to Gateway via stdio (standard MCP protocol)
  2. Gateway spawns the target MCP server as a child process
  3. Every request is intercepted, logged, security-checked, then forwarded
  4. Every response is logged and returned to the agent unchanged
  5. Logs are written to JSONL files for easy analysis

Configuration

CLI Options

agentvault-gateway \
  --target "npx -y @modelcontextprotocol/server-github" \
  --log-dir ./my-logs \
  --no-telemetry

JSON Config

{
  "target": "npx -y @modelcontextprotocol/server-github",
  "security": {
    "block_patterns": ["DELETE", "DROP", "TRUNCATE", "rm -rf"],
    "max_requests_per_minute": 60
  },
  "telemetry": {
    "enabled": true,
    "endpoint": "https://api.agentvault.dev/telemetry"
  },
  "log": {
    "storage": "local",
    "path": "./agentvault-logs",
    "format": "jsonl"
  }
}

Log Format

Each tool call generates a JSONL entry:

{
  "id": "av_1714500000000_abc123",
  "timestamp": "2026-04-30T15:00:00.000Z",
  "event_type": "tool_call",
  "tool_name": "read_file",
  "input_summary": { "path": "/src/index.js" },
  "output_size_bytes": 2048,
  "latency_ms": 142,
  "blocked": false,
  "source": "cli"
}

Programmatic Usage

import { AgentVaultGateway } from 'agentvault-gateway';

const gateway = new AgentVaultGateway({
  target: 'npx -y @modelcontextprotocol/server-github',
  logDir: './logs',
  security: {
    blockPatterns: ['DELETE', 'DROP'],
    maxRequestsPerMinute: 30
  }
});

await gateway.start();

Privacy

  • All logs are stored locally by default
  • Cloud telemetry is opt-out — disable with --no-telemetry
  • Telemetry data is anonymized (no PII, no raw content)
  • Only metadata is collected: tool names, latency, error rates

Requirements

  • Node.js >= 18.0.0
  • Any MCP-compatible server as target

License

MIT


Built by AgentVault — Making AI agents observable, secure, and accountable.