mcp-slim-guard v0.1.0
The control plane between AI agents and MCP servers.
Reclaim ~83% of MCP tool-schema context without changing your existing servers — and verify the result yourself.
Key Features
- 5-level schema compression — off/light/normal/extreme/maximum, plus lazy loading
- Security pipeline — glob-based allow/deny → SSRF protection → injection detection (17 patterns) → rate limiting (Token Bucket) → audit logging
- STDIO + HTTP transport — works with Claude Code, Cursor, Codex, and any MCP client
- SIGHUP hot reload — zero-downtime config changes
- Audit logging — Pino JSON output with file rotation and gzip compression
- Request caching — TTL+LRU memory cache for read-only tool calls
- Schema stats in CLI — transparent character count + estimated token count
- Benchmark suite — 4 modules: tokens, schema, latency, accuracy
Quick Start
npm install -g mcp-slim-guard
mcp-slim-guard init
mcp-slim-guard validate
mcp-slim-guard startStats
- 402 tests, 20 test files
- 5 production dependencies
- Node.js ≥ 18
- MIT License