ToolCollection, which pulls SAN’s MCP tools into a CodeAgent or ToolCallingAgent.
Prerequisites
- Python 3.10+
- A SAN API key
Create one in the API Quickstart if you don’t have one yet.
Quick Start
1
Install smolagents with the MCP extra
2
Describe SAN's MCP server
Set the transport to
streamable-http and pass your key in headers.3
Run an agent with SAN's tools
ToolCollection.from_mcp requires trust_remote_code=True. Open it as a context manager so the connection is closed for you.