Skip to main content
Mastra loads SAN through the MCPClient from @mastra/mcp. It exposes SAN’s tools to any Mastra Agent.

Prerequisites

  • Node.js 20+
  • A SAN API key
    Create one in the API Quickstart if you don’t have one yet.

Quick Start

1

Install the packages

2

Point an MCPClient at SAN

A url created with new URL() uses streamable HTTP. Pass your key under requestInit.headers.
3

Give the tools to an agent

listTools() fetches SAN’s tools once so you can bind them to an agent.
On Mastra v0 (pre-1.0), the method is getTools() instead of listTools().