Skip to content

Interface: ResolvedMcp

A built MCP server plus the request paths it answers on, relative to the plugin’s base path (/api/<plugin>).

The paths are the clean public aliases (/mcp, /sse, /messages) the plugin exposes. @mastra/express actually mounts the transports under /mcp/<serverId>/<transport> off the Mastra instance’s mcpServers; the plugin rewrites the alias to that route before dispatch (see ResolvedMcp.serverId), so a client never sees the doubled /mcp/<serverId>/mcp segment.

httpPath: string

Streamable-HTTP transport path, relative to the plugin base path.


messagePath: string

SSE message path, relative to the plugin base path.


server: MCPServer

The Mastra MCP server to hand to new Mastra({ mcpServers }).


serverId: string

Registry id, used in the underlying @mastra/express route (/mcp/<serverId>/...) the plugin rewrites the clean alias to.


ssePath: string

SSE transport path, relative to the plugin base path.