+ {appTools.map((tool) => {
+ const meta = (tool as { _meta?: { ui?: { resourceUri?: string } } })
+ ._meta;
+ const resourceUri = meta?.ui?.resourceUri || "";
+
+ return (
+
setSelectedTool(tool)}
+ >
+
{tool.name}
+ {tool.description && (
+
+ {tool.description}
+
+ )}
+
+
+ {resourceUri}
+
+
+
+ );
+ })}
+
+ )}
+
+ {selectedTool &&
+ (() => {
+ const resourceUri =
+ (
+ selectedTool as Tool & {
+ _meta?: { ui?: { resourceUri?: string } };
+ }
+ )._meta?.ui?.resourceUri || "";
+ const content = resourceContentMap[resourceUri] || "";
+
+ console.log("[AppsTab] Rendering app:", {
+ toolName: selectedTool.name,
+ resourceUri,
+ hasContent: !!content,
+ contentLength: content.length,
+ resourceContentMapKeys: Object.keys(resourceContentMap),
+ });
+
+ return (
+