Skip to main content

Prerequisites

If you haven’t already, install the Mastra MCP package:

Connecting Mastra to Observee’s MCP Server

You can connect your Mastra agent to Observee’s secure, enterprise-ready MCP servers to access all your Observee-managed tools, agents, and workflows. First, configure the MCPClient to point to your Observee MCP endpoint. You can find your {your_client_id} and generate an API key in the Observee dashboard.

Using Tools from Observee

Once the client is configured, you can fetch tools for your agent. Mastra supports two patterns:

1. Static Tools

For simple scripts or single-user applications, fetch all tools once and initialize the agent with them.

2. Dynamic Toolsets

For multi-tenant applications or when credentials change per-request, create a new MCP client for each request and pass the toolsets dynamically.

Learn More