Skip to content

Commit 3c076bd

Browse files
committed
In AppRenderer.tsx
- remove fetch and evaluation of resourceUri, as the mcpClient handles that (review request)
1 parent f10a27a commit 3c076bd

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

client/src/components/AppRenderer.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
type RequestHandlerExtra,
1313
} from "@mcp-ui/client";
1414
import {
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>

0 commit comments

Comments
 (0)