Repository navigation
Add MCP Apps provider foundation for Dynamic Artifacts - #3689
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (b1ffd5cb7c7fd4ac441c2851ee67d8716bde74c4). 1 advisory desktop↔den sync note(s) were posted as review comments; they do not affect clearance. Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
b1ffd5c to
149ece5
Compare
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (149ece5c5a16a8a51a45a693dbaac943544a5f10). 1 advisory desktop↔den sync note(s) were posted as review comments; they do not affect clearance. Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Summary
render_dynamic_artifacttool with versioned structured content and complete Markdown fallbackui://openwork/dynamic-artifact/v1/view.htmlStandards alignment
The agent MCP endpoint uses the official
@modelcontextprotocol/ext-appsserver helpers and advertises theio.modelcontextprotocol/uiextension:text/html;profile=mcp-appresource delivery throughresources/read_meta.ui.resourceUriand its compatibility aliasReferences: MCP Apps overview and 2026-01-26 specification.
Product and security behavior
The renderer reuses the existing organization membership, team grants, and saved-Script authorization path. A caller supplies only a Script ID, optional exact receipt, and optional freshness threshold. Missing, failed, deleted, unreadable, or unauthorized snapshots fail closed without exposing internal details.
Common result shapes render as bounded tables or metric cards; the Data and Lineage views retain the full structured result and immutable receipt/version/source/digest facts. Unsupported MCP Apps clients receive the same artifact as Markdown.
Scope boundary
This PR is the provider half of the vertical. It does not add an MCP Apps host to the OpenWork desktop conversation surface. Until that follow-up lands, desktop users continue to receive the Markdown fallback. The host remains a separate implementation because it must preserve MCP metadata and structured results through the OpenCode boundary, resolve and validate resources, and enforce an opaque sandbox/bridge lifecycle generically for upstream MCP servers.
Verification
Exact base/head at publication:
bf689dfbea3f5d87b866fe600b2ebc555dbfdb90149ece5c5Passed locally:
pnpm --filter @openwork-ee/den-api exec bun test test/mcp-dynamic-artifact-app.test.ts— 5 passed, 27 assertionspnpm --filter @openwork-ee/den-api exec tsc -p tsconfig.json --noEmit --pretty falsepnpm evals:typecheckThe opt-in saved-Script/Automation testkit journey is extended and typechecked but has not run in the required Den/model environment. No real iframe-host proof is claimed in this provider-only PR.