Introduction
The Secure MCP Gateway exposes a set of powerful tools that allow you to interact with your configured MCP servers through a secure, authenticated, and guardrail-protected interface. These tools are available to any MCP client connected to the gateway (such as Claude Desktop, Cursor, or Claude Code).Available Gateway Tools
The gateway provides seven core tools:| Tool | Purpose | Read-Only |
|---|---|---|
enkrypt_list_all_servers | List all configured servers with their tools | Yes |
enkrypt_get_server_info | Get detailed information about a specific server | Yes |
enkrypt_discover_all_tools | Discover available tools from servers | Yes |
enkrypt_secure_call_tools | Execute tools with guardrails and security checks | No |
enkrypt_get_cache_status | View cache status for discovered tools | Yes |
enkrypt_clear_cache | Clear cached tools and configurations | No |
enkrypt_get_timeout_metrics | View timeout and performance metrics | Yes |
All tools require authentication via the gateway key configured in your MCP client.
Tool Discovery Workflow
The typical workflow for using gateway tools follows this pattern:- List servers - Use
enkrypt_list_all_serversto see available servers - Discover tools - Use
enkrypt_discover_all_toolsto find what each server can do - Execute tools - Use
enkrypt_secure_call_toolsto run tools with security guardrails - Monitor - Use cache and timeout tools to debug and optimize performance
Authentication
All gateway tools automatically authenticate using the credentials configured in your MCP client:~/.enkrypt/enkrypt_mcp_config.json) or optionally against a remote authentication server.
Tool Invocation Examples
Using Tools in Claude Desktop
When chatting with Claude, you can simply ask for actions:User: “List all available servers”
Claude: Uses enkrypt_list_all_servers tool automatically
User: “What tools does the GitHub server have?”
Claude: Uses enkrypt_discover_all_tools with server_name="github"
User: “Create a new issue in my repository”
Claude: Uses enkrypt_secure_call_tools to execute GitHub tool
Direct Tool Invocation
You can also explicitly call tools:Tool Response Format
All gateway tools return standardized JSON responses:Success Response
Error Response
Caching Behavior
The gateway automatically caches discovered tools to improve performance:- Tool cache: 4 hours (default)
- Gateway config cache: 24 hours (default)
- Cache types: Local (in-memory) or External (Redis/KeyDB)
enkrypt_clear_cache to force re-discovery.
Guardrails Integration
When executing tools viaenkrypt_secure_call_tools, the gateway can apply security guardrails:
Input Guardrails
Input Guardrails
- PII detection and redaction
- Toxicity filtering
- NSFW content blocking
- Injection attack prevention
- Policy violation detection
- Keyword blocking
Output Guardrails
Output Guardrails
- All input guardrails
- Relevancy validation
- Adherence checking
- Hallucination detection
- PII de-anonymization
Tool Annotations
Each tool includes MCP annotations that provide hints to clients:- readOnlyHint: Whether the tool modifies state
- destructiveHint: Whether the tool performs destructive actions
- idempotentHint: Whether repeated calls have the same effect
- openWorldHint: Whether the tool interacts with external systems
Error Handling
Gateway tools provide detailed error information:Next Steps
List Servers
Learn how to discover available MCP servers
Discover Tools
Find available tools for each server
Execute Tools
Run tools securely with guardrails
Cache Management
Manage tool discovery cache