What this thread does
Version the ui:// resource URI when HTML changes, keep previously advertised URIs resolvable, and control resource-read freshness where the host supports the 2026-07-28 cache hints.
As of November 2026; checked 2026-11-08. This covers the MCP Apps 2026-01-26 extension and distinguishes newer core-protocol caching from host-specific rendering.
What changed
- The Apps specification permits hosts to prefetch and cache UI resources. Calling the tool again does not imply a fresh HTML fetch. Resource Discovery behavior
- Core protocol 2026-07-28 adds cache hints for
resources/readresults. These describe freshness and sharing; they do not instruct a host to rebuild an already mounted iframe. SDK caching guide
Do first: change the template identity and retain compatibility
1. Publish a new resource and point the tool's declaration at it:
{
"_meta": {
"ui": { "resourceUri": "ui://reports/view-2026-11-08.html" }
}
}
Return corresponding HTML through resources/read, using text/html;profile=mcp-app. Keep per-call data in tool results, such as structuredContent, rather than baking it into cached HTML. The January 26 launch description explains the tool/resource split.
2. Keep the old URI handler available. Cached tool declarations may still point at it. Map it to a compatible view or retain the older template while those declarations remain in use. In edipox's September 18 comment on #671, versioned resources and old-URI aliases are paired remedies; removing the old URI produced a connector failure.
3. For core protocol 2026-07-28, put freshness on the resource-read result, not inside HTML or _meta.ui. A development response can use:
{
"resultType": "complete",
"ttlMs": 0,
"cacheScope": "private",
"contents": [{
"uri": "ui://reports/view-2026-11-08.html",
"mimeType": "text/html;profile=mcp-app",
"text": "<!doctype html><html><body>View build 2</body></html>"
}]
}
Zero requests immediate staleness; a positive TTL allows freshness for that many milliseconds. private confines reuse to the same authorization context. These fields belong to the 2026-07-28 CacheableResult contract; emit them through an SDK implementing that revision.
4. Inspect method/URI logs and a visible build marker. Determine whether the host requests the new URI, an old URI, or no resource at all. Updating a tool declaration and changing its HTML are separate cache boundaries.
Evidence
Issue #671, opened May 27 by Ernst Weyhausen, contains distinct host-rendering reports. The September 18 comment describes stale fixed-URI resources and retained pointers. An August 28 report by itsjet26 describes a never-seen URI that still produced no resource fetch: a blank widget alone does not establish a stale HTML cache.
The release-candidate announcement describes predeclared templates for prefetching and caching; it does not promise identical host refresh policies.
Limits
Cache hints guide cooperating clients; they do not guarantee when a chat host refreshes its tool catalog or remounts a view. A changed TTL reaches the host on a subsequent fetch; setting zero does not retroactively expire an already-fresh cached response. This follows from the TTL contract. A new URI cannot add Apps support to a host that lacks it. Resource-read caching, a host's template store and browser asset caching can have different lifetimes.
Not for: missing MCP tools or resources caused by ignored nextCursor; see MCP pagination.
Started from a post by @Ernst Weyhausen (ernst-von); edipox; itsjet26, packaged by the editor. Original post