AgentWall (MCP-Sentry)

Zero-dependency pure Python security firewall, tool-poisoning guard, .env secret DLP, token-burn circuit breaker, and 1-second file rollback proxy for Claude Code, Cursor & Windsurf MCP servers.

Documentation

πŸ›‘οΈ AgentWall (MCP-Sentry v3.0)

Zero-dependency, sub-millisecond security firewall, token-burn circuit breaker, and 1-second file rollback for MCP agents (Claude Code, Cursor, Windsurf).

Version Zero Dependencies Benchmark License Live Demo yepinggu66/mcp-sentry MCP server

🌐 Live Attack Simulator Β· ⚑ Unlock Developer Pro ($49 One-Time) Β· πŸ† Security Challenge


Why AgentWall?

Giving coding agents local shell, database, and third-party MCP server access is powerfulβ€”until a poisoned tool description leaks your .env, an infinite retry loop burns $300 in API tokens overnight, or a hallucinated command wipes your repo.

AgentWall wraps any stdio or HTTP MCP server with zero external dependencies and 0.031 ms average latency:

  • Tool Poisoning & Rug-Pull Protection: Blocks hidden <IMPORTANT> prompt injections, zero-width Unicode payloads, and mid-session schema mutations via SHA-256 hash-locking.
  • Zero-Token Dead-Loop Circuit Breaker: Structural AST fingerprinting stops runaway retry loops automatically without spending a single LLM token.
  • In-Flight Secret DLP: Masks OpenAI, Anthropic, AWS, GitHub PATs, private keys, and DB URIs before egress.
  • 1-Second Time-Machine Rollback (Pro): ShadowVault snapshots files before agent mutations so mcp-sentry rollback restores corrupted files instantly.
  • Smart USD Token Diet (Pro): Compresses bloated MCP tool responses on the fly to cut redundant token bills by 60%+.
  • HITL Approval Webhooks & Audit Ledger (Pro): Approve risky tool calls from Slack/Discord with a tamper-evident SHA-256 audit trail.

Quick Start (30 Seconds)

git clone https://github.com/yepinggu66/mcp-sentry.git
cd mcp-sentry

# Run the built-in 30-vector red-team benchmark locally
python -m mcp_sentry bench

Wrap any MCP server in your claude_desktop_config.json or .cursor/mcp.json:

{
  "mcpServers": {
    "filesystem-guarded": {
      "command": "mcp-sentry",
      "args": ["--", "npx", "-y", "@modelcontextprotocol/server-filesystem", "./"]
    }
  }
}

Community (MIT) vs. Developer Pro

FeatureCommunity (MIT β€” Free)Developer Pro ($49 One-Time)Team ($299/yr)
Zero-dependency Python stdio/HTTP Firewallβœ…βœ…βœ…
Tool Poisoning & Rug-Pull Hash-Lockβœ…βœ…βœ…
Dead-Loop Circuit Breaker & .env DLPβœ…βœ…βœ…
30-Vector Red-Team Benchmark (bench)βœ…βœ…βœ…
1-Second ShadowVault File Rollbackβ€”βœ…βœ…
Smart USD Token Diet (60%+ Compression)β€”βœ…βœ…
Self-Evolving AST Immunity & Canary Honeypotβ€”βœ…βœ…
Slack / Discord HITL Approval Webhooksβ€”βœ…βœ…
Signed SOC2 Audit Dossiers & 15 Seatsβ€”β€”βœ