MCPToolset from pydantic_ai.mcp. Attach it to any Agent through the toolsets argument.
Prerequisites
- Python 3.10+
- A SAN API key
Create one in the API Quickstart if you don’t have one yet.
Quick Start
Point a toolset at SAN
A URL without an
/sse suffix uses streamable HTTP. Pass your key in headers.On Pydantic AI 1.x, this class is
MCPServerStreamableHTTP (same arguments). It was renamed to MCPToolset in 2.0.