Skip to content

Design the shared chart artifact #47

Description

@sergical

Part of #42

Blocked by #46

Question

Design the shared chart artifact: one HTML document that is simultaneously the MCP Apps ui:// resource for get_timeseries and the landing page's live demo.

Build it rough and concrete so it can be reacted to. Fixture data is fine at this stage.

Settled by #46 — the lead tool is get_timeseries, and the renderer should be written against the shared queryResultOutputSchema envelope rather than one tool's shape, because get_timeseries, get_breakdown and get_conversions all emit it. Do not design for compare_periods; its schema is bespoke and generalizes to nothing.

Constraints the prototype must respect:

  • Self-contained, single document. No subresources. The apex shares a 60/min per-IP rate limiter with the MCP endpoints (Serve HTML at the Worker root without breaking /mcp or /internal #43), and an MCP Apps resource renders in a CSP-whitelisted sandboxed iframe.
  • Theme-agnostic and resize-aware — it renders inside a host it does not control.
  • It must read as the product, not as marketing. Visitors are meant to see exactly what they would see in Claude.

The constraint is the point. Find out whether it produces something good enough to headline a landing page — and if it does not, say so, because that finding invalidates the one-artifact decision and reshapes the map rather than being worked around.

Link the prototype from this issue as an asset.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions