Repository navigation
Serve front components as MCP App resources - #32462
Draft
FelixMalfait wants to merge 3 commits into
Draft
FelixMalfait wants to merge 3 commits into
FelixMalfait wants to merge 3 commits into
Conversation
A front component is read at ui://front-components/{id}/{checksum}. The
server links its bundle, the SDK client and shared dependencies with the
MCP App runtime into one inline module, since hosts forbid blob: and
remote scripts, and inlines twenty-ui's stylesheet as Twenty's page does.
The checksum covers every input of the linked script so hosts can cache
by URI. Callers that cannot reach the component's application get the
SDK's resource not found error (-32602 with the URI), as the 2026-07-28
revision requires.
This was referenced Dec 5, 2026
…upeo1x-mcp-app-resources
…ide the component
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack (MCP Apps, Twenty as an MCP Apps server), merge in order: 1. runtime → 2. resources → 3. tool binding → 4. generic mode → 5. findMany through a view → 6. View Cards app.
What
Serves each front component as an MCP App resource at
ui://front-components/{id}/{checksum}(text/html;profile=mcp-app), listed throughresources/templates/listand read throughresources/read.How
blob:and remote scripts, so the server links the component bundle, the SDK client, shared dependencies and the runtime from Setup Nest and React projects #1 in the stack into one inline module. It also inlines twenty-ui's stylesheet, as Twenty's own page does._meta.ui.cspdeclares the API origin as connect and resource domain.https://claude.ai/code/session_01BC19MT31DvLYvxzeBBUKWi
Generated by Claude Code