Intelligent MCP Routing
SynapseX includes an MCP intelligence layer that selects the right MCP system for a natural-language request. It is inspired by patterns from Google ADK: MCP toolsets, explicit agent/tool routing, context-aware execution, graph-style planning, and approval gates for risky actions.Why It Exists
Users should not need to know whether a task belongs to QCOS, SynapseX Ops, Manager integrations, or a search/grounding tool. Chat and CLI send the request to the MCP Router, which classifies intent and chooses the best MCP server and tool.MCP Domains
| Domain | MCP server | Typical tools | Example prompt |
|---|---|---|---|
quantum | qcos-mcp | execute_circuit, optimize_vqe, optimize_qaoa, list_backends | “Run QAOA for this graph” |
ops | synapsex-ops-mcp | get_metrics, tail_logs, restart_service, run_diagnostic | “Investigate high CPU on this VM” |
platform | synapsex-platform | tenants, billing, usage, workspaces, model registry | “Show usage for this tenant” |
integration | manager-integrations | Gmail, Slack, GitHub, Notion tools | “Create a GitHub PR” |
search | search-grounding | web-search | “Research recent MCP best practices” |
Public API
The router is exposed through the API Gateway:Route Only
Use route when you want to know what SynapseX would use without creating a persistent plan.Plan
Use plan when Chat or CLI should show an explainable execution preview.- classified domain;
- selected MCP server;
- selected tool;
- risk level;
- whether approval is required;
- execution steps;
- human-readable explanation.
Ask
ask is the high-level endpoint for Chat and CLI. It creates a plan and either returns it or executes it if safe and approved.
CLI UX
--json for automation:
Chat UX
The chat app should call/v1/mcp/plan first for risky, expensive, or domain-specific actions. The UI should show:
- “I detected a quantum task.”
- “I plan to use
qcos-mcpandoptimize_qaoa.” - “Approval is required because this can start a backend job.”
- “Estimated cost model: backend-job.”
/v1/mcp/ask with approve: true and the structured tool input.
SynapseX Chat includes a server-side proxy at:
SYNAPSEX_API_KEY server-side so credentials are not exposed in the browser.
Relationship To Google ADK Patterns
| Google ADK pattern | SynapseX implementation |
|---|---|
McpToolset discovers and adapts tools | mcp-router-service stores MCP servers/tools and exposes routable tools |
RoutedAgent selects an agent by context | POST /v1/mcp/route selects MCP/tool by intent and preference |
| Context, sessions, artifacts | workspace-service stores artifacts and planned execution outputs |
| Human input / graph workflows | Plans include approval gates before risky execution |
| A2A for remote specialist agents | QCOS can be exposed as both qcos-mcp and a future A2A quantum specialist |
Safety Defaults
- QCOS and VM operations require approval by default.
- Platform/search routes are low-risk by default.
- Internal API surfaces return a guided plan instead of blind execution.
- Execution events are published to
event-bus-servicewhentenantIdis provided.