Connect to MCP Servers
Connect to external MCP servers via STDIO, HTTP, or SSE protocols with automatic retry logic
Model Context Protocol (MCP) is an open standard that enables AI models to seamlessly discover and execute external tools at runtime. Instead of being limited to text generation, AI models can interact with filesystems, search the web, query databases, and execute custom business logic through external MCP servers.
DeepIntShield provides a comprehensive MCP integration that goes beyond simple tool execution:
When Agentic-New GAF is enabled, JSON-RPC /mcp, explicit tool execution,
Agent Mode, and nested Code Mode calls all use the same server-side canonical
decision point. Every actual invocation requires an exact Allow; catalogue
visibility and tools_to_auto_execute never grant execution, and shadow mode
does not bypass a Deny or pending approval.
Key Security Principles:
| Principle | Description |
|---|---|
| Explicit Execution | Tool calls from LLMs are suggestions only - execution requires separate API call |
| Granular Control | Filter tools per-request, per-client, or per-virtual-key |
| Opt-in Auto-execution | Agent Mode eligibility must be configured, and canonical authorization still decides every call |
| Stateless Design | Each API call is independent - your app controls conversation state |
Connect to MCP Servers
Connect to external MCP servers via STDIO, HTTP, or SSE protocols with automatic retry logic
OAuth Authentication
Strict MCP OAuth 2.1 with issuer binding, live refresh, reauthorization, and revocation; OAuth 2.0 remains available for compatibility
Delegated Authentication
Exchange a caller token and isolate resource-bound Streamable HTTP sessions
Tool Execution
Execute tools with full control over approval and conversation flow
Agent Mode
Enable autonomous tool execution with a configurable eligibility allow-list
Code Mode
Let AI write sandboxed Starlark to orchestrate multiple tools in one request
Connection Resilience
Transient failures recover on their own and disconnected servers reconnect automatically
MCP Gateway URL
Expose DeepIntShield as an MCP server for Claude Desktop and other clients
Tool Filtering
Control which tools are available per request or per virtual key
Python SDK
Call tools, discover clients, normalize results, and build provider-specific
tool schemas with shield.mcp.
DeepIntShield works as an MCP client (you connect it to external tool servers) and, in the Gateway deployment, as an MCP server (you expose your aggregated tools to external clients like Claude Desktop).
By default DeepIntShield does not execute tool calls automatically - you stay in control. The workflow you implement is:
POST /v1/chat/completions - the model returns tool-call suggestions (not executed).POST /v1/mcp/tool/execute - execute the approved tool calls.POST /v1/chat/completions - continue the conversation with the tool results.This gives your application an explicit review point before execution. With canonical GAF enabled, the server independently classifies the Registry action, records the decision, and requires an exact Command Authority approval for write-like or unknown actions. See Tool Execution for the end-to-end code. To let eligible tools enter an autonomous loop, enable Agent Mode; GAF still decides every call.
If you connect 3+ MCP servers, evaluate Code Mode. It keeps the model’s context compact because the model can write one short script instead of round-tripping through every tool definition. The cost and latency savings shown in the Code Mode example are workload-specific, not a service-level guarantee. Benchmark classic and Code Mode with your tools, prompts, model, concurrency, and sandbox limits before choosing a default.
Set up your first MCP client connection →
Learn about header-based, OAuth 2.1, and OAuth 2.0 compatibility authentication →
Evaluate Code Mode cost and latency →
Learn the tool execution workflow →