Drop the ext-apps#733 elicitation mirrors when the package ships a release containing it

Đang mở
#2,360 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
tooling, web-dev

Hướng nghiên cứu

Sau khi bản phát hành ext-apps chứa #733 có sẵn, hãy bắt đầu với các mirror được đánh dấu trong core/mcp/appElicitation.ts, AppRenderer/requestAppElicitation.ts, AppRenderer/appCapabilities.ts, createAppBridgeFactory.ts và docs/test-servers.md. Cập nhật dependency trong package.json gốc, xóa các mirror đó, kiểm tra test-server mcp-app-elicitation và smoke-web-elicitation.mjs, sau đó chạy npm run local:gate; hoàn tất có nghĩa là luồng elicitation vẫn pass.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

chore mcp-apps v2 waiting on sdk

Surfaced while doing #1745 / #2309 (PR #2358). Same shape as #1745 was: a set of in-source mirrors carried until an upstream @modelcontextprotocol/ext-apps release makes them redundant.

Trigger

Close this when @modelcontextprotocol/ext-apps publishes a release that contains ext-apps#733 (MCP Apps-rendered elicitations, SEP-3118). 2.0.0 does not include it — #733 (opened 2026-07-29) is still open upstream as of 2026-09-13, and 2.0.0 shipped 2026-09-08 without it — so there is no bridge.requestElicitation(), no elicitation key in McpUiHostCapabilities, and no /server helpers to switch to yet. The nightly SDK watch (#1063) will file the release issue; this is the cleanup it unlocks.

Mirror sites to remove (verified against the #2358 tree)

Each is tagged in-source with ext-apps#733:

  1. core/mcp/appElicitation.ts — mirrors the #733 server-capability / URI validator helpers; replace with the package's /server exports.
  2. clients/web/src/components/elements/AppRenderer/requestAppElicitation.ts — hand-issues the ui/elicitation request; replace with bridge.requestElicitation(params).
  3. clients/web/src/components/elements/AppRenderer/appCapabilities.ts — the WeakMap + transport observer that captures the app's initialize capabilities; delete the module and read getAppCapabilities() off the bridge.
  4. createAppBridgeFactory.ts ~line 326 — the Partial<McpUiHostCapabilities> spread that adds the elicitation key the type does not yet declare.
  5. docs/test-servers.md ~line 246 — the note that the Inspector speaks the #733 wire protocol but does not yet consume its helpers.

Folded in

While touching (3): type MessageObservable / observeAppCapabilities against the SDK v2 Transport interface, which PostMessageTransport now implements (the test fakes would need start/send/close). Cosmetic on its own; do it here rather than as a separate change.

Acceptance

  • Bump @modelcontextprotocol/ext-apps to the release containing #733 (root package.json only).
  • Remove mirrors 1–5; the app-rendered elicitation flow (mcp-app-elicitation test-server config, smoke-web-elicitation.mjs) still passes.
  • npm run local:gate green.

Why not a sub-issue of #2309

#2309 tracks the 2.0.0 upgrade, which #2358 completed. Parenting this to it would hold that issue open until an ext-apps release that does not exist yet, so it is a sibling with cross-references (maintainer-confirmed).

Priority scored with the /issue-triage rubric below.

Ngôn ngữ chính
TypeScript
Star
11.3k
Fork
1.6k
Merge trung bình
2 giờ 28 phút
Pull request đã merge (30 ngày)
111

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.