suggesting a new primitive for mcp-ui: Bidirectional UI ↔ Agent Events #27
Replies: 1 comment 1 reply
-
|
Thanks @Idan-Levin ! Yes, this is something we were thinking about as well. mcp-ui, as you mentioned, supports messages being sent to the agent, and the agents decides what to do next.
As said - each has its pros and cons. We would love to hear your use case to come up with a solution. |
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.
-
Im proposing a new primitive for agent-UI coordination: event-driven, bidirectional communication between the UI and the agent runtime.
The current implementation, MCP-UI only allows UI → agent communication. Once the UI sends an event, the agent can respond only by re-rendering a new HtmlResourceBlock.
That is fine for static flows but painful for applications that need more input from the agent side during runtime. For example identity check, or tokens fetches.
Supported use cases can be using an agent wallet that fetches a payment token, or oAuth credentials (without handling the logic within the iframe re-rendering and opening new windows).
@idosal @liady would love to hear your thoughts.
Beta Was this translation helpful? Give feedback.
All reactions