Skip to main content

Overview

The Secure MCP Gateway provides guardrails integrations for multiple AI frameworks and platforms beyond Claude Desktop and Cursor. Each integration follows the same pattern: hook-based guardrails that validate inputs and outputs.

CrewAI

CrewAI Protect your CrewAI multi-agent systems with guardrails for LLM calls and tool executions.

Features

  • before_llm_call: Block unsafe prompts before LLM requests
  • after_llm_call: Audit LLM responses
  • before_tool_call: Validate tool inputs
  • after_tool_call: Audit tool outputs

Installation

Configuration

Usage

Hook Events

Logs

Logs are written to ~/crewai/hooks_logs/:
  • before_llm_call.jsonl
  • after_llm_call.jsonl
  • before_tool_call.jsonl
  • after_tool_call.jsonl
  • security_alerts.jsonl

Kiro IDE

Kiro Kiro IDE hooks integration for prompt validation, agent response auditing, and file security scanning.

Features

  • PromptSubmit: Block unsafe prompts
  • AgentStop: Audit agent responses
  • FileSave: Scan saved files for secrets/PII
  • FileCreate: Validate new files
  • Manual: On-demand security scanning

Installation

Configuration

Create Kiro hook files in .kiro/hooks/ directory:
before-prompt-guardrails.kiro.hook

Hook Types

Logs

Logs are written to ~/kiro/hooks_logs/:
  • PromptSubmit.jsonl
  • AgentStop.jsonl
  • FileSave.jsonl
  • FileCreate.jsonl
  • security_alerts.jsonl

Strands Agents

Strands Universal security guardrails for Strands Agents that work with ANY model provider - not just Amazon Bedrock.

Why Enkrypt Guardrails?

Strands Agents SDK has native guardrails support, but only for Amazon Bedrock. Enkrypt Guardrails work with OpenAI, Anthropic, Ollama, LiteLLM, and any other provider.

Installation

Configuration

Usage

Hook Events

Usage Modes

Logs

Logs are written to ~/strands/guardrails_logs/:
  • MessageAdded.jsonl
  • BeforeToolCall.jsonl
  • AfterToolCall.jsonl
  • security_alerts.jsonl

Vercel AI SDK

Vercel Middleware for Vercel AI SDK that protects AI applications with comprehensive guardrails.

Features

  • Prompt injection detection: Block malicious prompts
  • PII/secrets detection: Prevent sensitive data leaks
  • Toxicity filtering: Filter harmful content
  • Tool call protection: Monitor tool inputs/outputs

Installation

Configuration

Basic Usage

Hook Points

Tool Protection

Logs

Logs are written to ~/vercel-ai-sdk/guardrails_logs/:
  • combined_audit.jsonl
  • security_alerts.jsonl
  • enkrypt_api_response.jsonl

OpenAI Agents SDK

OpenAI Comprehensive security guardrails for the OpenAI Agents SDK with RunHooksBase integration.

Features

  • Prompt injection detection: Block malicious prompts
  • PII/secrets detection: Prevent sensitive data leaks
  • Tool call monitoring: Audit tool inputs/outputs
  • Agent handoff tracking: Monitor multi-agent workflows

Installation

Configuration

Basic Usage

Hook Events

Multi-Agent Support

Logs

Logs are written to ~/openai_agents/guardrails_logs/:
  • on_agent_start.jsonl
  • on_llm_end.jsonl
  • on_tool_start.jsonl
  • combined_audit.jsonl
  • security_alerts.jsonl

Common Configuration

All integrations use the same configuration format:
guardrails_config.json

Environment Variables


Available Detectors


Testing

All integrations include test suites:

Next Steps

Configure Policies

Create custom guardrail policies

View Metrics

Monitor guardrails performance

Audit Logs

Review security events

Add Detectors

Configure detection rules