Skip to content

Render MCP App previews when hosts strip private metadata - #46

Merged
nicosuave merged 1 commit into
mainfrom
mcp-app-preview-fallback
Oct 13, 2026
Merged

nicosuave merged 1 commit into
mainfrom
mcp-app-preview-fallback

Conversation

@nicosuave

Copy link
Copy Markdown
Member

Some MCP Apps hosts drop a tool result's _meta before forwarding it to the app iframe, leaving the Artifacts app with nothing to render.

  • artifacts_preview (local, Cloudflare and managed paths) mirrors the artifact payload into structuredContent.appPreview; workspace results mirror into appWorkspace.
  • artifacts_preview accepts event_id.
  • The app falls back to those mirrors, and when it only receives a compact artifact/preview.artifact selection it reopens it through artifacts_preview.

New e2e coverage fails without the runtime change; unit, worker and MCP App e2e suites pass locally.

Mirror artifact and workspace payloads into structuredContent (appPreview,
appWorkspace), accept event_id on artifacts_preview, and let the app reopen a
compact selection through artifacts_preview when only a version id arrives.
@nicosuave
nicosuave marked this pull request as ready for review October 13, 2026 02:10
@nicosuave
nicosuave merged commit d31b41f into main Oct 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant