Skip to content

Add a runnable sample MCP server for the ChatGPTStyleChat example #608

Description

@cornelcroi

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions