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.
Properties
Section titled “Properties”httpPath
Section titled “httpPath”httpPath:
string
Streamable-HTTP transport path, relative to the plugin base path.
messagePath
Section titled “messagePath”messagePath:
string
SSE message path, relative to the plugin base path.
server
Section titled “server”server:
MCPServer
The Mastra MCP server to hand to new Mastra({ mcpServers }).
serverId
Section titled “serverId”serverId:
string
Registry id, used in the underlying @mastra/express route
(/mcp/<serverId>/...) the plugin rewrites the clean alias to.
ssePath
Section titled “ssePath”ssePath:
string
SSE transport path, relative to the plugin base path.