Skip to content

Commit b58881e

Browse files
committed
Update for ease of review.
🏠 Remote-Dev: homespace
1 parent 59bf37c commit b58881e

1 file changed

Lines changed: 70 additions & 25 deletions

File tree

seps/1865-mcp-apps-interactive-user-interfaces-for-mcp.md

Lines changed: 70 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,82 @@
33
- **Status**: Final
44
- **Type**: Extensions Track
55
- **Created**: 2025-11-21
6-
- **Author(s)**: Ido Salomon (@idosal), Liad Yosef (@liadyosef), Olivier Chafik (@olivierchafik), Jerome Swannack (@jeromeswannack), Jonathan Hefner (@jonathanhefner), Anton Pidkuiko (@antonpidkuiko), Nick Cooper (@nickcooper), Bryan Ashley (@bryanashley), Alexi Christakis (@alexichristakis)
6+
- **Author(s)**: Ido Salomon (@idosal), Liad Yosef (@liadyosef), Olivier Chafik (@olivierchafik),
7+
Jerome Swannack (@jeromeswannack), Jonathan Hefner (@jonathanhefner),
8+
Anton Pidkuiko (@antonpidkuiko), Nick Cooper (@nickcooper), Bryan Ashley (@bryanashley),
9+
Alexi Christakis (@alexichristakis)
710
- **Sponsor**: None (seeking sponsor)
811
- **PR**: https://github.com/modelcontextprotocol/modelcontextprotocol/pull/1865
912

1013
<Note>
11-
The full extension specification is maintained in the [ext-apps repository](https://github.com/modelcontextprotocol/ext-apps/tree/main/specification).
14+
The full extension specification is maintained in the
15+
[ext-apps repository](https://github.com/modelcontextprotocol/ext-apps/tree/main/specification).
1216
</Note>
1317

1418
## Abstract
1519

16-
This SEP proposes an extension to MCP (per SEP-1724) that enables servers to deliver interactive user interfaces to hosts. MCP Apps introduces a standardized pattern for declaring UI resources via the `ui://` URI scheme, associating them with tools through metadata, and facilitating bi-directional communication between the UI and the host using MCP's JSON-RPC base protocol. This extension addresses the growing community need for rich, interactive experiences in MCP-enabled applications, maintaining security, auditability, and alignment with MCP's core architecture. The initial specification focuses on HTML resources (`text/html;profile=mcp-app`) with a clear path for future extensions.
20+
This SEP proposes an extension to MCP (per SEP-1724) that enables servers to deliver interactive
21+
user interfaces to hosts. MCP Apps introduces a standardized pattern for declaring UI resources via
22+
the `ui://` URI scheme, associating them with tools through metadata, and facilitating
23+
bi-directional communication between the UI and the host using MCP's JSON-RPC base protocol. This
24+
extension addresses the growing community need for rich, interactive experiences in MCP-enabled
25+
applications, maintaining security, auditability, and alignment with MCP's core architecture. The
26+
initial specification focuses on HTML resources (`text/html;profile=mcp-app`) with a clear path for
27+
future extensions.
1728

1829
## Motivation
1930

20-
MCP lacks a standardized way for servers to deliver rich, interactive user interfaces to hosts. This gap blocks many use cases that require visual presentation and interactivity that go beyond plain text or structured data. As more hosts adopt this capability, the risk of fragmentation and interoperability challenges grows.
31+
MCP lacks a standardized way for servers to deliver rich, interactive user interfaces to hosts.
32+
This gap blocks many use cases that require visual presentation and interactivity that go beyond
33+
plain text or structured data. As more hosts adopt this capability, the risk of fragmentation and
34+
interoperability challenges grows.
2135

22-
[MCP-UI](https://mcpui.dev/) has demonstrated the viability and value of MCP apps built on UI resources and serves as a community playground for the UI spec and SDK. Fueled by a dedicated community, it developed the bi-directional communication model and the HTML, external URL, and remote DOM content types. MCP-UI's adopters, including hosts and providers such as Postman, HuggingFace, Shopify, Goose, and ElevenLabs, have provided critical insights and contributions to the community.
36+
[MCP-UI](https://mcpui.dev/) has demonstrated the viability and value of MCP apps built on UI
37+
resources and serves as a community playground for the UI spec and SDK. Fueled by a dedicated
38+
community, it developed the bi-directional communication model and the HTML, external URL, and
39+
remote DOM content types. MCP-UI's adopters, including hosts and providers such as Postman,
40+
HuggingFace, Shopify, Goose, and ElevenLabs, have provided critical insights and contributions to
41+
the community.
2342

24-
OpenAI's [Apps SDK](https://developers.openai.com/apps-sdk/), launched in November 2025, further validated the demand for rich UI experiences within conversational AI interfaces. The Apps SDK enables developers to build rich, interactive applications inside ChatGPT using MCP as its backbone.
43+
OpenAI's [Apps SDK](https://developers.openai.com/apps-sdk/), launched in November 2025, further
44+
validated the demand for rich UI experiences within conversational AI interfaces. The Apps SDK
45+
enables developers to build rich, interactive applications inside ChatGPT using MCP as its
46+
backbone.
2547

26-
The architecture of both the Apps SDK and MCP-UI has significantly informed the design of this specification.
48+
The architecture of both the Apps SDK and MCP-UI has significantly informed the design of this
49+
specification.
2750

2851
However, without formal standardization:
2952

3053
- Servers cannot reliably expect UI support via MCP
3154
- Each host may implement slightly different behaviors
3255
- Security and auditability patterns are inconsistent
33-
- Developers must maintain separate implementations or adapters for different hosts (e.g., MCP-UI vs. Apps SDK)
56+
- Developers must maintain separate implementations or adapters for different hosts (e.g., MCP-UI
57+
vs. Apps SDK)
3458

35-
This SEP addresses the current limitations through an optional, backwards-compatible extension that unifies the approaches pioneered by MCP-UI and the Apps SDK into a single, open standard.
59+
This SEP addresses the current limitations through an optional, backwards-compatible extension that
60+
unifies the approaches pioneered by MCP-UI and the Apps SDK into a single, open standard.
3661

3762
## Specification
3863

39-
The full specification can be found at [modelcontextprotocol/ext-apps](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx).
64+
The full specification can be found at
65+
[modelcontextprotocol/ext-apps](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx).
4066

41-
At a high level, MCP Apps extends the Model Context Protocol to enable servers to deliver interactive user interfaces to hosts. This extension introduces:
67+
At a high level, MCP Apps extends the Model Context Protocol to enable servers to deliver
68+
interactive user interfaces to hosts. This extension introduces:
4269

4370
- **UI Resources:** Predeclared resources using the `ui://` URI scheme
4471
- **Resource Discovery:** Tools reference UI resources via metadata
45-
- **Bi-directional Communication:** UI iframes communicate with hosts using standard MCP JSON-RPC protocol
72+
- **Bi-directional Communication:** UI iframes communicate with hosts using standard MCP JSON-RPC
73+
protocol
4674
- **Security Model:** Mandatory iframe sandboxing with auditable communication
4775

48-
This specification focuses on HTML content (`text/html;profile=mcp-app`) as the initial content type, with extensibility for future formats.
76+
This specification focuses on HTML content (`text/html;profile=mcp-app`) as the initial content
77+
type, with extensibility for future formats.
4978

50-
As an extension, MCP Apps is optional and must be explicitly negotiated between clients and servers through the extension capabilities mechanism (see Capability Negotiation section in the [full specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx)).
79+
As an extension, MCP Apps is optional and must be explicitly negotiated between clients and servers
80+
through the extension capabilities mechanism (see Capability Negotiation section in the
81+
[full specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx)).
5182

5283
## Rationale
5384

@@ -61,17 +92,23 @@ UI is modeled as predeclared resources (`ui://`), referenced by tools via metada
6192

6293
**Alternatives considered:**
6394

64-
- **Embedded resources:** Current MCP-UI approach, where resources are returned in tool results. Although it's more convenient for server development, it was deferred due to the gaps in performance optimization and the challenges in the UI review process.
65-
- **Resource links:** Predeclare the resources but return links in tool results. Deferred due to the gaps in performance optimization.
95+
- **Embedded resources:** Current MCP-UI approach, where resources are returned in tool results.
96+
Although it's more convenient for server development, it was deferred due to the gaps in
97+
performance optimization and the challenges in the UI review process.
98+
- **Resource links:** Predeclare the resources but return links in tool results. Deferred due to
99+
the gaps in performance optimization.
66100

67101
### Reusing MCP JSON-RPC instead of a custom protocol
68102

69-
Reuses existing MCP infrastructure (type definitions, SDKs, etc.). JSON-RPC offers advanced capabilities (timeouts, errors, etc.).
103+
Reuses existing MCP infrastructure (type definitions, SDKs, etc.). JSON-RPC offers advanced
104+
capabilities (timeouts, errors, etc.).
70105

71106
**Alternatives considered:**
72107

73-
- **Custom message protocol:** Current MCP-UI approach with message types like tool, intent, prompt, etc. These message types can be translated to a subset of the proposed JSON-RPC messages.
74-
- **Global API object:** Rejected because it requires host-specific injection and doesn't work with external iframe sources. Syntactic sugar may still be added on the server/UI side.
108+
- **Custom message protocol:** Current MCP-UI approach with message types like tool, intent,
109+
prompt, etc. These message types can be translated to a subset of the proposed JSON-RPC messages.
110+
- **Global API object:** Rejected because it requires host-specific injection and doesn't work with
111+
external iframe sources. Syntactic sugar may still be added on the server/UI side.
75112

76113
### HTML-only MVP
77114

@@ -83,15 +120,20 @@ Reuses existing MCP infrastructure (type definitions, SDKs, etc.). JSON-RPC offe
83120

84121
**Alternatives considered:**
85122

86-
- **Include external URLs in MVP:** This is one of the easiest content types for servers to adopt, as it's possible to embed regular apps. However, it was deferred due to concerns around model visibility, inability to screenshot content, and review process. It may effectively be supported with the SEP's new `externalIframes` capability.
123+
- **Include external URLs in MVP:** This is one of the easiest content types for servers to adopt,
124+
as it's possible to embed regular apps. However, it was deferred due to concerns around model
125+
visibility, inability to screenshot content, and review process. It may effectively be supported
126+
with the SEP's new `externalIframes` capability.
87127

88128
## Backward Compatibility
89129

90-
The proposal is an optional extension to the core protocol. Existing implementations continue working without changes.
130+
The proposal is an optional extension to the core protocol. Existing implementations continue
131+
working without changes.
91132

92133
## Security Implications
93134

94-
Hosting interactive UI content from potentially untrusted MCP servers requires careful security consideration.
135+
Hosting interactive UI content from potentially untrusted MCP servers requires careful security
136+
consideration.
95137

96138
Based on the threat model, MCP Apps proposes the following mitigations:
97139

@@ -100,9 +142,12 @@ Based on the threat model, MCP Apps proposes the following mitigations:
100142
- **Auditable messages**: All UI-to-host communication goes through loggable JSON-RPC
101143
- **User consent**: Hosts can require explicit approval for UI-initiated tool calls
102144

103-
A full threat model analysis and mitigations are available in the [full specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx).
145+
A full threat model analysis and mitigations are available in the
146+
[full specification](https://github.com/modelcontextprotocol/ext-apps/blob/main/specification/draft/apps.mdx).
104147

105148
## Reference Implementation
106149

107-
- [MCP-UI](https://github.com/idosal/mcp-ui) client and server SDKs support the patterns proposed in this spec.
108-
- [ext-apps](https://github.com/modelcontextprotocol/ext-apps) repository contains a prototype implementation by Olivier Chafik.
150+
- [MCP-UI](https://github.com/idosal/mcp-ui) client and server SDKs support the patterns proposed
151+
in this spec.
152+
- [ext-apps](https://github.com/modelcontextprotocol/ext-apps) repository contains a prototype
153+
implementation by Olivier Chafik.

0 commit comments

Comments
 (0)