@mastra/server breaking changes
Updated December 4, 2026
On this page
Latest version 2.0.4, released May 13, 2025. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 1.82.0 to 2.0.4: 992 breaking changes in 8 versions.
- From 1.0.0 to 2.0.4: 2,615 breaking changes in 74 versions.
@mastra/server 2.0.4 breaking changes
- Signature changed
handlers:agents.getAgentByIdHandler
Was function getAgentByIdHandler({mastra, runtimeContext, agentId}: Context & {runtimeContext: RuntimeContext; agentId: string;}): Promise<{name: any; instructions: string; tools: any; provider: string; modelId: string;}>; now function... npmjs.com - Signature changed
handlers:memory.getMessagesHandler
Was function getMessagesHandler({mastra, agentId, threadId}: Pick<MemoryContext, 'mastra' | 'agentId' | 'threadId'>): Promise<{messages: CoreMessage[]; uiMessages: Message[];}>; now function getMessagesHandler({mastra, agentId, threadId... npmjs.com - Signature changed
handlers:tools.executeAgentToolHandler
Was function executeAgentToolHandler({mastra, agentId, toolId, data, runtimeContext}: Pick<ToolsContext, 'mastra' | 'toolId'> & {agentId?: string; data: any; runtimeContext: RuntimeContext;}): Promise<any>; now function... npmjs.com - Signature changed
handlers:tools.executeToolHandler
Was function executeToolHandler(tools: ToolsContext['tools']): ({mastra, runId, toolId, data, runtimeContext}: Pick<ToolsContext, "mastra" | "toolId" | "runId"> & {data?: unknown; runtimeContext: RuntimeContext;}) => Promise<any>; now... npmjs.com - Signature changed
handlers:vNextWorkflows.getVNextWorkflowByIdHandler
Was function getVNextWorkflowByIdHandler({mastra, workflowId}: VNextWorkflowContext): Promise<{steps: any; name: string | undefined; stepGraph: SerializedStepFlowEntry[]; inputSchema: string | undefined; outputSchema: string |... npmjs.com - Signature changed
handlers:vNextWorkflows.resumeAsyncVNextWorkflowHandler
Was function resumeAsyncVNextWorkflowHandler({mastra, workflowId, runId, body, runtimeContext}: VNextWorkflowContext & {body: {step: string | string[]; resumeData?: unknown;}; runtimeContext?: RuntimeContext_2;})... npmjs.com - Signature changed
handlers:vNextWorkflows.startAsyncVNextWorkflowHandler
Was function startAsyncVNextWorkflowHandler({mastra, runtimeContext, workflowId, runId, inputData}: Pick<VNextWorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {inputData?: unknown; runtimeContext?: RuntimeContext_2;})... npmjs.com - Signature changed
handlers:vNextWorkflows.startVNextWorkflowRunHandler
Was function startVNextWorkflowRunHandler({mastra, runtimeContext, workflowId, runId, inputData}: Pick<VNextWorkflowContext, 'mastra' | 'workflowId' | 'runId'> & {inputData?: unknown; runtimeContext?: RuntimeContext_2;}): Promise<{message... npmjs.com
@mastra/server 2.0.4-alpha.0 breaking changes
- Behavior changed
Agents, tools and workflows now take runtimeContext set from the playground; code relying on the previous context may behave differently. github.com
@mastra/server 2.0.3 breaking changes
- Signature changed
handlers:agents.generateHandler
Was function generateHandler({mastra, runtimeContext, agentId, body}: Context & {runtimeContext: RuntimeContext; agentId: string; body: GetBody<'generate'> & {resourceid?: string;};}): Promise<GenerateTextResult<any, any>>; now function... npmjs.com - Signature changed
handlers:agents.streamGenerateHandler
Was function streamGenerateHandler({mastra, runtimeContext, agentId, body}: Context & {runtimeContext: RuntimeContext; agentId: string; body: GetBody<'stream'> & {resourceid?: string;};}): Promise<Response | undefined>; now function... npmjs.com
@mastra/server 2.0.2 breaking changes
- Removed
handlers:vNextWorkflows.getVNextWorkflowRunHandler
vNextWorkflows.getVNextWorkflowRunHandler was removed in @mastra/server 2.0.2 npmjs.com - Signature changed
handlers:vNextWorkflows.getVNextWorkflowByIdHandler
Was function getVNextWorkflowByIdHandler({mastra, workflowId}: VNextWorkflowContext): Promise<{steps: any; name: string | undefined; stepGraph: StepFlowEntry[]; inputSchema: string | undefined; outputSchema: string | undefined;}>; now... npmjs.com - Signature changed
handlers:vNextWorkflows.getVNextWorkflowRunsHandler
Was function getVNextWorkflowRunsHandler({mastra, workflowId}: VNextWorkflowContext): Promise<WorkflowRuns>; now function getVNextWorkflowRunsHandler({mastra, workflowId, fromDate, toDate, limit, offset, resourceId}: VNextWorkflowContext &... npmjs.com - Signature changed
handlers:workflows.getWorkflowRunsHandler
Was function getWorkflowRunsHandler({mastra, workflowId}: WorkflowContext): Promise<WorkflowRuns>; now function getWorkflowRunsHandler({mastra, workflowId, fromDate, toDate, limit, offset, resourceId}: WorkflowContext & {fromDate?: Date... npmjs.com
@mastra/server 2.0.1 breaking changes
- Signature changed
handlers:agents.getAgentByIdHandler
Was function getAgentByIdHandler({mastra, agentId}: Context & {agentId: string;}): Promise<{name: any; instructions: string; tools: any; provider: string; modelId: string;}>; now function getAgentByIdHandler({mastra, runtimeContext... npmjs.com - Signature changed
handlers:agents.getAgentsHandler
Was function getAgentsHandler({mastra}: Context): Promise<any>; now function getAgentsHandler({mastra, runtimeContext}: Context & {runtimeContext: RuntimeContext;}): Promise<any>. npmjs.com - Signature changed
handlers:agents.getEvalsByAgentIdHandler
Was function getEvalsByAgentIdHandler({mastra, agentId}: Context & {agentId: string;}): Promise<{id: string; name: any; instructions: string; evals: EvalRow[];}>; now function getEvalsByAgentIdHandler({mastra, runtimeContext, agentId}... npmjs.com - Signature changed
handlers:agents.getLiveEvalsByAgentIdHandler
Was function getLiveEvalsByAgentIdHandler({mastra, agentId}: Context & {agentId: string;}): Promise<{id: string; name: any; instructions: string; evals: EvalRow[];}>; now function getLiveEvalsByAgentIdHandler({mastra, runtimeContext... npmjs.com - Signature changed
handlers:network.getNetworkByIdHandler
Was function getNetworkByIdHandler({mastra, networkId}: Pick<NetworkContext, 'mastra' | 'networkId'>): Promise<{id: string; name: string; instructions: string; agents: {name: string; provider: string; modelId: string;}[]; routingModel... npmjs.com - Signature changed
handlers:network.getNetworksHandler
Was function getNetworksHandler({mastra}: Pick<NetworkContext, 'mastra'>): Promise<{id: string; name: string; instructions: string; agents: {name: string; provider: string; modelId: string;}[]; routingModel: {provider: string; modelId... npmjs.com - Signature changed
handlers:voice.generateSpeechHandler
Was function generateSpeechHandler({mastra, agentId, body}: VoiceContext & {body?: {text?: string; speakerId?: string;};}): Promise<{audioData: Buffer<ArrayBuffer>;}>; now function generateSpeechHandler({mastra, agentId, body}... npmjs.com
@mastra/server 2.0.0 breaking changes
- Removed
The __ functions in storage were removed and moved to a storage proxy so that init is always called. Code that calls the old __ storage functions must switch to the storage proxy. github.com - Removed
a2a/store:InMemoryTaskStore
InMemoryTaskStore was removed in @mastra/server 2.0.0 npmjs.com - Removed
a2a/store:TaskStoreVersionConflictError
TaskStoreVersionConflictError was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:AuthMiddlewareContext
AuthMiddlewareContext was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:AuthResult
AuthResult was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:canAccessPublicly
canAccessPublicly was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:checkRules
checkRules was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:coreAuthMiddleware
coreAuthMiddleware was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:defaultAuthConfig
defaultAuthConfig was removed in @mastra/server 2.0.0 npmjs.com - Removed
auth:findMatchingCustomRoute
findMatchingCustomRoute was removed in @mastra/server 2.0.0 npmjs.com
And 958 more in this version. Sign up to see every change
Older versions
69 older versions, each with its first changes. Sign up to see every change
Show 69 older versions
@mastra/server 2.0.0-alpha.8 breaking changes
- Renamed
Container
The Container class was renamed to RuntimeContext. Code that imports or uses Container must use RuntimeContext instead. github.com
@mastra/server 2.0.0-alpha.3 breaking changes
- Removed
The __ functions in storage were removed and moved to a storage proxy so that init is always called. Code that calls the old __ storage functions must switch to the storage proxy. github.com
@mastra/server 1.82.0 breaking changes
- Behavior changed
Errors in streamed chunks, including tool and run errors, no longer send stacks to clients, even for errors that used to carry one. Clients that read stacks from stream errors must stop relying on them. github.com - Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "POST"; path: "/agents/:agentId/clone"; responseType: "json"; streamFormat?: 'sse' |... npmjs.com
And 45 more in this version.
@mastra/server 1.82.0-alpha.3 breaking changes
- Behavior changed
Errors in streamed chunks now keep their message but no longer send stacks, so code that reads stack fields from stream errors must stop relying on them. github.com
@mastra/server 1.81.0 breaking changes
- Behavior changed
When the request context fails the agent's requestContextSchema, generate and stream routes now respond with HTTP 400 instead of 500. Clients that treat 500 as a server failure should also handle 400 as a bad request. github.com - Signature changed
handlers:mcp.EMIT_MCP_SERVER_EVENT_ROUTE
Was const EMIT_MCP_SERVER_EVENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "POST"; path: "/mcp/:serverId/events/:eventName/emit"; responseType: "json"... npmjs.com
And 29 more in this version.
@mastra/server 1.80.0 breaking changes
- Behavior changed
Server handlers use the same permission provider as route checks. A request with no applicable provider is now denied instead of allowed, so check your access control configuration. github.com - Behavior changed
controller.abort
Calling controller.abort() on the streaming fetch no longer stops a durable run. To stop execution, send POST /agents/:agentId/runs/:runId/abort or call agent.abortRun(runId) with the JavaScript client. github.com
And 16 more in this version.
@mastra/server 1.80.0-alpha.6 breaking changes
- Behavior changed
observe
Consumers of /observe must read the public frame directly, for example event.payload.text instead of event.data.payload.text. github.com - Behavior changed
POST .agents.:agentId.recover
POST /agents/:agentId/recover now returns HTTP 409 when the run is no longer active. Update any error handling that expects a different status. github.com
@mastra/server 1.80.0-alpha.5 breaking changes
- Behavior changed
Studio requests are now checked against access control configured only under studio, including thread access. Requests with no applicable provider are denied. github.com - Configuration changed
Upgrade @mastra/core to 1.80.0 or newer before upgrading @mastra/server, since install now fails with core 1.79 or older. github.com
@mastra/server 1.80.0-alpha.1 breaking changes
- Behavior changed
controller.abort
Calling controller.abort() on the streaming fetch only disconnects the observer. To stop execution, call POST /agents/:agentId/runs/:runId/abort or agent.abortRun(runId). github.com
@mastra/server 1.80.0-alpha.0 breaking changes
- Behavior changed
Authenticated Studio users without a route's required permission now get a 403 instead of being allowed through. Check that Studio users have the permissions they need. github.com
@mastra/server 1.79.0 breaking changes
- Removed
querySpans
querySpans() no longer accepts model and provider filters and no longer returns cost or the truncated-flag fields. Remove those from your queries and code. github.com - Removed
sessionScope
Requests that still send sessionScope, in the query or the create body, now get a 400 naming sessionId. Send sessionId instead. github.com
And 32 more in this version.
@mastra/server 1.79.0-alpha.9 breaking changes
- Renamed
sessionScope
The sessionScope param is removed and requests sending it get a 400; use sessionId in paths and create bodies. github.com
@mastra/server 1.79.0-alpha.4 breaking changes
- Configuration changed
POST .observability.threads.query
Thread rows need a top-level time selector; the old traces.timeRange shape is replaced. Legacy identity requests still work. github.com
@mastra/server 1.79.0-alpha.1 breaking changes
- Behavior changed
querySpans
querySpans() no longer accepts model and provider filters or returns cost, inputTruncated, outputTruncated and errorTruncated. Remove those filters and fields from calls that use them. github.com
@mastra/server 1.78.0 breaking changes
- Behavior changed
Routes without an ownership check now deny a run id that belongs to a different resource. Reusing another resource's run id returns 403 instead of succeeding. github.com - Behavior changed
A mapped caller can only act on its own workflow runs. Callers not mapped to a resource need an FGA provider for privileged run access. github.com
And 12 more in this version.
@mastra/server 1.77.0 breaking changes
- Behavior changed
POST .workflows.durable-agentic-loop.start-async
Workflow routes and POST /schedules now return 404 for internal workflows such as durable-agentic-loop. Call the agent routes instead, such as POST /agents/:agentId/stream and POST /agents/:agentId/resume-stream. github.com - Signature changed
handlers:workflows.EXECUTE_WORKFLOW_STEP_ROUTE
Was const EXECUTE_WORKFLOW_STEP_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "POST"; path: "/workflows/:workflowId/runs/:runId/steps/execute"; responseType... npmjs.com
And 4 more in this version.
@mastra/server 1.76.0 breaking changes
- Removed
POST .web.config.om.provider-defaults
The route was removed, so callers of POST /web/config/om/provider-defaults will no longer find it. github.com - Behavior changed
Stored memory model settings are now applied per run rather than copied into session state. Code that relied on connecting a provider to set observer or reflector models must now save those settings explicitly. github.com
And 58 more in this version.
@mastra/server 1.76.0-alpha.8 breaking changes
- Behavior changed
Durable agent requests that conflict with a run's state now return 409 Conflict. Clients that treated these as server errors should handle 409. github.com
@mastra/server 1.76.0-alpha.4 breaking changes
- Removed
POST .web.config.om.provider-defaults
The unused observational memory provider-defaults route was removed. Stop calling it. github.com - Behavior changed
With an authorization provider configured, read routes need agent-controller:read and session-changing operations need agent-controller:execute. github.com
And 1 more in this version.
@mastra/server 1.76.0-alpha.1 breaking changes
- Behavior changed
client.updateWorkingMemory
Merge-mode working memory updates now fail with HTTP 400 when the storage adapter does not support atomic merges, instead of replacing the record. github.com
@mastra/server 1.76.0-alpha.0 breaking changes
- Behavior changed
POST .api.memory.threads
Creating a thread or conversation with an id owned by a different resource now returns 403. Re-creating your own thread with the same id still works. github.com
@mastra/server 1.75.0 breaking changes
- Removed
modeId
Clients must stop sending modeId when switching models; sessions now persist one current model for the thread. github.com - Removed
scope
Clients must stop sending scope when switching models; sessions now persist one current model for the thread. github.com
And 32 more in this version.
@mastra/server 1.73.0 breaking changes
- Behavior changed
approveTool
approveTool() now resolves to { ok: false, reason } when a decision is stale, duplicate, or no longer pending, instead of always reporting success. Check the ok field and do not rely on automatic retries. github.com - Behavior changed
respondToToolSuspension
respondToToolSuspension() now resolves to { ok: false, reason } when the response was ignored, instead of always reporting success. It also no longer retries automatically, so check the ok field and handle failures yourself. github.com
And 5 more in this version.
@mastra/server 1.72.0 breaking changes
- Behavior changed
Stored agents now keep their durable execution settings, and changing durability produces a new agent version rather than updating in place. Code that expects the same agent version after changing durability must account for the new... github.com - Behavior changed
resume-stream
Resuming a durable run now verifies that the run exists, belongs to the caller, is suspended, and matches the requested thread. Callers that resumed runs outside these checks will now get a 403 and must send matching run and thread details. github.com
And 11 more in this version.
@mastra/server 1.72.0-alpha.6 breaking changes
- Behavior changed
resume-stream
Resume requests for durable agents now return 403 unless the run exists, belongs to the caller, is suspended, and matches the requested thread. Callers that resumed mismatched runs must now send matching requests. github.com - Behavior changed
resume-stream-until-idle
Resume-until-idle requests for durable agents now return 403 unless the run exists, belongs to the caller, is suspended, and matches the requested thread. Callers that resumed mismatched runs must now send matching requests. github.com
@mastra/server 1.72.0-alpha.2 breaking changes
- Behavior changed
Updating durable execution settings on a stored agent now produces a new agent version rather than updating in place. Code that expects the same version after a durability change must account for this. github.com
@mastra/server 1.72.0-alpha.0 breaking changes
- Behavior changed
subscribeToThread
Reconnecting to a thread subscription no longer replays runs that already completed. Code that relied on that replay must fetch stored history instead, for example with withInitialHistory. github.com
@mastra/server 1.71.0 breaking changes
- Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "POST"; path: "/agents/:agentId/clone"; responseType: "json"; streamFormat?: 'sse' |... npmjs.com - Signature changed
handlers:agents.GET_AGENT_BY_ID_ROUTE
Was const GET_AGENT_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/agents/:agentId"; responseType: "json"; streamFormat?: 'sse' | 'stream'... npmjs.com
And 23 more in this version.
@mastra/server 1.70.0 breaking changes
- Behavior changed
A feedback review-status update that conflicts with a newer version of the feedback now returns HTTP 409, so clients that treated the previous server error as a failure must handle 409 and can retry. github.com - Signature changed
handlers:agents.ABORT_AGENT_THREAD_ROUTE
Was const ABORT_AGENT_THREAD_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "POST"; path: "/agents/:agentId/threads/abort"; responseType: "json"; streamFormat?... npmjs.com
And 12 more in this version.
@mastra/server 1.69.0 breaking changes
- Behavior changed
Read, write, create and delete operations now target the exact requested file. Code that relied on a second decoding of percent-encoded query or body values must be updated. github.com - Signature changed
handlers:agentBuilder.GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE
Was const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/agent-builder/:actionId"; responseType: "json"... npmjs.com
And 67 more in this version.
@mastra/server 1.68.0 breaking changes
- Behavior changed
Clients that sent "false" to disable recursive, force or includeReferences now get that flag disabled. github.com - Behavior changed
Legacy SSE routes remain only for MCP 1.x servers; MCP 2.x servers now get 404 on them. github.com
And 271 more in this version.
@mastra/server 1.68.0-alpha.11 breaking changes
- Behavior changed
POST .auth.logout
POST /auth/logout now returns 404 "Logout not configured" when the provider lacks destroySession, getClearSessionHeaders and getLogoutUrl. Clients must handle the 404 or add one of those capabilities to the provider. github.com
@mastra/server 1.68.0-alpha.10 breaking changes
- Behavior changed
The recursive, force and includeReferences flags on workspace and skills routes previously read the string "false" as true. Clients that relied on that behavior will now see the flags turned off. github.com
@mastra/server 1.68.0-alpha.0 breaking changes
- Behavior changed
Streams emit one full message_start payload, then message_update events by message ID, and message_end carries only the ID. Store the start payload by ID and apply later updates to it. github.com
@mastra/server 1.67.0 breaking changes
- Signature changed
handlers:scores.LIST_SCORES_BY_ENTITY_ID_ROUTE
Was const LIST_SCORES_BY_ENTITY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/scores/entity/:entityType/:entityId"; responseType: "json"... npmjs.com - Signature changed
handlers:scores.LIST_SCORES_BY_RUN_ID_ROUTE
Was const LIST_SCORES_BY_RUN_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/scores/run/:runId"; responseType: "json"; streamFormat?: 'sse' |... npmjs.com
And 8 more in this version.
@mastra/server 1.66.0 breaking changes
- Signature changed
handlers:observability.NEW_ROUTES
Was const NEW_ROUTES: {QUERY_TRACES: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: string; path: `/${string}`; responseType: "json"; streamFormat?: 'sse' | 'stream'... npmjs.com
@mastra/server 1.65.0 breaking changes
- Signature changed
handlers:agentBuilder.GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE
Was const GET_AGENT_BUILDER_ACTION_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/agent-builder/:actionId"; responseType: "json"... npmjs.com - Signature changed
handlers:agentBuilder.GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE
Was const GET_AGENT_BUILDER_ACTION_RUN_BY_ID_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {method: "GET"; path: "/agent-builder/:actionId/runs/:runId"; responseType... npmjs.com
And 73 more in this version.
@mastra/server 1.65.0-alpha.11 breaking changes
- Behavior changed
mapUserToResourceId
Requests whose mapper returns an invalid resource ID now fail before reaching a route instead of using a client-provided ID. Make sure your mapper always returns a valid resource ID. github.com - Behavior changed
PATCH .api.memory.threads.:threadId
Sending an empty string as the title now clears the thread title instead of keeping the previous one. Omitting the title still leaves it unchanged. github.com
@mastra/server 1.65.0-alpha.8 breaking changes
- Behavior changed
providerOptions
Provider namespaces outside the built-in list are now kept instead of stripped, and option values must be valid JSON. Requests with non-JSON option values may now be rejected. github.com
@mastra/server 1.64.0 breaking changes
- Signature changed
handlers:a2a.AGENT_EXECUTION_ROUTE
Was const AGENT_EXECUTION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {method: "POST"; path: "/a2a/:agentId"; responseType: "datastream-response"; streamFormat?: "sse"... npmjs.com - Signature changed
handlers:a2a.GET_AGENT_CARD_ROUTE
Was const GET_AGENT_CARD_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {method: "GET"; path: "/.well-known/:agentId/agent-card.json"; responseType: "json"; streamFormat?... npmjs.com
And 279 more in this version.
@mastra/server 1.62.0 breaking changes
- Behavior changed
server.middleware
Middleware set via server.middleware or mastra.setServerMiddleware() is now registered by Hono-based adapters during init(); Express, Fastify and Koa adapters log a warning at startup instead of silently ignoring it. github.com - Signature changed
handlers:observability.GET_SCORE_AGGREGATE
Was const GET_SCORE_AGGREGATE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {method: string; path: `/${string}`; responseType: "json"; streamFormat?: "sse" | "stream"... npmjs.com
And 8 more in this version.
@mastra/server 1.61.0 breaking changes
- Signature changed
schemas:experimentResponseSchema
Was const experimentResponseSchema: z.ZodObject<{id: z.ZodString; datasetId: z.ZodNullable<z.ZodString>; datasetVersion: z.ZodNullable<z.ZodNumber>; agentVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>; targetType: z.ZodEnum<{agent... npmjs.com - Signature changed
schemas:experimentResultResponseSchema
Was const experimentResultResponseSchema: z.ZodObject<{id: z.ZodString; experimentId: z.ZodString; itemId: z.ZodString; itemDatasetVersion: z.ZodNullable<z.ZodNumber>; input: z.ZodUnknown; output: z.ZodNullable<z.ZodUnknown>; groundTruth... npmjs.com
And 4 more in this version.
@mastra/server 1.61.0-alpha.3 breaking changes
- Behavior changed
saveScore
Saving a score with an id now replaces the existing row instead of adding a duplicate. Code that relied on repeated saves accumulating rows will see the latest score only. github.com
@mastra/server 1.61.0-alpha.1 breaking changes
- Behavior changed
display_state_changed.currentMessage
The accumulated message is now shared across message events and currentMessage points to the same live message. Consumers that defer event processing must copy or serialize the message to keep point-in-time values. github.com
@mastra/server 1.60.1-alpha.0 breaking changes
- Behavior changed
When a suspended workflow run was already resumed by another caller, the resume endpoints now respond with 409 instead of a generic error. Code that matches the old error must handle 409. github.com
@mastra/server 1.60.0 breaking changes
- Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {method: "POST"; path: "/agents/:agentId/clone"; responseType: "json"; streamFormat?: "sse" |... npmjs.com - Signature changed
schemas:createStoredAgentBodySchema
Was const createStoredAgentBodySchema: z.ZodObject<{id: z.ZodOptional<z.ZodString>; authorId: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; visibility: z.ZodOptional<z.ZodEnum<{public... npmjs.com
And 12 more in this version.
@mastra/server 1.60.0-alpha.8 breaking changes
- Behavior changed
extra.authInfo
When server.auth is configured, the resolved user is now passed to MCP tools as extra.authInfo; code that assumed it was always undefined may now see a value. github.com
@mastra/server 1.58.0 breaking changes
- Removed
handlers:storedWorkflows.DELETE_STORED_WORKFLOW_ROUTE
storedWorkflows.DELETE_STORED_WORKFLOW_ROUTE was removed in @mastra/server 1.58.0 npmjs.com - Removed
handlers:storedWorkflows.GET_STORED_WORKFLOW_ROUTE
storedWorkflows.GET_STORED_WORKFLOW_ROUTE was removed in @mastra/server 1.58.0 npmjs.com
And 241 more in this version.
@mastra/server 1.57.0 breaking changes
- Behavior changed
POST .workflows.:workflowId.stream
Calling the stream endpoint on a workflow run that already finished no longer restarts it and can no longer overwrite its stored result; it returns 409. Read a finished run's result through the observe endpoint. github.com - Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, undefined, z.ZodObject<{newId: z.ZodOptional<z.ZodString>; newName: z.ZodOptional<z.ZodString>; metadata... npmjs.com
And 26 more in this version.
@mastra/server 1.56.0 breaking changes
- Behavior changed
DELETE .stored.workflows.:storedWorkflowId
The DELETE handler now calls mastra.removeWorkflow(id) after removing the stored row, so the workflow is no longer available on Mastra until restart. Code that expects the workflow to stay registered after deletion must change. github.com - Behavior changed
POST .stored.workflows
The body schema is now a typed discriminated union, so malformed graph entries and legacy closure-based serializedConditions payloads are rejected at the HTTP boundary. Clients that sent loosely shaped graphs must update them to the new... github.com
And 39 more in this version.
@mastra/server 1.55.0 breaking changes
- Signature changed
handlers:agents.getSerializedAgentTools
Was function getSerializedAgentTools(tools: Record<string, SerializedToolInput>, partial?: boolean): Promise<Record<string, SerializedTool>>; now function getSerializedAgentTools(tools: Record<string, SerializedToolInput | object>... npmjs.com - Signature changed
schemas:createStoredAgentBodySchema
Was const createStoredAgentBodySchema: z.ZodObject<{id: z.ZodOptional<z.ZodString>; authorId: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; visibility: z.ZodOptional<z.ZodEnum<{public... npmjs.com
@mastra/server 1.54.0 breaking changes
- Signature changed
handlers:observability.CREATE_FEEDBACK
Was const CREATE_FEEDBACK: import("../server-adapter").ServerRoute<{feedback: {value: string | number; feedbackType: string; traceId?: string | null | undefined; spanId?: string | null | undefined; source?: string | null | undefined... npmjs.com - Signature changed
handlers:observability.CREATE_SCORE
Was const CREATE_SCORE: import("../server-adapter").ServerRoute<{score: {scorerId: string; score: number; traceId?: string | null | undefined; spanId?: string | null | undefined; source?: string | null | undefined; metadata?... npmjs.com
And 5 more in this version.
@mastra/server 1.53.0 breaking changes
- Behavior changed
Saving a stored agent draft now preserves the published version unless automatic publication is requested. github.com - Configuration changed
Google connects with either GOOGLE_API_KEY or GOOGLE_GENERATIVE_AI_API_KEY, not both. Vertex AI is checked on its own using GOOGLE_VERTEX_PROJECT and GOOGLE_VERTEX_LOCATION. github.com
And 5 more in this version.
@mastra/server 1.52.0 breaking changes
- Behavior changed
The agent generate, stream and resume routes now strip `actor` from execution options and no longer merge a body-supplied `organizationId` into request context. Clients that relied on passing these through the HTTP body must establish them... github.com - Behavior changed
Dataset item add and update endpoints now return HTTP 400 for payloads with circular values, lossy JSON values, or non-plain objects that previously were accepted. Clients sending such payloads must send plain JSON data instead. github.com
And 115 more in this version.
@mastra/server 1.51.0 breaking changes
- Signature changed
schemas:addItemBodySchema
Was const addItemBodySchema: z.ZodObject<{input: z.ZodUnknown; groundTruth: z.ZodOptional<z.ZodUnknown>; expectedTrajectory: z.ZodNullable<z.ZodOptional<z.ZodObject<{steps: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly... npmjs.com - Signature changed
schemas:batchInsertItemsBodySchema
Was const batchInsertItemsBodySchema: z.ZodObject<{items: z.ZodArray<z.ZodObject<{input: z.ZodUnknown; groundTruth: z.ZodOptional<z.ZodUnknown>; expectedTrajectory: z.ZodNullable<z.ZodOptional<z.ZodObject<{steps... npmjs.com
And 3 more in this version.
@mastra/server 1.51.0-alpha.5 breaking changes
- Behavior changed
When an authorize request omits a connection scope, the provider's defaultScope is now used before 'per-author'. Check providers configured with a defaultScope, since their connections may now be scoped differently. github.com
@mastra/server 1.50.0 breaking changes
- Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, undefined, z.ZodObject<{newId: z.ZodOptional<z.ZodString>; newName: z.ZodOptional<z.ZodString>; metadata... npmjs.com - Signature changed
schemas:createStoredAgentBodySchema
Was const createStoredAgentBodySchema: z.ZodObject<{id: z.ZodOptional<z.ZodString>; authorId: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; visibility: z.ZodOptional<z.ZodEnum<{public... npmjs.com
And 9 more in this version.
@mastra/server 1.50.0-alpha.3 breaking changes
- Removed
api.heartbeats.*
The /api/heartbeats routes were removed. Use /api/schedules/* instead, which covers both agent and workflow schedules. github.com
@mastra/server 1.49.0 breaking changes
- Signature changed
auth:supportsSessionRefresh
Was function supportsSessionRefresh(authConfig: MastraAuthConfig | MastraAuthProvider): authConfig is (MastraAuthConfig | MastraAuthProvider) & Pick<ISessionProvider, 'refreshSession' | 'getSessionIdFromRequest' | 'getSessionHeaders'>; now... npmjs.com - Signature changed
handlers:observability.LIST_SCORES_BY_SPAN_ROUTE
Was const LIST_SCORES_BY_SPAN_ROUTE: ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{traceId: z.ZodString; spanId: z.ZodString;}, z.core.$strip>, z.ZodObject<Readonly<{[k: string]: z.core.$ZodType<unknown, unknown... npmjs.com
@mastra/server 1.48.0 breaking changes
- Signature changed
handlers:agents.GET_AGENT_BY_ID_ROUTE
Was const GET_AGENT_BY_ID_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, z.ZodObject<{status: z.ZodOptional<z.ZodEnum<{draft: "draft"; published: "published";}>>; versionId... npmjs.com - Signature changed
handlers:agents.LIST_AGENTS_ROUTE
Was const LIST_AGENTS_ROUTE: ServerRoute<{partial?: string | undefined;}, Record<string, {name: string; tools: Record<string, {id: string; description?: string | undefined; inputSchema?: string | undefined; outputSchema?: string |... npmjs.com
And 12 more in this version.
@mastra/server 1.47.0 breaking changes
- Removed
harness
The controller session API is now served only under /agent-controller/.... Clients must move their calls from the legacy /harness/... routes to the new paths. github.com - Removed
harness:*
The harness:* permissions no longer exist. Grant agent-controller:read or agent-controller:execute instead. github.com
And 17 more in this version.
@mastra/server 1.46.0 breaking changes
- Signature changed
schemas:addItemBodySchema
Was const addItemBodySchema: z.ZodObject<{input: z.ZodUnknown; groundTruth: z.ZodOptional<z.ZodUnknown>; expectedTrajectory: z.ZodNullable<z.ZodOptional<z.ZodObject<{steps: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly... npmjs.com - Signature changed
schemas:batchInsertItemsBodySchema
Was const batchInsertItemsBodySchema: z.ZodObject<{items: z.ZodArray<z.ZodObject<{input: z.ZodUnknown; groundTruth: z.ZodOptional<z.ZodUnknown>; expectedTrajectory: z.ZodNullable<z.ZodOptional<z.ZodObject<{steps... npmjs.com
And 9 more in this version.
@mastra/server 1.46.0-alpha.3 breaking changes
- Behavior changed
The list-models route no longer includes API key environment variable names in its response. Code that reads those fields from the response must stop depending on them. github.com
@mastra/server 1.46.0-alpha.0 breaking changes
- Behavior changed
A setup or misconfiguration rejection tagged ErrorCategory.USER now returns HTTP 400 instead of a generic 500. Code that checks for the 500 status must be updated. github.com
@mastra/server 1.43.1-alpha.0 breaking changes
- Behavior changed
Republishes clean versions after a supply-chain incident involving a malicious dependency; users should ensure they are on a clean version. github.com
@mastra/server 1.43.0 breaking changes
- Signature changed
schemas:systemPackagesResponseSchema
Was const systemPackagesResponseSchema: z.ZodObject<{packages: z.ZodArray<z.ZodObject<{name: z.ZodString; version: z.ZodString;}, z.core.$strip>>; isDev: z.ZodBoolean; cmsEnabled: z.ZodBoolean; editorSource: z.ZodOptional<z.ZodEnum<{code... npmjs.com
@mastra/server 1.42.0 breaking changes
- Behavior changed
voice.speak
The voice/speak route now returns a web-standard audio/mpeg response with raw audio bytes rather than a JSON-encoded body. Clients that parse this response as JSON must read it as audio instead. github.com - Signature changed
handlers:agents.CLONE_AGENT_ROUTE
Was const CLONE_AGENT_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, undefined, z.ZodObject<{newId: z.ZodOptional<z.ZodString>; newName: z.ZodOptional<z.ZodString>; metadata... npmjs.com
And 13 more in this version.
@mastra/server 1.41.0 breaking changes
- Signature changed
handlers:agents.GENERATE_AGENT_ROUTE
Was const GENERATE_AGENT_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, undefined, z.ZodObject<{messages: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodString]>; instructions... npmjs.com - Signature changed
handlers:agents.GENERATE_AGENT_VNEXT_ROUTE
Was const GENERATE_AGENT_VNEXT_ROUTE: ServerRoute<InferParams<z.ZodObject<{agentId: z.ZodString;}, z.core.$strip>, undefined, z.ZodObject<{messages: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodString]>; instructions... npmjs.com
And 21 more in this version.
@mastra/server 1.0.0 breaking changes
- Removed
a2a/store:InMemoryTaskStore
InMemoryTaskStore was removed in @mastra/server 1.0.0 npmjs.com - Removed
handlers:a2a.getAgentCardByIdHandler
a2a.getAgentCardByIdHandler was removed in @mastra/server 1.0.0 npmjs.com
And 120 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.