OptionalauthProduce verified AuthInfo for the request before the SDK handler runs. When omitted, requests are served without authenticated identity.
OptionalhandlerOptions forwarded to the SDK's createMcpHandler.
legacy defaults to "stateless": 2025-era (non-envelope) requests are
served by a fresh instance over a session-less streamable HTTP transport.
Pass legacy: "reject" for modern-only strict serving, where
legacy-classified requests get the unsupported-protocol-version error.
OptionalpathRoute path the MCP endpoint is served on. Defaults to /mcp.
Options for createMcpMount.