Installation
Quick Start
UsecreateConnection from @smithery/api/mcp to get a transport for the AI SDK’s MCP client:
Streaming Responses
UsestreamText for streaming responses. Close the client in onFinish:
Multiple MCP Servers
Connect to multiple servers and aggregate their tools:Learn More
- Connect to MCPs — Full guide including OAuth handling, multi-user setups, and service tokens
- Token Scoping — Secure browser and mobile access
- Vercel AI SDK MCP Documentation