# mastra

> From the team behind Gatsby, Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

- **URL**: https://www.freshcrate.ai/projects/mastra
- **Author**: mastra-ai
- **Category**: MCP Servers
- **Latest version**: `@mastra/core@1.38.0` (2026-06-03)
- **License**: NOASSERTION
- **Source**: https://github.com/mastra-ai/mastra
- **Homepage**: https://mastra.ai
- **Language**: TypeScript
- **GitHub**: 23,202 stars, 1,929 forks
- **Registry**: github
- **Tags**: `agents`, `ai`, `chatbots`, `evals`, `javascript`, `llm`, `mcp`, `nextjs`, `typescript`

## Description

From the team behind Gatsby, Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `@mastra/core@1.38.0` | 2026-06-03 | High | ## Highlights  ### OAuth ToolProviders runtime for stored agents (connections + toolkit-scoped tool resolution) Mastra now includes the v1 ToolProvider runtime plus server routes, editor wiring, and client SDK methods to manage OAuth-backed connections and let stored agents pin specific connections per toolkit at execution time (including per-author vs shared vs caller-supplied scopes).  ### New MySQL storage adapter `@mastra/mysql` adds a first-party MySQL storage backend with broad domai |
| `@mastra/core@1.37.0` | 2026-05-27 | High | ## Highlights  ### Google Cloud Spanner Storage Adapter (`@mastra/spanner@1.0.0`) New first-party storage backend for Google Cloud Spanner (GoogleSQL) covering most Mastra storage domains (memory, workflows, schedules, observability, etc.), including persisting tracing spans for Studio and supporting the local Spanner emulator.  ### Agent Channels Streaming UX + Tool Rendering Controls (Core + Slack) Major upgrades to channel adapters: opt-in streaming text deltas, adaptive typing indicato |
| `@mastra/core@1.35.0` | 2026-05-18 | High | ## Highlights  ### FGA Route Policy Coverage + Resolver Hooks (Core/Server/WorkOS) New FGA route policy coverage controls add guardrails for protected routes, with built-in resource route metadata resolution and resolver hooks so you can centrally map route → `{resourceType, resourceId, permission}` while still overriding per-route config.  ### Favorites Storage Domain for Agents/Skills (Core + Storage Adapters) A new `favorites` storage domain lets users favorite/unfavorite stored agents |
| `@mastra/core@1.33.0` | 2026-05-13 | High | ## Highlights  ### Push-capable PubSub + HTTP workflow event ingestion Mastra now supports push delivery for workflow events: PubSubs declare `supportedModes`, `Mastra.handleWorkflowEvent(event)` is the unified entry point, and servers expose `POST /api/workflows/events` so brokers like GCP Pub/Sub push/SNS/EventBridge can deliver events over HTTP (no pull worker required).  ### Response caching for identical LLM steps (`ResponseCache`) A new opt-in `ResponseCache` input processor can skip |
| `@mastra/core@1.32.0` | 2026-05-06 | High | ## Highlights  ### Fine-Grained Authorization (FGA) across Mastra (core + server adapters + MCP) Mastra now supports relationship-based, resource-level authorization with centralized enforcement before agent runs (`generate()`/`stream()`), tool/workflow execution, and memory thread access via new `IFGAProvider`/`IFGAManager` + `checkFGA()`/`FGADeniedError`. FGA is also enforced consistently in `@mastra/server` handlers, all built-in server adapters (Express/Fastify/Hono/Koa), and MCP tool exe |
| `@mastra/core@1.31.0` | 2026-05-04 | High | ## Highlights  ### Platform Channels Framework (Core + Server + Client) A new channels architecture adds `ChannelProvider`, a dedicated `ChannelsStorage` domain, and `ChannelConnectResult` connection flows (OAuth, deep link, immediate), with Mastra-level `connect/disconnect/list` APIs and matching `MastraClient.channels` methods.  ### Slack Channel Integration (`@mastra/slack`) New Slack provider connects agents to Slack workspaces with OAuth-based app provisioning, manifest drift detectio |
| `@mastra/core@1.29.0` | 2026-04-30 | High | ## Highlights  ### Azure Blob Storage workspace + blob store (`@mastra/azure`) New `@mastra/azure` adds an Azure Blob Storage `WorkspaceFilesystem` provider (`@mastra/azure/blob`) and an `AzureBlobStore` content-addressable store for skill versioning, with support for connection string, account key, SAS token, `DefaultAzureCredential`, anonymous auth, prefix namespacing, and read-only mode.  ### Stream “until idle” to include background task results in the same turn `agent.streamUntilIdle( |
| `@mastra/core@1.27.0` | 2026-04-24 | High | ## Highlights  ### CLI-Driven Browser Automation + Screencasts  `@mastra/core` and the new `@mastra/browser-viewer` package add end-to-end browser automation for CLI-based agent workflows. `BrowserViewer` launches Chrome via Playwright with remote debugging, and a new `BrowserCliHandler` automatically detects browser CLIs (`agent-browser`, `browser-use`, `browse`) and injects the CDP URL into commands — no manual wiring needed. Browser sessions are thread-isolated with automatic lifecycle ma |
| `@mastra/core@1.24.0` | 2026-04-08 | High | ## Highlights  ### End-to-end RAG Tracing + New RAG/Graph Span Types RAG ingestion and query operations are now visible in Mastra tracing with new span types (e.g., `RAG_INGESTION`, `RAG_EMBEDDING`, `RAG_VECTOR_OPERATION`, `RAG_ACTION`, `GRAPH_ACTION`) plus helpers like `startRagIngestion()` / `withRagIngestion()`. Instrumentation is opt-in via an `observabilityContext`, and `@mastra/rag` automatically threads context from agent `TOOL_CALL` spans into vector and graph tools.  ### CloudExpor |
| `@mastra/core@1.16.0` | 2026-03-26 | Medium | ## Highlights  ### Smarter Model Selection for Observational Memory  `@mastra/memory` now lets you route observer and reflector calls to different models based on input size using `ModelByInputTokens`. Short inputs can go to a fast, cheap model while longer ones get sent to a more capable one -- all configured declaratively with token thresholds. Tracing shows which model was selected and why.  ### MongoDB Support for Datasets and Experiments  `@mastra/mongodb` now stores versioned datas |

## Citation

- HTML: https://www.freshcrate.ai/projects/mastra
- Markdown: https://www.freshcrate.ai/projects/mastra.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/mastra/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
