You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The primary payload returned from the server to the client is the `UIResource`:
52
52
interfaceUIResource {
53
53
type:'resource';
54
54
resource: {
55
-
uri:string; // ui://component/id
55
+
uri:string; //e.g., ui://component/id
56
56
mimeType:'text/html'|'text/uri-list'|'application/vnd.mcp-ui.remote-dom'; // text/html for HTML content, text/uri-list for URL content, application/vnd.mcp-ui.remote-dom for remote-dom content (Javascript)
57
57
text?:string; // Inline HTML, external URL, or remote-dom script
58
58
blob?:string; // Base64-encoded HTML, URL, or remote-dom script
@@ -63,7 +63,7 @@ interface UIResource {
63
63
***`uri`**: Unique identifier for caching and routing
64
64
*`ui://…` — UI resources (rendering method determined by mimeType)
65
65
***`mimeType`**: `text/html` for HTML content (iframe srcDoc), `text/uri-list` for URL content (iframe src), `application/vnd.mcp-ui.remote-dom` for remote-dom content (Javascript)
66
-
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid URL and logs others
66
+
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid `http/s`URL and warns if additional URLs are found
67
67
***`text` vs. `blob`**: Choose `text` for simple strings; use `blob` for larger or encoded content.
68
68
69
69
### Resource Renderer
@@ -96,7 +96,7 @@ Rendered using the `<HTMLResourceRenderer />` component, which displays content
96
96
97
97
***`mimeType`**:
98
98
*`text/html`: Renders inline HTML content.
99
-
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid URL.
99
+
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid `http/s`URL.
100
100
101
101
#### Remote DOM (`application/vnd.mcp-ui.remote-dom`)
Copy file name to clipboardExpand all lines: docs/src/guide/protocol-details.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ export interface UIResource {
40
40
41
41
## URI List Format Support
42
42
43
-
When using `mimeType: 'text/uri-list'`, the content follows the standard URI list format (RFC 2483). However, **MCP-UI requires a single URL** for rendering.
43
+
When using `mimeType: 'text/uri-list'`, the content follows the standard URI list format (RFC 2483). However, **MCP-UI requires a single URL** for rendering. For security reasons, the protocol must be `http/s`.
44
44
45
45
-**Single URL Requirement**: MCP-UI will use only the first valid URL found
46
46
-**Multiple URLs**: If multiple URLs are provided, the client will use the first valid URL and log a warning about the ignored alternatives
Copy file name to clipboardExpand all lines: packages/client/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The primary payload returned from the server to the client is the `UIResource`:
52
52
interfaceUIResource {
53
53
type:'resource';
54
54
resource: {
55
-
uri:string; // ui://component/id
55
+
uri:string; //e.g., ui://component/id
56
56
mimeType:'text/html'|'text/uri-list'|'application/vnd.mcp-ui.remote-dom'; // text/html for HTML content, text/uri-list for URL content, application/vnd.mcp-ui.remote-dom for remote-dom content (Javascript)
57
57
text?:string; // Inline HTML, external URL, or remote-dom script
58
58
blob?:string; // Base64-encoded HTML, URL, or remote-dom script
@@ -63,7 +63,7 @@ interface UIResource {
63
63
***`uri`**: Unique identifier for caching and routing
64
64
*`ui://…` — UI resources (rendering method determined by mimeType)
65
65
***`mimeType`**: `text/html` for HTML content (iframe srcDoc), `text/uri-list` for URL content (iframe src), `application/vnd.mcp-ui.remote-dom` for remote-dom content (Javascript)
66
-
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid URL and logs others
66
+
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid `http/s`URL and warns if additional URLs are found
67
67
***`text` vs. `blob`**: Choose `text` for simple strings; use `blob` for larger or encoded content.
68
68
69
69
### Resource Renderer
@@ -96,7 +96,7 @@ Rendered using the `<HTMLResourceRenderer />` component, which displays content
96
96
97
97
***`mimeType`**:
98
98
*`text/html`: Renders inline HTML content.
99
-
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid URL.
99
+
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid `http/s`URL.
100
100
101
101
#### Remote DOM (`application/vnd.mcp-ui.remote-dom`)
Copy file name to clipboardExpand all lines: packages/server/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ The primary payload returned from the server to the client is the `UIResource`:
52
52
interfaceUIResource {
53
53
type:'resource';
54
54
resource: {
55
-
uri:string; // ui://component/id
55
+
uri:string; //e.g., ui://component/id
56
56
mimeType:'text/html'|'text/uri-list'|'application/vnd.mcp-ui.remote-dom'; // text/html for HTML content, text/uri-list for URL content, application/vnd.mcp-ui.remote-dom for remote-dom content (Javascript)
57
57
text?:string; // Inline HTML, external URL, or remote-dom script
58
58
blob?:string; // Base64-encoded HTML, URL, or remote-dom script
@@ -63,7 +63,7 @@ interface UIResource {
63
63
***`uri`**: Unique identifier for caching and routing
64
64
*`ui://…` — UI resources (rendering method determined by mimeType)
65
65
***`mimeType`**: `text/html` for HTML content (iframe srcDoc), `text/uri-list` for URL content (iframe src), `application/vnd.mcp-ui.remote-dom` for remote-dom content (Javascript)
66
-
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid URL and logs others
66
+
***MCP-UI requires a single URL**: While `text/uri-list` format supports multiple URLs, MCP-UI uses only the first valid `http/s`URL and warns if additional URLs are found
67
67
***`text` vs. `blob`**: Choose `text` for simple strings; use `blob` for larger or encoded content.
68
68
69
69
### Resource Renderer
@@ -96,7 +96,7 @@ Rendered using the `<HTMLResourceRenderer />` component, which displays content
96
96
97
97
***`mimeType`**:
98
98
*`text/html`: Renders inline HTML content.
99
-
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid URL.
99
+
*`text/uri-list`: Renders an external URL. MCP-UI uses the first valid `http/s`URL.
100
100
101
101
#### Remote DOM (`application/vnd.mcp-ui.remote-dom`)
0 commit comments