You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ai-mcp): keep clientOptions across the MCP Apps reconnect
`createMcpAppCallHandler` rebuilds a client per call from `getInfo()`, and that
descriptor carried only `transport` and `prefix`. So a client created with
`clientOptions` served widget tool calls through a REBUILT client that had none
— back on the SDK's AJV validator, which is the failure the option exists to
avoid, reintroduced for every MCP Apps call on an edge runtime.
`getInfo()` now reports the options the client was built with, the descriptor
carries them, and the handler forwards them. `MCPClients.getServers()` reports
them the same way, since the handler reads pools through it.
Optional on the return type rather than required: a hand-rolled `MCPClient`
would otherwise stop compiling, and it is omitted entirely when the client was
built without options, so a descriptor round-trips unchanged.
0 commit comments