Connect to MCP servers using the Blaxel SDK to access pre-built or custom tool servers hosted on Blaxel. This eliminates the need to manage server connections yourself, with credentials stored securely on the platform.Run the following command to retrieve tools in Mastra format:
Copy
Ask AI
import { blTools } from '@blaxel/mastra';const tools = await blTools(['mcp-server-name'])
Connect to LLMs hosted on Blaxel using the SDK to avoid managing model API connections yourself. All credentials remain securely stored on the platform.
Copy
Ask AI
import { blModel } from "@blaxel/mastra";const model = await blModel("model-api-name");
Connect to other agents hosted on Blaxel from your code by using the Blaxel SDK. This allows for multi-agent chaining without managing connections yourself. This command is independent of the framework used to build the agent.
Copy
Ask AI
import { blAgent } from "@blaxel/core";const myAgentResponse = await blAgent("agent-name").run(input);
You can deploy your agent on Blaxel, enabling you to use Serverless Deployments, Agentic Observability, Policies, and more. This command is independent of the framework used to build the agent.Either run the following CLI command from the root of your agent repository.