The examples/swift/ChatGPTStyleChat sample only wires tools as native in-app Swift code (ShopToolProvider). There is no runnable MCP server to demonstrate that the same GroundedAgent + widget flow works against a remote MCP server over streamable HTTP.
Add a small Python MCP server (examples/mcp-shop-server) that exposes the same get_order / refresh_order tools, advertises the same ui://shop/order-card widget via _meta.ui, and returns structuredContent. Add an opt-in Config.mcpServerURL toggle to the Swift app so it can point at the server instead of the native provider, with the native provider staying the default.
The
examples/swift/ChatGPTStyleChatsample only wires tools as native in-app Swift code (ShopToolProvider). There is no runnable MCP server to demonstrate that the same GroundedAgent + widget flow works against a remote MCP server over streamable HTTP.Add a small Python MCP server (
examples/mcp-shop-server) that exposes the sameget_order/refresh_ordertools, advertises the sameui://shop/order-cardwidget via_meta.ui, and returnsstructuredContent. Add an opt-inConfig.mcpServerURLtoggle to the Swift app so it can point at the server instead of the native provider, with the native provider staying the default.