@mastra/mcp breaking changes
@mastra/mcp 2.0.0 (September 22, 2026) is its newest release with breaking changes, 71 of them. The first: Removed connectSSE. Every breaking API change we have recorded in @mastra/mcp on npm: 115 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.12.0, released December 2, 2026. Source repository
Its 1.0.0-beta.0 release requires Node.js 22.13.0 or later. Node.js end of life dates.
@mastra/mcp 2.0.0 breaking changes
- Removed
connectSSE
connectSSE was removed along with the standalone HTTP+SSE transport. github.com - Removed
ElicitationActions
ElicitationActions was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
ElicitationHandler
ElicitationHandler was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
eventSourceInit
eventSourceInit was removed. github.com - Removed
getServer
getServer() was removed. github.com - Removed
handleServerlessRequest
handleServerlessRequest was removed. github.com - Removed
InternalMastraMCPClientOptions.capabilities
InternalMastraMCPClientOptions.capabilities was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
logging.setLevel
logging/setLevel was removed; log levels are now requested per request through the metadata key. github.com - Removed
MastraApiMCPServer
MastraApiMCPServer was removed while its tool design is reconsidered. Code that imports or constructs it must be changed. npmjs.com - Removed
MastraApiMCPServerOptions
MastraApiMCPServerOptions was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
MastraPrompt
MastraPrompt was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
mcp.elicitation.onRequest
Client elicitation onRequest was replaced by a per-server inputRequests handler. github.com - Removed
MCPOAuthClientProvider.saveClientInformation
MCPOAuthClientProvider.saveClientInformation was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
MCPServer.protocolVersion
The server protocolVersion option was removed; servers serve only the 2026-07-28 revision. Remove the option from server definitions. github.com - Removed
MCPServerProtocolVersion
MCPServerProtocolVersion was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
OAuthClientInformationFull
OAuthClientInformationFull was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
OAuthClientRegistrationError
OAuthClientRegistrationError was removed in 2.0. npmjs.com - Removed
reconnectionOptions
reconnectionOptions was removed. github.com - Removed
registerClient
registerClient was removed in 2.0; MCPOAuthClientProvider no longer registers dynamically. npmjs.com - Removed
RequestOptions
RequestOptions was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
resources.subscribe
The resources/subscribe method was removed; resources.subscribe keeps its signature over a subscriptions stream. github.com - Removed
Root
Root was removed in @mastra/mcp 2.0.0 npmjs.com - Removed
roots
The roots capability was removed. github.com - Removed
sampling
The sampling capability was removed. github.com - Removed
sendLoggingMessage
sendLoggingMessage() was removed. github.com - Removed
sessionId
sessionId was removed because there are no session headers in the new revision. github.com - Removed
sessionIds
sessionIds was removed because there are no session headers in the new revision. github.com - Removed
startHonoSSE
startHonoSSE was removed along with the standalone HTTP+SSE transport. github.com - Removed
startSSE
startSSE was removed along with the standalone HTTP+SSE transport. github.com - Behavior changed
The package now requires @mastra/core 1.68 or newer, and Hono ^4.12.8 is a required peer dependency. github.com - Behavior changed
context.mcp.elicitation.sendRequest
Tools that need caller input must call context.suspend and return, then read context.resumeData on the rerun. sendRequest throws on a 2.0 server. github.com - Behavior changed
MCP_SERVER_REQUEST
Requests now produce an MCP_SERVER_REQUEST root span, and served tools nest under it instead of creating a root TOOL_CALL span. github.com - Behavior changed
MCPOAuthClientProvider
MCPOAuthClientProvider requires exactly one of clientInformation or clientMetadataUrl and never registers dynamically. github.com - Behavior changed
resources.subscribe
resources.subscribe and unsubscribe keep their signatures but use one subscriptions/listen stream per server. github.com - Behavior changed
server.executeTool
executeTool and the REST execute route now return a status object and report invalid input as an error. github.com - Default changed
MCPClient.protocolVersion
MCPClient now probes each server and falls back to the legacy handshake unless protocolVersion pins a version. github.com - Signature changed
createSimpleTokenProvider
Was function createSimpleTokenProvider(accessToken: string, options: {redirectUrl: string | URL; clientMetadata: OAuthClientMetadata; clientInformation?: OAuthClientInformation; tokenType?: string; refreshToken?: string; expiresIn?... npmjs.com - Signature changed
InternalMastraMCPClient.constructor
Was constructor({name, version, server, capabilities, timeout}: InternalMastraMCPClientOptions); now constructor({name, version, server, timeout}: InternalMastraMCPClientOptions). npmjs.com - Signature changed
InternalMastraMCPClient.finishAuth
Was finishAuth(authorizationCode: string): Promise<void>; now finishAuth(authorizationCode: string, issuer?: string): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClient.setPromptListChangedNotificationHandler
Was setPromptListChangedNotificationHandler(handler: () => void): void; now setPromptListChangedNotificationHandler(handler: () => void): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClient.setResourceListChangedNotificationHandler
Was setResourceListChangedNotificationHandler(handler: () => void): void; now setResourceListChangedNotificationHandler(handler: () => void): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClient.setResourceUpdatedNotificationHandler
Was setResourceUpdatedNotificationHandler(handler: (params: any) => void): void; now setResourceUpdatedNotificationHandler(handler: (params: {uri: string;}) => void): void. npmjs.com - Signature changed
InternalMastraMCPClient.setToolListChangedNotificationHandler
Was setToolListChangedNotificationHandler(handler: () => void): void; now setToolListChangedNotificationHandler(handler: () => void): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClient.subscribeResource
Was subscribeResource(uri: string): Promise<EmptyResult>; now subscribeResource(uri: string): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClient.unsubscribeResource
Was unsubscribeResource(uri: string): Promise<EmptyResult>; now unsubscribeResource(uri: string): Promise<void>. npmjs.com - Signature changed
InternalMastraMCPClientOptions
Was type InternalMastraMCPClientOptions = {name: string; server: MastraMCPServerDefinition; capabilities?: ClientCapabilities; version?: string; timeout?: number;}; now type InternalMastraMCPClientOptions = {name: string; server... npmjs.com - Signature changed
MCPClient.resources
Was readonly resources: {/** * Lists all available resources from all configured servers. * * Returns a map of server names to their resource arrays. Errors for individual * servers are logged but don't throw - failed servers return empty... npmjs.com - Signature changed
MCPClientServerProxy.convertTools
Was convertTools(_tools: ToolsInput, _agents?: MCPServerConfig['agents'], _workflows?: MCPServerConfig['workflows']): Record<string, any>; now convertTools(_tools: ToolsInput): {}. npmjs.com - Signature changed
MCPClientServerProxy.executeTool
Was executeTool(toolId: string, args: any, _executionContext?: {messages?: any[]; toolCallId?: string;}): Promise<any>; now executeTool(toolId: string, input: unknown, context?: Parameters<MCPServerBase['executeTool']>[2])... npmjs.com - Signature changed
MCPClientServerProxy.getToolInfo
Was getToolInfo(toolId: string): {name: string; description?: string; inputSchema: any; outputSchema?: any; toolType?: MCPToolType; _meta?: Record<string, unknown>;} | undefined | Promise<{name: string; description?: string; inputSchema... npmjs.com
And 21 more in this version. Sign up to see every change
@mastra/mcp 2.0.0-alpha.5 breaking changes
- Behavior changed
TOOL_CALL
Requests now get an MCP_SERVER_REQUEST root span, and a served tool no longer produces a separate root TOOL_CALL span. github.com
@mastra/mcp 2.0.0-alpha.4 breaking changes
- Removed
connectSSE
connectSSE was removed in 2.0. github.com - Removed
eventSourceInit
The eventSourceInit option was removed in 2.0. github.com - Removed
getServer
getServer() was removed in 2.0. github.com - Removed
handleServerlessRequest
handleServerlessRequest was removed in 2.0. github.com - Removed
logging.setLevel
Log levels are now requested per request via the io.modelcontextprotocol/logLevel metadata key. github.com - Removed
protocolVersion
The server protocolVersion option was removed. github.com - Removed
reconnectionOptions
The reconnectionOptions option was removed in 2.0. github.com - Removed
resources.subscribe
The resources/subscribe method was removed; resources.subscribe keeps its signature and uses a subscriptions/listen stream. github.com - Removed
roots
The roots capability was removed in 2.0. github.com - Removed
sampling
The sampling capability was removed in 2.0. github.com
And 14 more in this version. Sign up to see every change
@mastra/mcp 1.0.0 breaking changes
- Removed
LogMessage.runtimeContext
LogMessage.runtimeContext was removed in @mastra/mcp 1.0.0 npmjs.com - Removed
MastraMCPClient
Use MCPClient instead. npmjs.com - Removed
MCPTool
MCPTool was removed in @mastra/mcp 1.0.0 npmjs.com - Signature changed
ElicitationActions
Was type ElicitationActions = {sendRequest: (request: ElicitRequest['params']) => Promise<ElicitResult>;}; now type ElicitationActions = {sendRequest: (request: ElicitRequest['params'], options?: RequestOptions) => Promise<ElicitResult>;}. npmjs.com - Signature changed
ElicitationActions.sendRequest
Was sendRequest: (request: ElicitRequest['params']) => Promise<ElicitResult>; now sendRequest: (request: ElicitRequest['params'], options?: RequestOptions) => Promise<ElicitResult>. npmjs.com - Signature changed
LoggingLevel
Was export type {LoggingLevel, LogMessage, LogHandler, MastraMCPServerDefinition, ElicitationHandler} from './client.js'; now export type {LoggingLevel, LogMessage, LogHandler, MastraMCPServerDefinition, ElicitationHandler... npmjs.com - Signature changed
MCPServer.convertTools
Was convertTools(tools: ToolsInput, agentsConfig?: Record<string, Agent>, workflowsConfig?: Record<string, Workflow>): Record<string, ConvertedTool>; now convertTools(tools: ToolsInput, agentsConfig?: Record<string, Agent>... npmjs.com - Signature changed
Resource
Was export type {Resource, ResourceTemplate}; now export type {Resource, ResourceTemplate, RequestOptions}. npmjs.com - Signature changed
ResourceTemplate
Was export type {Resource, ResourceTemplate}; now export type {Resource, ResourceTemplate, RequestOptions}. npmjs.com
@mastra/mcp 1.0.0-beta.5 breaking changes
- Behavior changed
With newer SDK versions, other errors such as 401 are re-thrown instead of falling back to SSE. Handle those errors directly. github.com
@mastra/mcp 1.0.0-beta.0 breaking changes
- Removed
The package now requires Node.js 22.13.0 or later. Upgrade Node.js before installing this version. github.com - Removed
mcpClient.getResources
mcpClient.getResources() is gone; remove calls to it. github.com - Removed
MCPConfiguration
The MCPConfiguration class has been removed; stop using it. npmjs.com - Removed
MCPConfigurationOptions
The MCPConfigurationOptions type has been removed; stop using it. npmjs.com - Renamed
getAgents
Calls to getAgents must be changed to listAgents. github.com - Renamed
getTools
Calls to getTools must be changed to listTools. github.com - Renamed
getWorkflows
Calls to getWorkflows must be changed to listWorkflows. github.com - Renamed
RuntimeContext
Code that imports or uses RuntimeContext must switch to RequestContext. github.com - Signature changed
tool.execute
Tools now receive input data and a context as two arguments instead of a single object with context and other fields. Update execute functions to the new form. github.com
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.