This guide walks you through connecting Bonsai to Mastra AI using the Composio tool router. By the end, you'll have a working Bonsai agent that can show all bonsai server spaces for my account, get details of the 'us-east-1' cluster, retrieve metadata for a specific bonsai space, list all regions available to provision clusters through natural language commands.
This guide will help you understand how to give your Mastra AI agent real control over a Bonsai account through Composio's Bonsai MCP server.
Before we dive in, let's take a quick look at the key ideas and tools involved.








