π Model Context Gateway (MCG) - Official User Guide & Manual¶
Welcome to the official user manual for the Model Context Protocol (MCP) Gateway Router. This router acts as a unified control plane, semantic proxy, and security gateway aggregating 100+ backend MCP services, optimizing tool calling for AI agents, and enforcing enterprise RBAC.
πΊοΈ User Guide Sitemap¶
- 01. Dashboard & Navigation Interface
- Layout, primary navigation tabs (
Overview,App Keys & Security,Test Bench,Settings,My MCP Servers), real-time stats cards, search filters, sorting, category/status grouping, and pagination. - 02. Server Management & Secret Providers
- Registering backend MCP servers across transports (
SSE,HTTP,STDIO), inspect modal schemas, custom JSON specifications, and configuring secret resolution strategies:- Direct Static Keys
- Host Environment Variables (
ENV:KEY) - HashiCorp Vault (KV v2 engine, AppRole, JIT token renewal)
- Windows Registry (DPAPI decryption)
- OAuth2 / OIDC Token Exchange (RFC 8693)
- 03. RBAC, Security & Policies
- 4-Stage Authorization Pipeline (
Explicit Deny>Explicit Allow>AppKey Scope>Default Policy), Identity Providers (OIDC headers, Active Directory Windows SIDs, AppKeys, Standalone CIDR allowlists, OAuth2), user quota limits, and group mappings. - 04. Client Setup & App Key Management
- Generating cryptographically hashed AppKeys, scope grammar (
*,category:*,server:*, granular capabilities), dynamic client setup generator, and integration guides for Cursor IDE, Claude Desktop, Antigravity CLI, VS Code Cline, and TypeScript/Python SDKs. - 05. Interactive Test Bench
- Interactive developer playground: Tool Execution Tester (dynamic JSON schema form builder & raw JSON editor), Virtual Resource Tester (
mcp://...), Prompt Template Tester, Semantic Router Simulator (search_tools), direct JSON-RPC Console, and live gateway terminal logs. - 06. System Settings & Vector Embeddings
- Multi-tab configuration plane: Vector & Search (Local ONNX
All-MiniLM-L6-v2vs OpenAI/Ollama API), Identity & Auth, Secret Providers, Prompts & Resources File Manager, and Access Control matrices.
π‘ Core Architecture & Concepts¶
- Meta-Mode (
/sse?meta=true): Exposes only 2 bootstrap tools (search_toolsandexecute_tool) to prevent context window bloat and tool confusion. - Namespaced Tool Routing: Backend tools are automatically namespaced as
<serverId>__<toolName>(e.g.docker__restart_containerorhomeassistant__turn_off). - Zero CLI Secret Leakage: STDIO subprocesses receive credentials strictly via process environment dictionaries, never exposed in command-line arguments.
- AES-256-GCM Envelope Encryption: All sensitive tokens, API keys, and provider secrets are encrypted at rest with authenticated 128-bit GCM tags.
- Multi-Database Support: Seamless operation across SQLite (SQLCipher), Microsoft SQL Server (
Microsoft.Data.SqlClient), and MySQL (MySqlConnector). - Universal Admin MCP Automation: Fully automated headless gateway provisioning and hot-reloading via
/admin/sseorPOST /admin.
π§ Related Technical Documentation¶
- π MCP Server Auth & Integration Cookbook
- π― Evaluation & Product Overview Guide
- ποΈ Comprehensive Enterprise Architecture Guide
- π Enterprise Secret Providers Guide
- π AppKey Scopes & Authorization Guide
- π Transport Capability & Configuration Guide
- ποΈ Database Provider Support & Deployment Matrix
- π» Developer & Contributing Guide
- π οΈ Operations & Production Runbook
- π€ Admin MCP Server & Automation Guide