@agent-wall/cli
v0.1.1
Published
Security firewall for AI agents — intercept MCP tool calls, enforce policies, block attacks
Maintainers
Readme
Agent Wall
Security firewall for AI agents. Intercepts MCP tool calls, enforces policies, blocks attacks.
"Cloudflare for AI agents" — Zero-config protection for any MCP server.
Install
npm install -g @agent-wall/cliQuick Start
# Generate a starter policy
agent-wall init
# Wrap any MCP server
agent-wall wrap -- npx @modelcontextprotocol/server-filesystem /home/user
# With real-time dashboard
agent-wall wrap --dashboard -- npx mcp-server30-Second Integration
Replace your MCP config entry:
{
"mcpServers": {
"filesystem": {
"command": "agent-wall",
"args": ["wrap", "--", "npx", "@modelcontextprotocol/server-filesystem", "/home/user"]
}
}
}Works with Claude Code, Cursor, Claude Desktop, VS Code, Windsurf, and any MCP client.
Defense-in-Depth Pipeline
Every tool call runs through a 5-step inbound pipeline:
1. Kill Switch — Emergency deny-all
2. Injection — 30+ prompt injection patterns
3. Egress Control — Block SSRF, private IPs, metadata endpoints
4. Policy Engine — YAML rules (first-match-wins, glob, rate limiting)
5. Chain Detection — Suspicious multi-step patternsPlus an outbound response scanner — 14 secret patterns, 5 PII patterns, custom regex.
CLI Commands
| Command | Description |
|---------|-------------|
| agent-wall wrap | Wrap an MCP server with policy enforcement |
| agent-wall init | Generate a starter config |
| agent-wall test | Dry-run a tool call against your policy |
| agent-wall audit | View and analyze audit logs |
| agent-wall scan | Scan MCP config for security risks |
| agent-wall validate | Validate policy configuration |
| agent-wall doctor | Health check for config and environment |
Documentation
Full docs: agent-wall.github.io/agent-wall
