Zum Inhalt springen

Mastra Release Notes

Einträge
38
Quellen
1
Zuletzt aktualisiert

Folge Mastra, um die Release Notes in deinen Feed zu holen.

Mastra

December 2, 2026

Highlights

Tenant-aware Schedules + external tick runner

New multi-tenant scheduling support lets you drive schedule ticks from outside the process via runScheduleTick, and scope storage operations per tenant with SchedulesStorage.forTenant(tenantId) (implemented for Postgres + LibSQL + in-memory).

Knowledge storage gets batch reads/writes + importer batching (massive performance win)

Knowledge adapters can now optionally implement batch APIs (e.g. getPageChains, getPagesByPaths, applyPageWrites, importers.writeNodes) enabling importer flushes to read/lock/save in batches; on PostgreSQL this drops a 20-page flush from ~950 statements to <60 while preserving identical results.

Cross-process agent signals: pending/queued signals persisted in Memory stores

Evented agents can now reliably receive signals while steps run in other processes by persisting pending signals in the Memory domain (supportsPendingSignals) with reserved queue thread IDs; queued signals are also supported so messages can wait for the next run instead of interrupting the current one (Postgres + LibSQL + in-memory).

Channels “reply mode” tooling + thread linking for Slack-style agents …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

November 25, 2026

Highlights

Durable, crash-safe dataset experiments

Experiments can now run as durable evented workflows (durable: true on startExperimentAsync() and the server/client trigger APIs), so redeploys or worker crashes won’t leave runs stuck at running—another worker can pick up unacked items and continue.

Knowledge importers + importer-runner infrastructure (experimental)

Mastra adds an end-to-end Knowledge importer contract (KnowledgeImporter), Knowledge-managed importer execution (knowledge.importers.run()), and importer bookkeeping persisted in supported stores (in-memory, LibSQL, Postgres) to safely sync external sources into Knowledge with batching, leases, replay protection, and settle/repair semantics.

Native durable Agent execution engine selection (default/evented)

Agents can now execute natively on the durable engines via durable.executionEngine (agent-level or Mastra.durable defaults) while keeping existing streaming/model-output APIs; note that the earlier prerelease value executionEngine: 'durable' is now executionEngine: 'default'.

Channels-first chat integrations: createChannelTools() + Slack toolset

Core introduces createChannelTools() for reading/posting within the run’s active chat thread across supported channel adapters, and @mastra/slack adds createSlackTools() for Slack-specific capabilities (search, attachment download, user/channel lookup) with the same access scoping. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

November 17, 2026

Highlights

Storage Version 2 for Agents & Evented Workflows (much smaller writes + faster runs)

Agents (createDurableAgent, createEventedAgent) and evented workflows can now opt into experimental storageVersion: 2, storing runs as a header + per-step rows so long runs write only deltas. This dramatically cuts payload sizes and storage churn (example: 98 MB → 11 MB published; 75 MB → 3.1 MB written) and standardizes APIs like result.steps() async + getState().

Automatic Workflow Crash Recovery Loop + Smarter Broker-Aware Recovery

Mastra now includes a workflow recovery loop started by startWorkers() that restarts crashed default-engine runs without waiting for another instance boot, using a leader election lease across instances. Recovery behavior is also now broker-aware (via pubsub.redeliversUnacked): on Redis/Valkey Streams and Google Cloud Pub/Sub, instances stop “restarting everything on boot” and instead let the broker redeliver unacked step messages to prevent duplicate concurrent execution.

Knowledge Lifecycle APIs: Move Pages & Re-embed Existing Content

Knowledge gets two major operational APIs: knowledge.movePage() to move a page (and descendants) without losing IDs/embeddings/links, and knowledge.reembed() to (re)embed existing pages/notes in resumable batches—critical for backfilling content or switching embedders without rewriting pages. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

November 12, 2026

Highlights

Resumable Agent streams (now for every Agent)

Every Agent can now publish a resumable run stream with replay caching, cross-instance observe/abort (agent.observe(runId), observe().abort(), agent.abortRunStream(runId)), and ownership/TTL enforcement—so clients can reconnect without killing the run by default.

Built-in MCP server at /api/mcp + OAuth discovery

@mastra/server now ships a built-in MCP endpoint (enabled by default when server.auth is configured) so MCP clients can call your agents/workflows/tools without defining an MCPServer, plus OAuth discovery/audience checks via server.mcp.oauth and a new introspection route GET /api/mcp/builtin.

Workflow Storage Version 2 (delta writes) now supported on Postgres + libSQL

Experimental storageVersion: 2 reduces writes by persisting only per-step changes (instead of rewriting the whole run) and now works with @mastra/pg and @mastra/libsql, with results that can lazily load step history via an async steps() function.

Resumable AI SDK chat routes (useChat({ resume: true }) support)

chatRoute({ resumable: true }) now generates a POST + reconnect GET endpoint pair that replays/follows active runs via agent.observe(runId), with explicit route-array configuration support (server.apiRoutes: [routes]).

One-off and bounded schedules for agents & workflows …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

November 4, 2026

Highlights

Knowledge v2: page-tree model, richer tools, and server-side sync APIs

Knowledge is now a first-class page tree (pages/notes/pins) with major tool upgrades: knowledge_list, line/section/grep-style reads in knowledge_read, list pinning (kind: 'list'), and a link index for counting/listing [[links]]. Apps can also sync external content via server APIs like knowledge.upsertPage()/removePage() and note upserts, with optional vector/hybrid search and chunked embeddings for very long pages.

Knowledge Explorer + read-only Knowledge HTTP/JS client APIs (and SSE change stream)

Mastra Server now offers opt-in read-only Knowledge routes (tree/page/graph/search/activity) plus an SSE events stream, with matching listKnowledge() / getKnowledge() APIs in @mastra/client-js. These routes are scope-gated (and FGA-aware) and enable building Knowledge browsing UIs outside Studio, including link-count/link-edge endpoints when the store supports the link index.

Durable agent continuity across API restarts (fencing + shared storage requirement)

Evented durable agents no longer stop when the API process shuts down: workers continue running, clean up, and free threads correctly, with improved run ownership isolation and safer cancellation semantics. To get true cross-process continuity you now need fencing-capable shared storage (e.g. PostgresStore from @mastra/pg) plus shared pubsub/lease infrastructure. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

November 2, 2026

Highlights

MCP Tasks (Storage-backed, restart-safe long-running execution)

@mastra/mcp adds experimental Mastra-storage-backed MCP tasks so long-running tools/agents/workflows can return immediately with a task, be polled/answered/cancelled across instances, and survive restarts with shared storage and unified tracing.

Background Tasks for Non-Agent Owners (Retention, Concurrency, Queued Resume)

Mastra background tasks now support non-agent owners (e.g., MCP servers) with per-task expiresAt/metadata retention, per-owner concurrency overrides, and { onNoSlot: 'queue' } to queue resumes until capacity frees up (with storage adapters updated to persist the new fields).

Observability: Outcomes/Stop Reasons + Model/Provider + TTFT Across Queries and Stores

Observability now records execution outcome + typed stopReason (and context), exports model/provider, and measures timeToFirstTokenMs (TTFT); these fields are queryable/groupable in clients/servers and supported by major stores (ClickHouse/DuckDB/Postgres), enabling better failure analysis and model/provider cost/perf breakdowns.

Dashboards and Saved Views as Schemas + UI Rendering/Sharing

Core adds browser-safe schemas for custom dashboard definitions and saved observability list views, while @mastra/playground-ui introduces DashboardRenderer plus first-class Saved Views for Traces/Spans/Threads/Logs (URL↔view helpers, view picker, and host-provided persistence). …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

October 28, 2026

Highlights

End-user (per-resource) connections in @mastra/connect

tools({ resourceId }) and new userConnectRoutes() enable user-scoped OAuth connections so agents can safely use each end user’s accounts (in addition to global connections), with built-in caching and hard enforcement that one user’s connection can’t serve another user.

In-chat “request connection” prompts for missing integrations

Resource-scoped tool resolution now includes a built-in request_connection tool that returns a structured connect-prompt payload (provider list + connection state) so chat UIs can render a connect card when the agent needs an unconnected provider.

Span aggregation API + store support (ClickHouse/Postgres/DuckDB)

New POST /observability/spans/aggregate plus aggregateSpans() in ClickHouse/Postgres/DuckDB enable fast grouped metrics over spans (counts, latency, error rate, tokens, cost) for agent runs, tools, workflows, and more—powering richer Metrics/observability experiences.

Unified, persisted provider-error classification (better retries + better UX)

@mastra/core/error adds classifyProviderError (and related helpers) and server streams now carry provider status/body/requestId/modelId/codes/reason so clients can show consistent, actionable error messages live and after reload; retry logic (StreamErrorRetryProcessor) now aligns with the same classification.

Run status + durable execution control improvements …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

October 21, 2026

Highlights

MCP Events (poll/stream/webhooks + Studio inspection)

Experimental MCP Events (SEP-3415 draft) let MCP servers publish event streams that clients can poll, keep a stream open for, or receive via signed webhooks. Core/server/client add inspection APIs so Studio can list event types, stream occurrences, and test-emit events under mastra dev.

Observability Upgrades: Span Aggregation + “Time to First Chunk” + Richer Trace/Span Querying

New aggregateSpans() storage contract enables per-span analytics (e.g., p95 latency per tool, token/cost per agent) via the span-aggregate feature. Observability queries gain timeToFirstChunkMs fields, filtering, and sorting, plus expanded trace-scope fields (root entityId, root name, root spanType) and richer querySpans() context/parent/root-entity filters (with updated store capabilities to detect support).

Agent Controller Sessions Move to Session IDs (Multi-session per resource)

Sessions are now addressed by sessionId (not resourceId + scope) across core, server, and client-js, enabling many sessions per resource while keeping resourceId as the memory/thread owner key. New APIs include controller.getSession(sessionId), updated createSession()/deleteSession() signatures, and server routes under /agent-controller/:controllerId/sessions/:sessionId/....

Sandboxes Get a Native Filesystem API (Faster workspace operations) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

October 15, 2026

Highlights

Agent Scopes (multi-tenant identity + safer memory/thread routing)

Agents now support scopes (<type>:<value>) passed per call, configured on the agent, or injected by trusted middleware via MASTRA_SCOPES_KEY; Mastra merges all three. Memory can derive resource and thread from resource:/thread: scopes (with conflicts now returning HTTP 400), nested calls can choose their own thread, and resumed runs preserve their original scopes (no adding new ones).

Trace Aggregation API (server + client + React)

Mastra adds trace aggregation end-to-end: POST /observability/traces/aggregate is discoverable via GET /observability/capabilities (traceAggregate), clients get mastraClient.aggregateTraces(), and React adds useTraceAggregateAvailable(). Field discovery now returns an aggregate schema describing valid group-by dimensions and measures.

Typed Signal Queueing for Agents (queueSignal)

You can now queue a typed signal behind the active run—without degrading it into a plain user message—via Agent.queueSignal() / session support and the new server route POST /agents/:agentId/queue-signal. Runs triggered by a signal also record signal metadata on the AGENT_RUN span for better traceability.

Faster, more usable trace lists with stored input/output/error previews …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.77.0: Sandbox-Anbieter, Umgebungs-Builds und Run-Fencing

Mastra 1.77.0 führt Factory Sandbox Provider für Docker, E2B und Platform ein, unterstützt vorab erstellte Umgebungs-Builds und Multi-Repo-Sessions und verbessert die Sicherheit laufender Instanzen durch Run-Fencing über verschiedene Storage-Backends.

Highlights

Factory Sandbox Provider Contract + New Providers (Docker/E2B/Platform)

Mastra Factory now has a first-class FactorySandbox contract for sandbox providers, enabling tunable settings schemas, repository templates, and prebuilt environment builds. New *FactorySandbox implementations ship for Docker (@mastra/docker), E2B (@mastra/e2b), and Mastra Platform (@mastra/platform-workspace) to plug in with a single provider instance.

Factory Environment Builds + Multi-Repo Sessions

Factory can now build environment templates ahead of sessions (manual, scheduled cron, or push-triggered builds) when the sandbox supports builds, reducing first-session cold starts. Sessions also boot every repository in the environment (ordered, shared workspace root) and can push/open change requests across any environment repo via source_control_* tools with a repository slug.

Durable Agent Safety: Run Fencing Across Storage Backends

Multiple storage adapters (Cloudflare DO/D1, Convex, DynamoDB, DSQL, MongoDB, MSSQL, MySQL, OracleDB, Spanner, Redis/Upstash/Valkey) now support “run fencing” so a durable execution that lost ownership (e.g., crash recovery) can’t overwrite the recovered run’s threads/messages/workflow state—significantly improving correctness in distributed deployments.

Observational Memory Concurrency + New Conflict-Aware Storage Writes …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra Version 1.76.0 vom 11. Oktober 2026

Diese Version verbessert die Crash-Wiederherstellung durch Run-Besitz und Storage-Fencing, führt atomare Working-Memory-Merges auf PostgreSQL ein, erhöht die Dateiverarbeitungs-Resilienz und unterstützt natives 'model: auto' für Observational Memory.

Highlights

Durable agent run ownership + storage-level run fencing

Crash recovery is now safe across multiple instances: runs are claimed by the execution driving them, recovery skips live-claimed runs (or can force take over), and storage adapters can enforce “run fences” to reject writes from an execution that lost ownership—preventing message/thread/workflow state corruption.

Atomic working-memory merges on PostgreSQL (and explicit merge mode over HTTP)

Concurrent schema-based working memory updates no longer stomp each other in Postgres: with scope: 'resource', partial updates are deep-merged inside a row-locked transaction. You can also explicitly mode: 'merge' via the server/client APIs, and unsupported adapters now fail with a clear 400 instead of silently replacing records.

File-handling resilience + sandbox-first file workflows

Agents no longer get “stuck” when a provider rejects an attached file: the new default UnsupportedFileHandler retries with the file removed (or replaced by a sandbox path when available). For file-centric tool workflows, the new FileUploadProcessor can upload eligible user files into the workspace sandbox and pass the model a sandbox path instead of raw file content.

Observational Memory now supports native model: 'auto' (new default) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.75.0: Span Query API, Kosten-Analytics und Self-Embedding-Vektorspeicher

Mastra 1.75.0 bringt eine Span Query API zum Abfragen abgeschlossener Spans über Traces hinweg, token- und kostenbasierte Trace-Aggregation in den Observability-Stores ClickHouse, DuckDB und Postgres, Semantic Recall mit selbst einbettenden Vektorspeichern wie MongoDBVector ohne Client-Embedder sowie neue Funktionen in @mastra/connect 1.0.

Highlights

Span Query API (list completed spans across traces)

New core/server/client support lets you query individual completed spans (with filters, cursors, previews, and model cost) via storage.querySpans() / client.querySpans() / POST /api/observability/spans/query, enabling workflows like “show every failed tool_call in the last hour” without first finding traces.

Trace Aggregation with token + cost analytics (now across stores)

aggregateTraces() now supports token and cost measures (tokens.* sums/avgs and cost.sum/cost.avg with coverage + currency handling), and is implemented in the ClickHouse, DuckDB, and Postgres observability stores—making cost/tokens-first dashboards and “top spenders” queries a first-class capability.

Self-embedding vector stores for Semantic Recall (no client embedder required)

Semantic recall can now run against vector stores that generate embeddings themselves (MastraVector.isSelfEmbedding), including MongoDBVector via autoEmbed, so memory recall and message writes work without configuring a client-side embedder.

@mastra/connect 1.0: new channels/providers capabilities (Teams, Discord credential security) + better observability …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.74.0: Zugriff auf Konversation in Tools und neue Formular-Primitives

Mastra 1.74.0 gibt Tools über context.agent.getMessages() Zugriff auf die gesamte Konversation, erweitert getObservationalMemoryHistory um Filterung, Sortierung und Lookup per recordId, ermöglicht Memory Recall das seitenweise Blättern um Treffer-Gruppen und bringt neue barrierefreie Formular-Primitives (Field, Fieldset, Form, SearchInput) in die Playground UI.

Highlights

Tool Context Can Read the Full Conversation (agent.getMessages())

Tools now have access to the current conversation state via context.agent.getMessages() in both standard and durable agent loops, including remembered messages and in-run responses—enabling richer, context-aware tool behavior without changing the existing input-only messages field.

Observational Memory History Search (Filtering, Ordering, Record Lookup)

getObservationalMemoryHistory gained group filtering (groupId), explicit ordering (sortDirection), and direct lookup by recordId, with adapter capability signaling via supportsObservationalMemoryHistorySearch (notably affecting multiple DB adapters; Convex requires a server function redeploy for the new filters to apply).

Memory Recall Can Page Through Observation Groups Around Search Hits

Recall now supports paging “before/after” from a matched groupId, including groups condensed by reflection and buffered-but-not-yet-activated groups—improving investigation workflows without requiring re-indexing, alongside clearer, chronologically ordered search results and better first-turn retrieval guidance.

Playground UI: New Accessible Form Field Primitives (Field, Fieldset, Form, SearchInput) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.72.0: Channel-Verbindungen ohne Redeploy, sichere Hintergrundaufgaben

Mastra 1.72.0 erlaubt per Resolver-Funktion Channel-Verbindungen ohne Redeploy, macht Hintergrundaufgaben mit persistierten Lease-Besitzern für mehrere Worker sicher und verbessert Durability und Recovery von Agents und Workflows sowie Thread-Streaming und PubSub-Retention.

Highlights

Live channel resolvers (no-redeploy channel connections)

Mastra({ channels }) now accepts a resolver function (via channels() in @mastra/connect) so channel connections added/removed on Mastra Platform appear on a running server without redeploy; use mastra.resolveChannels() to fetch the current provider map at runtime.

Multi-worker safety for background tasks via persisted ownership leases

Background task execution is now lease-fenced (persisted ownerId + expiring lease) so multiple managers can share one storage without double-running tasks or allowing stale workers to overwrite results; storage adapters were updated to enforce expectedOwnerId/lease write conditions.

Stronger durability & recovery for agents/workflows (including evented engine fixes)

Durable and evented agents/workflows get major correctness upgrades: safer crash recovery, preserved timeouts across serialization, proper tool/result processing & transcript transforms on durable runs, savePerStep honored, and EventedAgent is back on the built-in evented engine with recovery support.

Thread streaming and PubSub retention improvements (faster reconnects, less replay) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.71.0: Aushandlung von Observability-Fähigkeiten und früher Tool-Start

Mastra 1.71.0 führt die Aushandlung von Observability-Fähigkeiten zwischen Storage, Server und Client ein, ergänzt Discovery-Funktionen für Filter und die API planTraceAggregate() und startet Tool-Aufrufe im Streaming bereits, sobald ihre Argumente vollständig sind.

Highlights

Observability Capabilities Negotiation (Storage ↔ Server ↔ Client)

Servers now expose observabilityStorageCapabilities (via GET /system/packages and the new GET /observability/capabilities) so Studio/clients can detect which observability APIs a configured store actually supports—covering per-endpoint discovery flags plus traceQuery, threadQuery, deltaPolling, and more—without forcing storage upgrades.

Discovery-Backed Observability Filters & Feature Declarations

Observability stores can now declare supported features via getFeatures() (including entity/service/environment/tag/metric discovery), letting Studio only call compatible endpoints; VNext stores and Oracle now report discovery support, and discovery routes return empty results (not 500s) when unsupported.

Trace Aggregation Planning API for Backends

planTraceAggregate() validates and converts an aggregateTraces() request into a TrustedTraceAggregatePlan that any storage backend can execute without re-validating, enabling consistent query behavior and clearer validation errors across storage implementations.

Eager Tool Execution for Faster Streaming Runs

Tool calls now start as soon as their own arguments are complete (instead of waiting for the model to finish streaming the whole step), cutting idle time in multi-tool steps; can be disabled per run (and is now supported in stored agent default options). …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.69.0: Registrierbare Classifiers und Hintergrund-Tools

Mastra 1.69.0 macht Classifiers zu einem registrierbaren Baustein mit Management-API und Workflow-Step-Nutzung, ergänzt den ClassifierProcessor, der bei Fehlern standardmäßig abbricht, ermöglicht Hintergrund-Tools über context.background.adopt() und bringt neue generierte Provider in @mastra/connect.

Highlights

Classifiers as a First-Class Primitive (Core + Workflows)

Mastra now supports registering classifiers on new Mastra({ classifiers }), with a full management API (getClassifier*, listClassifiers, addClassifier, removeClassifier) and automatic root tracing for classifier evaluations. Those configured classifiers can also be used as typed workflow steps (including fluent + dynamic graphs) to power typed branching/conditional control flow with token usage.

Policy Enforcement with ClassifierProcessor (Input/Output/Streaming)

New ClassifierProcessor lets you apply typed classifier policies to agent input, output, and streaming content, enabling safety/routing gates with explicit abort behavior. It now fails closed by default (abort on classifier failure), with an opt-in errorStrategy: 'warn' to preserve prior fail-open behavior.

Native Background Tool Execution with context.background.adopt()

Tools can now acknowledge immediately while handing a long-running native background operation to Mastra via context.background.adopt({ completion, cancel }), so execution can track completion/cancellation without keeping execute() pending. This enables cleaner async/background tool patterns (with the caveat that adopted handles are in-memory and don’t resume after restart).

Connected SaaS Tools at Scale via @mastra/connect (New Generated Providers) …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.68.0: @mastra/mcp 2.0.0, neue Vector Stores und Trace-Querying

Mastra 1.68.0 baut @mastra/mcp@2.0.0 auf der MCP-Revision 2026-07-28 mit Suspend/Resume für Tools neu auf, fügt die Vector Stores Azure AI Search und Weaviate hinzu, erweitert das Trace-Querying um Pagination, Discovery und Delta Polling und ändert die Durable-Agent-Performance, indem running-Checkpoints standardmäßig nicht mehr persistiert werden.

Highlights

MCP v2 (2026-07-28) server architecture in @mastra/mcp@2.0.0

@mastra/mcp is now rebuilt on the MCP 2026-07-28 revision: no initialize handshake/session headers, and tools that need input use first-class suspend/resume (context.suspend() + context.resumeData) with signed, self-contained continuation state (requestState). Server routes now return explicit { status: 'suspended', suspendPayload, resumeSchema } vs { status: 'completed', output }.

New vector stores: Azure AI Search + Weaviate

Two new MastraVector backends land: @mastra/azure-ai-search@0.1.0 (Azure AI Search with auto-indexed filterable metadata for Memory/RAG) and @mastra/weaviate@0.1.0 (full MastraVector contract with rich Mongo-style metadata filtering and deterministic vector ID mapping).

Observability trace querying gets “real” pagination, discovery, and delta polling (core/server/client + ClickHouse/DuckDB/PG)

Advanced trace queries now support page-based pagination (with totals), bounded field/value discovery APIs, and delta polling cursors to transition from initial load → incremental updates efficiently. Trace list results also include root-span summary fields (name, createdAt, metadata, inputPreview, etc.) so UIs can render useful lists without fetching full traces.

Durable-agent performance: stop persisting running checkpoints by default …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.67.0: Workflow-Builder-Backend und neues Paket @mastra/connect

Mastra 1.67.0 bringt ein Studio-Workflow-Builder-Backend für persistierte Workflows, das neue Paket @mastra/connect, die Übertragung von Threads an eine neue resourceId sowie erweiterte Steuerung für Hintergrund-Tools.

Highlights

Studio Workflow Builder Backend (persisted workflows)

A new Studio Workflow Builder backend can be enabled via the workflowBuilder editor option, adding an editor-owned agent that authors persisted workflow definitions plus new server endpoints (GET /editor/workflow-builder/settings, POST /editor/workflow-builder/stream) gated by stored-workflow permissions.

New @mastra/connect Package (platform integrations → agent tools)

@mastra/connect turns Mastra Platform integration connections into agent tools that execute through the platform connection proxy (credentials injected + token refresh) so your app never handles provider secrets; it supports live discovery/refresh of connected tools and optional allowlisting via integrations.

Thread Ownership Transfer (resourceId reassignment)

Threads can now be transferred to a new resourceId with Memory.updateThreadResourceId({ threadId, resourceId }), a new server route POST /memory/threads/:threadId/transfer, and client-js support via MemoryThread.transfer(), with transactional/serialized implementations across major SQL adapters (and vector migration when semantic recall is enabled).

More Powerful Background Tool Execution Controls …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.66.0: Worker-Provisionierung und erweiterte Trace-Abfragen

Mastra 1.66.0 ergänzt Worker-Provisionierung für Mastra Cloud über ein workers.json-Manifest, erweiterte Trace-Abfragen mit Filtern über Span-Felder, Metadaten, Feedback und Scores, das Löschen von Feedback und Scores sowie Transform-Hooks für Observational Memory.

Highlights

Deploy-scoped worker provisioning for Mastra Cloud

@mastra/deployer can now statically emit a versioned workers.json manifest (when shared storage + PubSub are configured) to provision dedicated orchestration/scheduler/background/custom workers, and runtime workers expose an authenticated endpoint so Cloud can compare live topology vs build-time.

Advanced trace queries: richer filtering across span fields, metadata, feedback, and scores (with DB support)

Trace querying gains high-power predicates for same-span properties (model/provider, duration, outcome, identity, lineage), portable top-level metadata.* predicates, and richer feedback / scores filters—supported end-to-end in @mastra/server plus @mastra/pg, @mastra/clickhouse, and @mastra/duckdb.

Observability signal deletion (feedback + scores) across storage, server, and client

Core observability storage adds idempotent batch deleteFeedback() / deleteScores() (with optional org/resource scoping), with corresponding DELETE /api/observability/* routes in @mastra/server and client methods in @mastra/client-js; ClickHouse/DuckDB/Postgres (and others) implement backend handling.

Observational Memory transform hooks

@mastra/memory adds async transform hooks (beforeObservation, afterObservation, beforeReflection, afterReflection) so apps can filter/redact/reshape messages and generated observations/reflections before model calls or persistence. …

Originalquelle(öffnet in neuem Tab)Problem melden

Mastra

Mastra 1.65.0: Portabler Trace-Query-Vertrag und mandantenbezogenes Löschen

Mastra 1.65.0 führt einen portablen Advanced-Trace-Query-Vertrag mit Server-Endpoint und Implementierungen für ClickHouse, DuckDB und Postgres ein, ermöglicht mandantenbezogenes Löschen von Traces mit Kaskadierung, erlaubt Metadaten für Workflow-Kontrollfluss-Blöcke, ergänzt handlers.onAction für Channel-Aktionen und macht Factory Custom Boards zu einem First-Class-Feature.

Highlights

Advanced Trace Querying (Core Contract + Server Endpoints + Storage Implementations)

Mastra now has a strict, portable “advanced trace query” contract (bounded time ranges, recursive predicates, thread grouping, deterministic cursor pagination) plus an authenticated server endpoint for it, with real implementations in ClickHouse, DuckDB, and Postgres.

Tenant-Scoped Trace Deletion + Trace Cascade Cleanup (Experiments & API)

You can delete up to 1,000 traces per request with tenant scoping, and deletion now cascades across spans and trace-linked signals (scores, feedback, metrics, logs). Experiment deletion now also cleans up the traces the experiment produced (including orphaned experiments), exposed in core APIs, server routes, and client-js methods.

Workflow Graph Metadata for Control-Flow Blocks

Control-flow entries (parallel/branch/loops/foreach/sleep/map, etc.) now support optional id, description, and metadata, surviving serialization and rehydration so visual editors/review tools can label and stably address blocks (not just executable steps).

Agent Channel Actions API (Handle Button Clicks / Select Changes)

Agent channels gained handlers.onAction so apps can handle interactive UI card actions (e.g., “retry” buttons) while still delegating to Mastra’s built-in approval handler (or disabling it).

Factory Custom Boards Become First-Class (Installable, Typed, UI + Policy/Rules Ownership) …

Originalquelle(öffnet in neuem Tab)Problem melden