File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
1212 type RequestHandlerExtra ,
1313} from "@mcp-ui/client" ;
1414import {
15- getToolUiResourceUri ,
1615 type McpUiMessageRequest ,
1716 type McpUiMessageResult ,
1817} from "@modelcontextprotocol/ext-apps/app-bridge" ;
@@ -38,9 +37,6 @@ const AppRenderer = ({
3837 const [ error , setError ] = useState < string | null > ( null ) ;
3938 const { toast } = useToast ( ) ;
4039
41- // Extract UI metadata from tool
42- const resourceUri = getToolUiResourceUri ( tool ) ;
43-
4440 const hostContext : McpUiHostContext = useMemo (
4541 ( ) => ( {
4642 theme : document . documentElement . classList . contains ( "dark" )
@@ -89,17 +85,6 @@ const AppRenderer = ({
8985 }
9086 } ;
9187
92- if ( ! resourceUri ) {
93- return (
94- < Alert variant = "destructive" >
95- < AlertCircle className = "h-4 w-4" />
96- < AlertDescription >
97- No UI resource URI found in tool metadata
98- </ AlertDescription >
99- </ Alert >
100- ) ;
101- }
102-
10388 if ( ! mcpClient ) {
10489 return (
10590 < Alert >
You can’t perform that action at this time.
0 commit comments