Skip to main content

Mastra Integration

Coming Soon — Mastra integration is currently under development.

Overview

The MutagenT Mastra integration provides observability for Mastra AI applications, tracking agents, workflows, and LLM calls.

Expected Installation

bun add @mutagent/mastra

Expected Usage

import { MutagentPlugin } from '@mutagent/mastra';
import { Mastra } from 'mastra';

// Create Mastra instance with MutagenT plugin
const mastra = new Mastra({
  plugins: [
    new MutagentPlugin({
      apiKey: process.env.MUTAGENT_API_KEY,
    }),
  ],
});

// All Mastra operations are automatically traced
const agent = mastra.createAgent({
  name: 'my-agent',
  model: 'gpt-5.1',
});

const response = await agent.run('Hello!');

What Gets Tracked

  • Agent Executions: Full agent run traces
  • Workflow Steps: Step-by-step execution
  • Tool Calls: External tool invocations
  • LLM Calls: Underlying model calls
  • Memory Operations: Context retrieval/storage

Configuration

new MutagentPlugin({
  apiKey: string,           // Required: MutagenT API key
  projectId?: string,       // Link to MutagenT project
  environment?: string,     // 'development' | 'production'
  enabled?: boolean,        // Enable/disable tracing
});
[AI AGENT PLACEHOLDER: MASTRA INTEGRATION WILL BE DOCUMENTED WHEN AVAILABLE]