AIAdapter converts MCP tools into the format expected by the Vercel AI SDK. This allows you to use MCP tools with functions like streamText, generateText, and useChat.
Installation
Usage
API Reference
TheAIAdapter constructor accepts the following options:
prefix: (Optional) String prefix for all tool names.toolRouter: (Optional) AToolRouterinstance for dynamic tool discovery.