-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Upgrade to MCP-UI ~5.6.2 and handle internalized auto iframe resizing #3889
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ce iframe resizing configuration
…CPUIResourceRenderer
| <div className="mt-3 p-4 py-3 border border-borderSubtle rounded-lg bg-background-muted flex items-center"> | ||
| <FlaskConical className="mr-2" size={20} /> | ||
| <div className="text-sm font-medium mono"> | ||
| MCP UI is experimental and may change at any time. | ||
| </div> | ||
| </> | ||
| ); | ||
| } else { | ||
| return <MCPUIResourceRenderer key={`${content.type}-${index}`} content={content} />; | ||
| } | ||
| </div> | ||
| </div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
decided to simplify and always show the info box
| autoResizeIframe: { | ||
| height: true, | ||
| width: false, // set to false to allow for responsive design | ||
| }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mcp-ui add this based on our feedback
| }; | ||
| }; | ||
| import { useCallback } from 'react'; | ||
| import { toast } from 'react-toastify'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
popin' some toast for user feedback, as we work to make the action handling real
|
.bundle |
| "@ai-sdk/ui-utils": "^1.0.2", | ||
| "@hey-api/client-fetch": "^0.8.1", | ||
| "@mcp-ui/client": "~5.3.1", | ||
| "@mcp-ui/client": "~5.6.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you'd like you can also move this back to "^5.6.1" -- since merging #3859 we're respecting the lock file on all platforms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, will do in the next pr related to mcp-ui
macOS ARM64 Desktop App (Apple Silicon)📱 Download macOS Desktop App (arm64, signed) Instructions: This link is provided by nightly.link and will work even if you're not logged into GitHub. |
* main: Upgrade to MCP-UI ~5.6.2 and handle internalized auto iframe resizing (#3889) docs: recipe updates (#3844) added notes about reducing context window by referencing external files (#3895) Make the window title reflect what we are doing (#3883) additional metrics + Ui implementation (#3871) feat: Add session description editing functionality (#3819) Update filename in contributing docs (#3866) Fix voice dictation provider selection bug (#3862) doc: Update supported container runtimes (#3874) feat: add OAuth provider abstraction for CLI configuration (#3157) Don't ignore lockfiles on linux/windows builds (#3859) Use RMCP for StreamableHTTP OAuth support (#3845) Try to keep key order for Databricks (#3876) Fix OpenAI Provider with GitHub Models (#3875) Cmd click open finder (#3807) fix: recipe parameter form max height and not scrolling (#3879)
|
posting for awareness: 📱 Download macOS Desktop App (arm64, signed) is not actially signed. run |
This PR upgrades the MCP-UI dependency to version ~5.6.2 and adapts to the internalized auto iframe resizing functionality. Also, it sprinkles in some toast notification for user feedback (even tho functionality is simply stubbed out).
goose-mcp-ui-upgrade-compressed.mov
Changes
Package Updates
@mcp-ui/clientfrom version 5.5.0 to ~5.6.2 inui/desktop/package.jsonCode Changes
autoResizeIframe: trueto thehtmlPropsconfiguration for theUIResourceRenderercomponent to enable automatic iframe resizingBackground
The MCP-UI library has internalized the auto iframe resizing functionality in version 5.6.2. Previously, this functionality may have been handled externally or through different configuration. This update ensures that MCP UI resources (like interactive forms, visualizations, etc.) automatically resize their iframes to fit their content, providing a better user experience.
MCP UI Action Handling & Debugging
This implementation includes comprehensive logging and user feedback for MCP UI interactions:
Console Logging
All MCP UI actions are logged to the browser console with detailed information about the action type and payload. This helps with debugging and understanding what interactions are occurring within MCP UI resources.
Toast Notifications
When MCP UI resources send postMessage events to the parent application, users receive toast notifications indicating:
tool,intent,prompt,notify,link)Supported Action Types
The implementation handles all standard MCP UI action types as defined in the MCP-UI protocol:
tool: Tool execution requests withtoolNameandparamsintent: Intent-based actions withintentandparamsprompt: Prompt display requests withprompttextnotify: Notification messages withmessagecontentlink: Link navigation requests withurlCurrent Implementation Status
The current implementation provides logging and toast feedback as a foundation, with TODO comments indicating where full action handling will be implemented in the future. This approach ensures that:
Testing
Notes
This is a relatively straightforward dependency upgrade with minimal code changes to adapt to the new API. The main change is explicitly enabling the
autoResizeIframeoption in the renderer configuration, plus comprehensive action logging for debugging and user feedback.