Conversation
There was a problem hiding this comment.
Pull request overview
Adds an “experimental messages” path to MCP Apps by letting guest UIs send arbitrary JSON-RPC methods to the host, handled via a new onFallbackRequest hook on AppRenderer, plus documentation restructuring to emphasize AppRenderer over legacy renderers.
Changes:
- Add
sendExperimentalRequest()helper in@mcp-ui/serverto send JSON-RPC requests from guest iframe → host viapostMessage. - Add
onFallbackRequestsupport inAppRenderer(and tests) by wiringAppBridge.fallbackRequestHandler. - Update docs/navigation to add an
AppRendererreference page and mark legacyUIResourceRendererdocs as deprecated.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| sdks/typescript/server/src/index.ts | Adds sendExperimentalRequest() experimental JSON-RPC helper for guest iframes. |
| sdks/typescript/client/src/index.ts | Re-exports JSONRPCRequest type for host handler typing. |
| sdks/typescript/client/src/components/AppRenderer.tsx | Introduces onFallbackRequest prop and registers fallbackRequestHandler on AppBridge. |
| sdks/typescript/client/src/components/tests/AppRenderer.test.tsx | Adds coverage for onFallbackRequest registration, invocation, and error behavior. |
| docs/src/guide/mcp-apps.md | Documents onFallbackRequest and the guest-side sendExperimentalRequest() flow. |
| docs/src/guide/client/wc-usage-examples.md | Marks WC docs as legacy/deprecated and points to AppRenderer. |
| docs/src/guide/client/walkthrough.md | Updates “Next steps” links to the new AppRenderer doc. |
| docs/src/guide/client/resource-renderer.md | Marks UIResourceRenderer as deprecated/legacy. |
| docs/src/guide/client/react-usage-examples.md | Marks React UIResourceRenderer docs as legacy/deprecated. |
| docs/src/guide/client/overview.md | Adds AppRenderer as the recommended renderer in navigation. |
| docs/src/guide/client/app-renderer.md | New AppRenderer reference page including onFallbackRequest documentation. |
| docs/src/.vitepress/config.ts | Updates sidebar to include AppRenderer and group legacy docs. |
sdks/typescript/client/src/components/__tests__/AppRenderer.test.tsx
Outdated
Show resolved
Hide resolved
|
hey @idosal @liady TSYM for working in We're about to merge ++ @alexhancock and linking to block/goose#7039 (our plan is to rebase that onto |
|
@copilot open a new pull request to apply changes based on the comments in this thread |
Thanks for the heads up @aharvard! Today/tomorrow |
|
Nice! Would love to see this one go in so I can update/rebase and get block/goose#7039 going |
Co-authored-by: Copilot <[email protected]>
|
🎉 This PR is included in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 6.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.