Skip to content

test-servers: mcp_app_demo preset + _meta support on tool/resource definitions #1557

Description

@cliffhall

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).

Metadata

Metadata

Assignees

Labels

v2Issues and PRs for v2

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions