Summary
Add an mcp_app_demo tool/resource preset to test-servers/ — a minimal MCP App widget that exercises size-changed, ui/message, log notifications, and hostContext rendering end-to-end with no external server. Requires plumbing a _meta field through the composable test server's tool/resource definitions.
Why
Every Apps-host conformance feature in this decomposition needs a fixture to test against. A bundled demo widget lets unit/integration tests (and manual verification) drive the full host surface without depending on an external ext-apps server.
Reference implementation (PR #1510)
Re-implement informed by these changes at 33fac3f:
Depends on
Nothing — Wave 1 foundation, parallel-safe. The CLI --app-info tests and Apps-host feature tests will use this preset.
Notes
- The PR's fixture HTML contains a raw
rgba(0,0,0,0.06) in an inline <style>. It's a static fixture string, not a component, so it's arguably outside the AGENTS.md color-token rule — but decide deliberately (keep with a comment, or drop the styling).
- Update
test-servers/ docs/README if the preset list is documented.
Part of the PR #1510 decomposition (see tracking issue).
Summary
Add an
mcp_app_demotool/resource preset totest-servers/— a minimal MCP App widget that exercises size-changed,ui/message, log notifications, and hostContext rendering end-to-end with no external server. Requires plumbing a_metafield through the composable test server's tool/resource definitions.Why
Every Apps-host conformance feature in this decomposition needs a fixture to test against. A bundled demo widget lets unit/integration tests (and manual verification) drive the full host surface without depending on an external ext-apps server.
Reference implementation (PR #1510)
Re-implement informed by these changes at
33fac3f:createMcpAppDemoTool(),createMcpAppDemoResource(),MCP_APP_DEMO_HTMLinline widget (+156 lines)mcp_app_demotool +mcp_app_demo_widgetresource presets_metafield onToolDefinition/ResourceDefinitionDepends on
Nothing — Wave 1 foundation, parallel-safe. The CLI
--app-infotests and Apps-host feature tests will use this preset.Notes
rgba(0,0,0,0.06)in an inline<style>. It's a static fixture string, not a component, so it's arguably outside the AGENTS.md color-token rule — but decide deliberately (keep with a comment, or drop the styling).test-servers/docs/README if the preset list is documented.Part of the PR #1510 decomposition (see tracking issue).