AgentGuard MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AgentGuard MCP ServerIntercept tool calls, redact secrets, and require approval for sensitive actions."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
AgentGuard
Runtime security for AI agents. AgentGuard intercepts tool calls at an MCP boundary, validates provenance and arguments, applies deterministic policy precedence, redacts secrets, pauses sensitive actions for human approval, and writes a tamper-evident audit trail.

The application boots with a complete deterministic attack demo and zero credentials. Live adapters activate only when their hosted-service environment variables are present. AgentGuard never downloads a model and has no Ollama or local-vLLM fallback.
This is not a chatbot wrapper. It demonstrates agent security, protocol design, streaming UX, policy engineering, human-in-the-loop execution, multi-runtime architecture, observability, retrieval, evaluation, and hosted deployment.
Four attack fixtures prove four distinct controls:
Fixture | Expected enforcement | Security control |
Indirect prompt injection |
| Untrusted provenance + destructive SQL |
Secret exfiltration |
| Recursive credential removal before egress |
Production rollback |
| Suspended execution + operator decision |
Repository intelligence |
| Explicit read-only tool authorization |
Stack, with a real job for each tool
Technology | Implemented responsibility |
Vercel AI SDK | Typed UI event streaming and hosted model calls |
OpenAI Responses API | Explicit |
OpenAI Agents SDK | Primary hosted agent runtime connected to protected MCP tools |
Model Context Protocol | Streamable HTTP gateway with six guarded tools |
LangGraph | Stateful retrieve → assess → approve/finalize workflow |
Mastra | TypeScript-native agent through LiteLLM |
PydanticAI | Typed |
LiteLLM | Hosted provider routing, retry, and budget gateway |
Hosted vLLM | Remote OpenAI-compatible serving adapter; never local |
PostgreSQL + pgvector | Security-run persistence, checkpoints, semantic audit history |
Qdrant | Hosted policy and attack-corpus vector retrieval |
LlamaIndex | Ingestion and retrieval over the Qdrant collection |
DSPy | Evaluation-driven policy-classifier optimization |
Arize Phoenix | Hosted OpenTelemetry traces and evaluation visibility |
Related MCP server: evav-gateway
Run the credential-free demo
pnpm install
pnpm devOpen http://localhost:3000. The first attack runs automatically. No .env.local is necessary.
pnpm typecheck
pnpm test
pnpm buildRepository map
src/app/ Next.js UI and API routes
src/components/ Recruiter-facing attack console
src/lib/guard/ Policy engine, schemas, fixtures, audit chain
src/lib/mcp/ MCP server and protected real/simulated executors
src/lib/runtimes/ OpenAI Agents, Mastra, and Python-service adapters
src/lib/ai/ LiteLLM and remote-vLLM model providers
services/intelligence/ Hosted FastAPI intelligence service
infrastructure/postgres/ pgvector schema
infrastructure/litellm/ Hosted LiteLLM routing config
tests/ Policy and browser-level verification
docs/ Architecture, threat model, demo, credentialsFor the live architecture, see Architecture. For the exact optional keys and their destinations, see Credentials. For interview delivery, use the 90-second demo script.
This server cannot be deployed
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Runtime permission, approval, and audit layer for AI agent tool execution.
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
Related MCP Servers
- AlicenseBqualityAmaintenanceA governance proxy for AI tools — every MCP/agent tool call is policy-gated, secret-redacted, and written to a hash-chained, offline-verifiable audit trail.13MIT

evav-gatewayofficial
AlicenseNot gradedqualityBmaintenanceGoverned MCP gateway that lets AI agents call tools with policy enforcement, prompt-injection screening, a kill-switch, and tamper-evident signed audit logs.Apache 2.0- FlicenseNot gradedqualityCmaintenanceMCP server that provides a security gateway for AI agents, enforcing allow/confirm/deny policies on tool calls and requiring human approval for risky operations, with full audit logging.-
- AlicenseNot gradedqualityBmaintenanceProvides a human-in-the-loop approval gateway for AI agents, enforcing policies and audit logging for MCP-compatible tool calls.Apache 2.0