Replies: 4 comments 5 replies
-
|
Yeah I think this is a good idea for organisation purposes but how do we implement it without making a breaking change? I need to add toolInput output name and metadata for the chatGTP sdk support |
Beta Was this translation helpful? Give feedback.
-
|
@idosal @liady @yannj-fr this is what it looks like let me know thoughts infoxicator#2 |
Beta Was this translation helpful? Give feedback.
-
|
Obselete discussion, cf |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @yannj-fr! These are now addressed in SEP-1865:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To ensure consistency and maximize compatibility across implementations, I propose a standardized structure for the renderData object — so that no one encounters unexpected issues.
At the moment, most implementations follow the example from the client SDK (https://mcpui.dev/guide/client/resource-renderer) and only handle theme information.
I suggest defining a structured payload that clients must implement.
The data would be organized into three main objects:
• mcp — data exchanged with the MCP server
• host — information provided by the host to the iframe
• iframe — details specific to the rendering iframe
The mcp payload would include:
• toolInput — the object sent in the MCP call
• toolOutput — the response object returned by the tool call (including text and structuredContent)
• toolName — the name of the invoked tool
The host payload would include:
• theme — the interface theme
• user-agent — the host application’s user agent
• model — the model used for the MCP call
The iframe payload would include:
• size — the effective size of the iframe (height, width)
• engine — the rendering engine used for the UI (e.g., mcp-ui/uiresourcerenderer)
• display_mode — the display mode of the iframe (e.g. fullscreen, inline...)
Beta Was this translation helpful? Give feedback.
All reactions