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: docs/src/guide/client/overview.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ The `@mcp-ui/client` package helps you render UI resources sent from an MCP-enab
7
7
-**`<UIResourceRenderer />`**: The main component you'll use. It inspects the resource's `mimeType` and renders either `<HTMLResourceRenderer />` or `<RemoteDOMResourceRenderer />` internally.
8
8
-**`<HTMLResourceRenderer />`**: Internal component for HTML/URL resources
9
9
-**`<RemoteDOMResourceRenderer />`**: Internal component for remote DOM resources
10
+
-**`isUIResource()`**: Utility function to check if content is a UI resource (replaces manual `content.type === 'resource' && content.resource.uri?.startsWith('ui://')` checks)
10
11
11
12
## Purpose
12
13
-**Standardized UI**: mcp-ui's client guarantees full compatibility with the latest MCP UI standards.
But provides better type safety and is more concise.
278
+
279
+
---
280
+
233
281
## Handling Asynchronous Actions with Message IDs
234
282
235
283
When an action from the iframe requires asynchronous processing on the host, the `messageId` property can be used to track the action's lifecycle and result. This allows the iframe to fetch data from the host, present feedback to the user (e.g., loading indicators), success messages, etc.
0 commit comments