Repository navigation
Vendor the MCP App resource on ext-apps 2.0.0 - #675
Merged
Merged
Conversation
The weekly pin sweep found `@modelcontextprotocol/ext-apps` at 1.7.5 against 2.0.0. The SDK's 2.0 rebase moves its own base from `@modelcontextprotocol/sdk` to `@modelcontextprotocol/client`; its export map is unchanged, and every symbol `scripts/mcp-app/page-app.js` reaches for — `App`, `applyDocumentTheme`, `applyHostFonts`, `applyHostStyleVariables`, and the `App` methods the page drives — still stands in 2.0.0. `skills/leaf/mcp-app/page-app.html` grows from 396KB to 477KB. An MCP host reads that resource from the install rather than from a page, so no page payload moves with it. The test that reads the resource's attribution banner now takes the version from PINS. Written out, it failed only because someone bumped the pin and passed again once they retyped the number — the second copy `vendor.py` warns about over that table.
# Conflicts: # scripts/vendor.py
# Conflicts: # skills/leaf/mcp-app/page-app.html
This was referenced Sep 13, 2026
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.
@modelcontextprotocol/ext-appsmoves from 1.7.5 to 2.0.0, the one major bump the weeklyscripts/vendor.py --pinssweep turned up. It needs a maintainer's judgment in a way the two patch rebuilds beside it do not, so it is here on its own.What 2.0 changes. The SDK rebases its own base from
@modelcontextprotocol/sdkonto@modelcontextprotocol/client. Its export map is byte-identical between the two versions, and every symbolscripts/mcp-app/page-app.jsreaches for still stands in 2.0.0: theAppclass andapplyDocumentTheme,applyHostFonts,applyHostStyleVariablesoff@modelcontextprotocol/ext-apps/app-with-deps, plus the methods the page drives —callServerTool,getHostCapabilities,getHostContext,openLink,requestDisplayMode,sendMessage, and theonerror/onhostcontextchanged/onteardown/ontoolresulthandlers.What it costs.
skills/leaf/mcp-app/page-app.htmlgrows from 396KB to 477KB, about 20%. An MCP host reads that resource from the install rather than from a page, so this moves nothing a reader's browser loads and no page payload grows.Evidence.
tests/test_render_mcp.pydrives the rebuilt resource through a simulated host — an iframe, theui/initializehandshake, tool calls, a display-mode request, and a refused anchor — and its eleven cases pass, as dotest_mcp_app.pyandtest_interact_mcp.py. Four everyday cases and threetest_render_export.pycases fail in the agent sandbox, and all seven fail identically on the merge basee2ebdcbb: they need a writable/tmp, an IPv6 loopback, or an installed Chrome the sandbox will not launch.One test change rides along.
test_shipped_adaptive_app_is_one_self_contained_html_blobasserted the resource's attribution banner against a version typed into the test. That is the second copyvendor.pywarns about over PINS, and it never caught anything: it failed only because someone bumped the pin, and passed again once they retyped the number here. It now reads the version out of PINS, so the banner and the pin cannot disagree.scripts/mcp-app/run-direct-probe.shstill names 1.7.5. That one is deliberately left: it pins the inputs of the recorded experiments undernotes/mcp-apps/experiments/, alongside a frozen upstream reference SHA, and moving it would break their reproducibility rather than track the payload.