🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

agentvault-gateway

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agentvault-gateway

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

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

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

FeatureDescription
📊 Audit LogEvery tool call recorded with timestamps, inputs, outputs, latency
🔒 Security FilterBlock dangerous operations (DELETE, DROP, rm -rf, etc.)
🚦 Rate LimitingPrevent runaway agents from flooding your tools
📡 TelemetryOptional cloud sync for cross-session analytics
🧩 Zero ConfigWorks with any MCP server. No code changes needed

How It Works

  • Agent connects to Gateway via stdio (standard MCP protocol)
  • Gateway spawns the target MCP server as a child process
  • Every request is intercepted, logged, security-checked, then forwarded
  • Every response is logged and returned to the agent unchanged
  • 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.

Keywords

mcp

FAQs

Package last updated on 30 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts