Skip to content

feat: support experimental messages#176

Merged
idosal merged 5 commits into
mainfrom
feat/experimental-messages
Feb 13, 2026
Merged

feat: support experimental messages#176
idosal merged 5 commits into
mainfrom
feat/experimental-messages

Conversation

@idosal

@idosal idosal commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 6, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/server to send JSON-RPC requests from guest iframe → host via postMessage.
  • Add onFallbackRequest support in AppRenderer (and tests) by wiring AppBridge.fallbackRequestHandler.
  • Update docs/navigation to add an AppRenderer reference page and mark legacy UIResourceRenderer docs 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.

Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/client/src/components/AppRenderer.tsx
Comment thread sdks/typescript/client/src/components/__tests__/AppRenderer.test.tsx Outdated
@aharvard

Copy link
Copy Markdown
Contributor

hey @idosal @liady TSYM for working in onFallbackRequest!

We're about to merge AppRenderer in goose. Do you have an ETA on when we can start playing around with thie new prop?

++ @alexhancock and linking to aaif-goose/goose#7039 (our plan is to rebase that onto AppRenderer soon)

@aharvard aharvard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome!

@idosal

idosal commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

@idosal I've opened a new pull request, #181, to work on those changes. Once the pull request is ready, I'll request review from you.

@idosal

idosal commented Feb 12, 2026

Copy link
Copy Markdown
Collaborator Author

hey @idosal @liady TSYM for working in onFallbackRequest!

We're about to merge AppRenderer in goose. Do you have an ETA on when we can start playing around with thie new prop?

++ @alexhancock and linking to block/goose#7039 (our plan is to rebase that onto AppRenderer soon)

Thanks for the heads up @aharvard! Today/tomorrow

@alexhancock

Copy link
Copy Markdown

Nice! Would love to see this one go in so I can update/rebase and get aaif-goose/goose#7039 going

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 5 comments.

Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/client/src/components/AppRenderer.tsx
Comment thread sdks/typescript/client/src/components/AppRenderer.tsx Outdated
idosal and others added 2 commits February 13, 2026 01:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Comment thread sdks/typescript/server/src/index.ts
Comment thread sdks/typescript/server/src/index.ts
@idosal idosal merged commit 327e4d9 into main Feb 13, 2026
13 checks passed
github-actions Bot pushed a commit that referenced this pull request Feb 13, 2026
…6.1.0) (2026-02-13)

### Features

* support experimental messages ([#176](#176)) ([327e4d9](327e4d9))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions Bot pushed a commit that referenced this pull request Feb 13, 2026
…6.1.0) (2026-02-13)

### Features

* support experimental messages ([#176](#176)) ([327e4d9](327e4d9))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 6.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants