Skip to content

Vendor the MCP App resource on ext-apps 2.0.0 - #675

Merged
max-sixty merged 3 commits into
mainfrom
vendor/mcp-ext-apps-2
Sep 13, 2026
Merged

max-sixty merged 3 commits into
mainfrom
vendor/mcp-ext-apps-2

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

@modelcontextprotocol/ext-apps moves from 1.7.5 to 2.0.0, the one major bump the weekly scripts/vendor.py --pins sweep 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/sdk onto @modelcontextprotocol/client. Its export map is byte-identical between the two versions, and every symbol scripts/mcp-app/page-app.js reaches for still stands in 2.0.0: the App class and applyDocumentTheme, applyHostFonts, applyHostStyleVariables off @modelcontextprotocol/ext-apps/app-with-deps, plus the methods the page drives — callServerTool, getHostCapabilities, getHostContext, openLink, requestDisplayMode, sendMessage, and the onerror / onhostcontextchanged / onteardown / ontoolresult handlers.

What it costs. skills/leaf/mcp-app/page-app.html grows 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.py drives the rebuilt resource through a simulated host — an iframe, the ui/initialize handshake, tool calls, a display-mode request, and a refused anchor — and its eleven cases pass, as do test_mcp_app.py and test_interact_mcp.py. Four everyday cases and three test_render_export.py cases fail in the agent sandbox, and all seven fail identically on the merge base e2ebdcbb: 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_blob asserted the resource's attribution banner against a version typed into the test. That is the second copy vendor.py warns 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.sh still names 1.7.5. That one is deliberately left: it pins the inputs of the recorded experiments under notes/mcp-apps/experiments/, alongside a frozen upstream reference SHA, and moving it would break their reproducibility rather than track the payload.

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:
#	skills/leaf/mcp-app/page-app.html
@max-sixty
max-sixty merged commit f66e3ca into main Sep 13, 2026
4 checks passed
@max-sixty
max-sixty deleted the vendor/mcp-ext-apps-2 branch September 13, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants