ext-apps/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Chafik bcfffb6585
Clarify spec and SDK: accept UIResourceMeta in both resources/list and resources/read (#410)
* Clarify spec and SDK: accept UIResourceMeta in both resources/list and resources/read

The spec defines UIResource with _meta.ui, implicitly as an extension of the Resource type (resources/list), but examples and practice place _meta.ui on TextResourceContents (resources/read). The registerAppResource helper accepts _meta.ui in its config (which ends up in resources/list), but examples only return said _meta.ui from resources/read — and current hosts might be just ignoring it.

This change:
- Adds a 'Metadata Location' subsection to the draft spec explicitly stating that _meta.ui is valid on both the resource listing entry AND the content item, with content-item taking precedence.
- Updates the spec example to show _meta on the resource declaration (resources/list).
- Updates the CSP construction example to reference both locations.
- Clarifies McpUiAppResourceConfig JSDoc: _meta here appears in resources/list and serves as a listing-level fallback for when content items omit _meta.ui.
- Fixes the map-server example comment that incorrectly stated _meta must only be on the content item.

* Add McpUiReadResourceResult type for UI metadata in resources/read

* basic-host: support UIResourceMeta fallback from resources/list

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-04 14:26:09 +00:00
..
basic-host Clarify spec and SDK: accept UIResourceMeta in both resources/list and resources/read (#410) 2026-02-04 14:26:09 +00:00
basic-server-preact Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-react Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-solid Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-svelte Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-vanillajs Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
basic-server-vue Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
budget-allocator-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
cohort-heatmap-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
customer-segmentation-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
debug-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
integration-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
map-server Clarify spec and SDK: accept UIResourceMeta in both resources/list and resources/read (#410) 2026-02-04 14:26:09 +00:00
pdf-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
qr-server chore: bump to 1.0.1 - fix npm reference for ext-apps dependency in examples + update zod to 4.x (#368) 2026-01-26 21:55:15 +00:00
quickstart Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
say-server chore: bump to 1.0.1 - fix npm reference for ext-apps dependency in examples + update zod to 4.x (#368) 2026-01-26 21:55:15 +00:00
scenario-modeler-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
shadertoy-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
sheet-music-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
system-monitor-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
threejs-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
transcript-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
video-resource-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
wiki-explorer-server Use escaped double quotes in npm scripts for Windows compatibility 2026-02-02 09:05:40 -06:00
run-all.ts add EXAMPLE=folder-name support for tests & basic-host (#292) 2026-01-19 20:16:37 +00:00