io.modelcontextprotocol/ui). An app is an ordinary MCP server with a tool that points to a UI resource and that resource served as HTML. OpenWork renders it as real, interactive UI in chat and on your dashboard; what you do inside it is not sent to the model. OpenWork supports the subset below, not every optional feature of the specification. Apps must check the host’s advertised capabilities. The ext-apps repository provides the SDK and examples.
To build an App without writing an MCP server, ask the agent for one: see Apps you build are their own MCP servers.
How OpenWork runs tools inside an App
Once a connected App is open, annotated read-only helpers can run automatically. Any tool that can modify data requires a recent, verified click inside that App. Clicking Send, for example, authorizes one tool call without an additional OpenWork approval modal. Native keyboard activation of a button counts; synthetic clicks and background writes do not. The interaction grant is single-use and lasts at most 1,500 milliseconds in the focused App. The first tool call consumes it, even if that call is read-only; a second write needs a new trusted click. Unapproved writes fail withtool_requires_approval before reaching the provider. Calls still require authenticated collaborator access, organization permissions, the originating server, and a live launch lease. Read-only previews and archived conversations cannot call tools, even read-only helpers.
Supported host protocol
The shared chat and dashboard renderer uses the stable 2026-01-26 protocol withext-apps 1.7.5:
- After initialization, the host sends complete
ui/notifications/tool-inputarguments beforeui/notifications/tool-result. Result delivery retainscontent,structuredContent,_meta, and the optionalisErrorflag, including explicitfalse. - Eligible dashboard refreshes use notification updates in that same document: ordered input/result delivery updates the data without another initialization. App result handlers must accept subsequent results rather than treating the first result as the only one.
- Writable Apps advertise
serverToolsandopenLinks. Tool calls retain the originating endpoint, workspace, session, engine (when supplied), and live launch lease through dispatch. Automatic read-only helpers are allowed; writes require the recent single-use trusted interaction described above, without an additional host confirmation. OpenWork’s sandbox proxy verifies the interaction and overwrites request_meta["openwork/userInteraction"]; an App cannot authorize itself by supplying that field. Link requests require an active writable view, use the host’s HTTP(S)-only opener, and report failures. - Only
inlinedisplay is available. Validui/request-display-moderequests return the currentinlinemode, including requests for fullscreen or picture-in-picture; they do not change the layout. - Size notifications adjust the inline height within host limits. Unmount retains the existing bounded
ui/resource-teardownhandshake and bridge close. - Message/context writes, View-provided tools, and resource proxy requests are not supported by this renderer. Unsupported requests receive protocol errors, not successful empty responses. There is no full progress or cancellation forwarding.
Launch leases expire 30 minutes after creation; tool calls and clicks do not extend that fixed lifetime. This lease is separate from the 1,500-millisecond interaction grant. Closing or replacing a view disables its pending actions and releases its owned lease. Dashboard endpoint removal also retires that endpoint’s lease. A restored cached view cannot reuse the previous lease, and the server revalidates launch ownership before dispatching tools. Reopen or freshly launch the App after its lease expires.
In-place refresh requires a valid, eligible read-only dashboard launch with server-advertised
app.refresh metadata containing resourceDigest and expiresAt. The host submits the expected resource digest; the server checks the live lease, permissions, tool and current resource before dispatch. A changed resource is denied before the tool runs, and the host replaces the old view through the normal guarded launch path instead of delivering incompatible data to it. A changed launch scope, input or policy also invalidates document reuse; any permitted fresh launch creates a replacement document. Refresh does not extend the fixed lease, authorize a write, or relax authentication, approval or retry rules. This continuity behavior does not add automatic recovery from expired-launch errors.
Chat views mount from completed, preserved results; dashboard tiles render successful or saved results. A cancelled in-flight launch therefore has no mounted recipient for ui/notifications/tool-cancelled. Cancelling another operation or unmounting an already completed result does not invent a cancellation notification. Early mounting and streaming launch input are not implemented. Dashboard launch failures retain the existing error or saved-result presentation rather than mounting an actionable failed launch.
Provider data and gateway additions
ProviderstructuredContent is left unchanged, including fields named serverTools or schemaGuidance. OpenWork gateway additions use reserved _meta keys: openwork/mcpApp for the launch binding, openwork/serverTools for gateway tool names, and openwork/schemaGuidance for advisory schema warnings. Apps should read gateway tool names from result._meta["openwork/serverTools"], not from provider structuredContent.serverTools.
Schema guidance is also appended as a separate text content block under openwork/schemaGuidance so the model can use it without seeing private result _meta. Warnings do not invalidate a provider success or justify repeating a successful call. Gateway-generated error payloads may still include schemaGuidance; those payloads are not provider structured data.
Requirements OpenWork checks
- The tool’s
_meta.ui.resourceUriis a string starting withui://. - If
_meta.ui.visibilityis set, it includes"app". resources/readfor that URI returns exactly one content item withmimeTypetext/html;profile=mcp-app, at most 768 KiB.- Optional
_meta.ui.cspon the resource supportsconnectDomains,resourceDomains,frameDomains, andbaseUriDomains: HTTPS origins only, up to 16 each.permissionsanddomainare not supported; OpenWork rejects a resource containing either. - The server is reachable over HTTP(S) as a remote Streamable HTTP MCP server. Local stdio servers cannot be added as an organization connection.
- Mark read-only tools with
annotations: { readOnlyHint: true }and do not mark them destructive. Helpers with this annotation and withoutdestructiveHint: truecan run automatically in an active writable App. Other helper calls require a recent single-use trusted click. Launch tools without the read-only annotation, or withdestructiveHint: true, run only on request. - OpenWork uses the tool’s
title, orannotations.title, as the App’s name.
Example: a Team budget widget
Install@modelcontextprotocol/sdk, @modelcontextprotocol/ext-apps, and express, then create these two files.
1
Create the MCP server
server.ts
2
Create the view
Bundle this file with Vite so it resolves the package import, or serve the import through an ESM CDN.
view.html
3
Add it to OpenWork
Run the server on a public HTTPS URL, or use a tunnel for testing. To try it yourself, add it as a workspace MCP. To share it with your organization, add it in OpenWork Cloud under Manage › Connectors (shared MCP connections). Then ask the agent to call
get_budget, and the App renders inline in chat.Tips
- Keep the resource self-contained. If it loads remote assets, declare their origins in
_meta.ui.csp. - Return shared result data in
structuredContentand readable fallback text incontent. Treat both as model-visible; put view-only data in result_meta. - One tool can drive one view. Ship several tools for several widgets.