Skip to content

Remove ext-apps SDK-v1 shims when the package ships a v2 peer (ext-apps#702) #1745

Closed

Description

@cliffhall

Follow-up from the #1633 Extensions stack (Phases #1738 / #1739 / #1740). Tracks removing the throwaway shims the Inspector carries because @modelcontextprotocol/ext-apps still peers on TS SDK v1 while the Inspector runs SDK v2 (2.0.0-beta.x).

Trigger

Close this when @modelcontextprotocol/ext-apps publishes a release whose peer is SDK v2 (upstream ext-apps#702). Installed today: @modelcontextprotocol/[email protected] (peers @modelcontextprotocol/sdk: ^1.29.0).

Shim sites to remove (verified 2026-07-22)

Each is tagged in-source with TODO: drop when ext-apps#702 ships a v2 peer. This should be closeable by a single sweep:

  1. core/mcp/apps.ts:27 — tool as Parameters<typeof getToolUiResourceUri>[0] (v1 Tool vs v2 Tool at the getToolUiResourceUri boundary).
  2. core/mcp/apps.ts:78 — the UiMetaShape structural interface standing in for ext-apps' McpUiToolMeta / McpUiResourceMeta, which aren't importable under NodeNext because of an extensionless re-export in the package's .d.ts. Switch to the named types once upstream fixes that re-export.
  3. clients/web/src/components/elements/AppRenderer/createAppBridgeFactory.ts:~218 — client as unknown as ConstructorParameters<typeof AppBridge>[0] and the Implementation cast (ext-apps' AppBridge peers on SDK v1's Client/Implementation).
  4. core/mcp/inspectorClient.ts:~1698 (getAppRendererClient() Proxy) — translates ext-apps' v1 schema-first setNotificationHandler(schema, handler) into SDK v2's method-string form.

NOT added by Phase 3 (#1740)

The io.modelcontextprotocol/ui advertisement added in #1740 needed no ext-apps cast — ClientCapabilities.extensions is typed { [key: string]: object }, so { mimeTypes: [...] } is assignable directly. The extension id / MIME-type constants are mirrored locally in core/mcp/extensions.ts (UI_EXTENSION_KEY / MCP_APP_MIME_TYPE) rather than imported, for the same NodeNext//server-subpath reasons — those can optionally switch to importing ext-apps' EXTENSION_ID / RESOURCE_MIME_TYPE once the v2-peer release lands, but they are stable spec strings so it's low priority.

Acceptance

  • Bump @modelcontextprotocol/ext-apps to the v2-peer release.
  • Remove shims 1–4 above; replace UiMetaShape with the named ext-apps types.
  • Optionally source UI_EXTENSION_KEY / MCP_APP_MIME_TYPE from ext-apps.
  • npm run ci green.

Activity

  1. self-assigned this
    on Jul 22, 2026
  2. added
    v2
    on Jul 22, 2026
  3. changed the title [-]Remove ext-apps SDK-v1 shims when the package ships a v2 peer (ext-apps#702)[/-] [+][Blocked upstream] Remove ext-apps SDK-v1 shims when the package ships a v2 peer (ext-apps#702)[/+] on Jul 27, 2026
  4. added
    waiting on sdk
    on Jul 27, 2026
  5. added this to the v2.2.0 milestone on Jul 28, 2026
  6. removed their assignment
    on Aug 1, 2026
  7. cliffhall commented on Aug 1, 2026

    @cliffhall
    MemberAuthor

    Triage: Priority = Low

    Scored 5/16 with the priority rubric added to AGENTS.md in #1891. This card is already approved and sitting in Todo — only Priority was set here, its Status is unchanged.

    Axis Score Reasoning
    Severity / impact 2/5 Removing throwaway shims. The shims work; carrying them costs clarity, not correctness.
    Urgency / staleness 2/5 Explicitly blocked upstream — nothing can move until ext-apps ships a release peering on SDK v2. Prioritising blocked work above unblocked work just misreports the queue.
    Signal bonuses +1 milestone (v2.2.0) (+1)
    Total 5 Lands in the Low band (5 or below).

    Related issues. These look connected and may be worth reading together:

    Scores are a starting point, not a verdict — the rubric is meant to be overruled when it's plainly wrong, provided the reason is written down.

  8. added
    chore
    on Aug 5, 2026
  9. modified the milestones: v2.2.0, v2.4.0 on Aug 11, 2026
  10. modified the milestones: v2.4.0, v2.5.0 on Aug 24, 2026
  11. added
    mcp-apps
    on Aug 24, 2026
  12. removed this from the v2.5.0 milestone on Aug 29, 2026
  13. 2 remaining items

  14. added this to the v2.7.0 milestone on Sep 4, 2026
  15. removed
    waiting on sdk
    on Sep 11, 2026
  16. self-assigned this
    on Sep 11, 2026
  17. changed the title [-][Blocked upstream] Remove ext-apps SDK-v1 shims when the package ships a v2 peer (ext-apps#702)[/-] [+]Remove ext-apps SDK-v1 shims when the package ships a v2 peer (ext-apps#702)[/+] on Sep 11, 2026
  18. cliffhall commented on Sep 14, 2026

    @cliffhall
    MemberAuthor

    Shipped in #2358 (merged to v2/main). All four shim sites removed; @modelcontextprotocol/ext-apps is at 2.0.0 and the v1 SDK is out of the tree. Follow-ups: #2359 (stacked PR #2361) and #2360 (blocked on ext-apps#733), both sub-issues of #2309.

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

Metadata

Metadata

Assignees

Labels

choremcp-appsv2

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions