MODULE 01 / SENTINEL
MCP Sentinel
Drop-in observability and guardrails for agent tool calls. Wrap your MCP server, get an audit-ready event stream and four guards (injection, PII, cost, rate limit) in front of every call. Reference implementation, ~700 LOC.
p99 < 12ms overhead0 incidents post-rolloutgithub.com/pappdavid/mcp-sentinel
Mock telemetry, rate-limited to 100 events/min.
// github.com/pappdavid/mcp-sentinelimport { MCPSentinel } from './sentinel';const sentinel = new MCPSentinel({ apiKey, guards: ['injection', 'pii', 'cost'] });const server = sentinel.wrap(yourMCPServer);server.listen(3001);
CHOSE
Wrapper, not a sidecar
3 lines to install vs deploying a separate process. p99 stays low because everything is in-process.
CHOSE
Boundary guards, not LLM-based
Pattern + Presidio. No LLM call to decide whether to allow the next LLM call — that's a cost loop.
SKIPPED
Fancy ML detection
90% of injection attempts are caught by 12 patterns. Ship that first; revisit when the data demands it.