Documentation Index
Fetch the complete documentation index at: https://docs.svantic.com/llms.txt
Use this file to discover all available pages before exploring further.
MCP integration
The Model Context Protocol (MCP) is an open standard for exposing tools to LLMs. The SDK can bridge any MCP server so its tools become A2A capabilities on your agent — every MCP tool turns into a normal Svantic capability, with the same dashboard, telemetry, and caller experience. This guide covers the everyday pattern. For the underlying class, seeMcpBridge.
Register an MCP server as capabilities
<prefix>_<tool_name> (hyphens in the prefix become underscores). So chrome-devtools + a tool called navigate becomes capability chrome_devtools_navigate.
Register MCP servers before start() / expose() so their tools appear on the agent card.
Override the prefix
Combine MCP tools with hand-written capabilities
They coexist. Aregister_mcp call adds to the existing capability set; define_capability can be called before or after.
Shipping MCP configs with the SDK
For common MCP servers the SDK ships small config factories so you don’t repeat thecommand/args boilerplate:
Environment and credentials
MCP servers usually pick up credentials from env vars. Pass them through:Lifecycle
- The MCP server runs as a child of your agent process.
agent.stop()andagent.close()terminate every MCP bridge.- If the MCP server crashes, its capabilities start failing — the caller sees a clear error and your telemetry shows a tool-level failure span.
Directly driving an MCP server
Rarely needed, but supported — useMcpBridge directly when you want to call an MCP tool from your own code without surfacing it as an agent capability.
