- Step1: Install via npm: npm install aisdk-mcp-bridge
- Step2: Create an mcp.config.json to define MCP servers and communication modes
- Step3: Import the bridge in your project and initialize MCP using initializeMcp()
- Step4: Use getMcpTools() to fetch tools from MCP servers
- Step5: Call generateText() or other AI functions with tools and desired models
- Step6: Finally, run cleanupMcp() to release resources and close connections