An AI assistant connected to a MES over MCP answers in text. Ask "what does OEE on the cutting line look like this week?" and you get a paragraph of numbers or a Markdown table. That is fine for a quick answer. It stops being fine when you need to compare five plan variants, scan a control chart with 200 points, or pick a machine from a list and see its trend straight away.
MCP Apps closes that gap. An MCP server returns not just data but an interface: an HTML document that the client, for example Claude Desktop, renders in a frame inside the conversation. In OmniMES 5.0, released yesterday, every App Studio app and every app shipped with the system has its own MCP Apps resource and its own tool. This article explains how that works at the protocol level and what we did so that an app in the frame cannot see more than it should.
It is written for IT and automation teams connecting AI assistants to production systems. Earlier posts covered App Studio from the user's side and an MCP server next to a PLC.
Where MCP Apps came from
The extension proposal (SEP-1865) was published on 21 November 2025 by Anthropic, OpenAI and the authors of MCP-UI. It merged two earlier approaches, MCP-UI and OpenAI's Apps SDK (Model Context Protocol, 2025). On 26 January 2026 MCP Apps became the first official MCP extension, shipped as the @modelcontextprotocol/ext-apps package (Model Context Protocol, 2026).
Client support followed quickly:
- Claude announced interactive apps in chat on 26 January 2026 (Anthropic, 2026),
- VS Code supports MCP Apps in stable release 1.109 of 4 February 2026 (Microsoft, 2026),
- ChatGPT has been fully compatible with the specification since 22 February 2026 (OpenAI, 2026),
- the MCP documentation also lists Goose, Microsoft 365 Copilot and Postman, among others.
MCP itself has moved on too. The 28 July 2026 specification made the protocol stateless (no initialize, no session header) and introduced a formal framework for extensions. Since 11 November we know that new versions will ship every six months, with the next one dated 30 March 2027 (Model Context Protocol, 2026). The MCP Apps specification we build on is version 2026-01-26.
How it works: tool, resource, frame
Three pieces make it work.
1. A tool points to a resource. An ordinary MCP tool gets a _meta.ui.resourceUri field in its metadata, for example ui://omnimes/aplikacja. When the model calls that tool, the client knows it should show an interface alongside the result.
2. The resource is an HTML document. The server exposes a resource at a ui://… address with the MIME type text/html;profile=mcp-app, the only type the specification allows. The client may fetch the resource ahead of time, before the tool is ever called, and cache it.
3. The frame talks to the host over postMessage. The document runs in an isolated frame and exchanges JSON-RPC 2.0 messages with the client, which the specification calls the host. First comes ui/initialize, answered with theme, locale and time zone. Then the host passes in the tool arguments and result, and the app can call a server tool on its own with tools/call. That last channel is what turns a static report into an app: the user changes the date range and the app asks the server for fresh data.

In a Python server (the mcp package from 1.26 on) the registration looks like this. A simplified excerpt from the OmniMES server:
APP_URI = "ui://omnimes/aplikacja"
@mcp.resource(APP_URI, name="aplikacja_omnimes",
mime_type="text/html;profile=mcp-app",
meta={"ui": {"prefersBorder": False}})
async def runner() -> str:
# Page with the JSON-RPC bridge, styles and chart libraries, no data
return await fetch_runner_from_api()
@mcp.tool(meta={"ui": {"resourceUri": APP_URI, "visibility": ["model"]}})
async def aplikacja_pokaz(app_id: int) -> CallToolResult:
"""Shows an OmniMES app in a window in the chat."""
...
@mcp.tool(meta={"ui": {"visibility": ["app"]}})
async def omnimes_app_call(app_id: int, tool: str, arguments: dict | None = None,
cap: str = "") -> CallToolResult:
"""The only tool an app in the frame may call."""
...
On the app side, fetching data is a plain Promise. In OmniMES a small bridge script hides the plumbing behind a window.omni object:
await omni.ready; // ui/initialize done
const oee = await omni.call('omni_mes_oee', { line_id: 2 }); // OEE per ISO 22400-2
// under the hood: tools/call → omnimes_app_call → OmniMES API
The app does not care whether the host is Claude Desktop or OmniMES itself. The same document runs in both, because OmniMES is also an MCP Apps host: it draws the frame and handles the same messages.
The visibility field: who may call a tool
This is the least known part of the specification and one of the most important for security. A tool can be visible to the model (model), to the app in the frame (app), or to both. The host must reject a tools/call from the frame if the tool does not list app.
In OmniMES exactly one tool is visible to apps: omnimes_app_call. All other App Studio tools, including saving and overwriting apps, are model-only. An app in the frame cannot modify another app or its own code, even if someone slips a malicious script into it.
What the specification gives you, and what you have to add
The MCP Apps specification has its own threat model: malicious HTML from the server, sandbox escape, unauthorised tool calls, data leaks, phishing and resource exhaustion. It requires the frame to have a different origin from the host, requires browser-based hosts to use an intermediate proxy frame, and blocks network access in the frame unless a CSP is declared. User consent for calls made from the interface is left to the host: it may require it, but does not have to.
That is a solid base, but not enough for a MES. The specification protects the host from the app. It does not decide whose eyes the app uses to look at the data, or who is accountable for a write. So in OmniMES 5.0 we added layers on the server side.

The frame: sandbox, CSP and proxy frame
The app runs in a frame with sandbox="allow-scripts allow-forms", without allow-same-origin and without allow-modals. It has no access to cookies, localStorage or the OmniMES page, and without alert and prompt dialogs it cannot fish for a password in a browser pop-up. The document's CSP sets connect-src 'none' and allows images only from data: and blob:. So fetch, XHR, WebSocket and external scripts do not work.
Testing turned up one gap that neither the document CSP nor the sandbox closes: the frame can navigate to another address and append data to the URL. That is why the app sits inside a proxy frame with the CSP frame-src 'none'. Chromium then blocks navigation of the nested frame before any request leaves. If the app tries anyway, the host removes the frame and shows a message. WebRTC remains outside CSP's reach, which is why confidentiality does not rest on the sandbox alone but on the permission checks below.
Permissions: the intersection of viewer and author
Every omnimes_app_call goes through the OmniMES API, which checks four things: is the tool on the list the app declared, is it in the catalogue, does the person who opened the app have the right to it, and does the app's author. Only the intersection runs.
The second condition came out of a security review. Without it, an author could share an app with someone who has broader rights, such as an administrator, and read data through that person's eyes, dropping the result into the app's shared storage. RBAC is always enforced for apps, even for customers who run the rest of the system in audit mode.
The resource page receives a cap signature issued for a specific user and a specific app version. If the app changes during the conversation, the old frame gets an app_changed response asking to reopen it, and can no longer call tools from the previous version's list.
Writes: only a proposal in Claude
Inside OmniMES, a write from an app needs confirmation in a dialog drawn by OmniMES, not by the app, showing the app's author, the method, the path and the payload. In Claude Desktop the host is Claude and we have no dialog of our own there. So from version 5.0 a write from an app in Claude becomes a proposal. It lands on the "Pending approval" screen in OmniMES and runs with the permissions of whoever approves it. Proposals that nobody handles expire after 7 days, and every step goes to the Event log.
This matches the 2026 guidance. The NSA's May 2026 guidance on designing systems with MCP recommends treating every automated action as high-risk (as summarised by Reed Smith, 2026). The OWASP MCP Top 10 project lists, among others, tool poisoning and prompt injection via contextual payloads (OWASP, 2026). The limits have to live in server code, not in the prompt. A machine name in the database can contain text the model will treat as an instruction.
Tokens: personal, not shared
App Studio tools only work with a user's personal token (oms_…). The database stores only its SHA-256 hash, the token carries its owner's permissions, and it can be revoked. The shared MCP service token cannot see these tools at all. Every change in the Event log therefore carries a real person's name, not "assistant account".
Apps shipped with the system: one resource per app
The specification ties one resource to one tool. So in OmniMES 5.0 every app shipped with the system has its own pair: a ui://omnimes/<key> resource and an aplikacja_<key> tool. That is how "What-if planner", "ERP mapping wizard" and "SPC and process capability" work, for example. The server builds the list dynamically: for a personal token it adds only the apps that are installed and available to that person, refreshed every 60 seconds.
User apps from App Studio share the ui://omnimes/aplikacja resource, a generic document that loads the app's code from the tool result. It bundles all the libraries: Chart.js 3.9.1, vis-timeline 8.5.6 and Cytoscape.js 3.34.4. Each library has its version, licence and SHA-256 hash in a manifest, which also feeds our software bill of materials (SBOM) for the CRA.
Limits worth knowing before you deploy
- Size. A tool result in Claude is capped at roughly 150,000 characters. That is why app code in OmniMES is limited to 120 KB, and the libraries come with the resource rather than the tool result.
- Different hosts, different capabilities. The MCP documentation says plainly that support varies by client. The specification recommends that a tool also return a sensible text result for clients without MCP Apps. In OmniMES the model always gets a short description of what the app shows.
- Mobile. In the Claude mobile app the frame runs in a native WebView, and on Android it has no access to the camera, microphone or location. The inline card has a limited height, and Claude's guidelines recommend at most two actions and a handful of data points in it (Anthropic, 2026). A full app needs the side panel or full screen.
- A new attack surface. Backslash Security points to XSS, clickjacking and spoofed sign-in dialogs inside developer tools (Backslash Security, 2026). Every app in a frame is code that has to be reviewed. That is why "admin"-level apps in OmniMES can only be approved by a superuser, and saving code from a conversation drops that level until it is approved again.
- Industry is only getting started. Inductive Automation (an MCP module for Ignition, early access since February 2026) and Siemens (WinCC OA MCP Server) already have MCP servers, and in May 2026 Verdantix profiled ten industrial software vendors working on MCP. In the material we reviewed, however, we found no description of MCP Apps support from automation vendors. Most industrial servers today return data, not interfaces.
What this means for a plant IT team
- Start read-only. An app that only shows data (OEE, order queue, SPC chart) needs no approval path and adds value in the conversation straight away.
- One tool for the frame. Do not give apps access to every server tool. A single entry point with an allowlist of operations is easier to check and log.
- Permissions on the server, not in the model. Check the rights of the person viewing the app and of its author. Route writes from AI conversations to an approval queue.
- Personal tokens instead of a shared one. An audit trail with a human name on it is worth more than the convenience of one key for the whole plant.
- Test on the hosts you actually use. The same app can look different in Claude Desktop, ChatGPT and VS Code.
In OmniMES 5.0 you open App Studio apps in Claude Desktop through the extension with a personal token: user menu → "AI assistant connection". Details are in the changelog.
Sources
- Model Context Protocol, MCP Apps: Extending servers with interactive user interfaces, 21.11.2025 — https://blog.modelcontextprotocol.io/posts/2025-11-21-mcp-apps/
- Model Context Protocol, SEP-1865 MCP Apps: Interactive User Interfaces for MCP — https://modelcontextprotocol.io/seps/1865-mcp-apps-interactive-user-interfaces-for-mcp
- Model Context Protocol, MCP Apps - Bringing UI Capabilities To MCP Clients, 26.01.2026 — https://blog.modelcontextprotocol.io/posts/2026-01-26-mcp-apps/
- MCP Apps specification, version 2026-01-26 — https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/2026-01-26/apps.mdx
- Model Context Protocol, MCP Apps overview — https://modelcontextprotocol.io/extensions/apps/overview
- Anthropic, Interactive tools in Claude, 26.01.2026 — https://claude.com/blog/interactive-tools-in-claude
- Anthropic, MCP Apps design guidelines — https://claude.com/docs/connectors/building/mcp-apps/design-guidelines
- Microsoft, Visual Studio Code 1.109, 4.02.2026 — https://code.visualstudio.com/updates/v1_109
- OpenAI, Apps SDK changelog — https://developers.openai.com/apps-sdk/changelog
- Model Context Protocol, 2026-07-28 specification and changelog — https://blog.modelcontextprotocol.io/posts/2026-07-28/ and https://modelcontextprotocol.io/specification/2026-07-28/changelog
- Model Context Protocol, specification release cycle, 11.11.2026 — https://blog.modelcontextprotocol.io/posts/mcp-release-cycle/
- Model Context Protocol, Security Best Practices — https://modelcontextprotocol.io/docs/tutorials/security/security_best_practices
- OWASP, MCP Top 10 (beta) — https://owasp.org/www-project-mcp-top-10/
- Reed Smith, summary of the NSA guidance on MCP, 5.06.2026 — https://www.reedsmith.com/our-insights/blogs/viewpoints/102mvg9/nsa-publishes-security-guidance-on-designing-ai-systems-with-model-context-protoc/
- Backslash Security, New MCP spec opens new attack surfaces, 28.05.2026 — https://www.backslash.security/blog/new-mcp-spec-opens-new-attack-surfaces
- Inductive Automation, MCP Module Early Access, 13.02.2026 — https://forum.inductiveautomation.com/t/mcp-module-early-access/113966
- Siemens, Architecture Hub: LLM — https://www.siemens.com/de-de/content/architecture-hub/llm/
- Verdantix, 10 Industrial Software Vendors Innovating With MCP In 2026, 7.05.2026 — https://www.verdantix.com/insights/report/market-insight--10-industrial-software-vendors-innovating-with-model-context-protocol-mcp-in-2026
Let's talk about your shop floor
In a 30-minute presentation we will show how OmniMES collects data from machines and energy meters and what it will show in your plant.
