From c8b70b4bac276c60d81d448ccd081f37b64ea7f1 Mon Sep 17 00:00:00 2001 From: Andrew Harvard Date: Tue, 24 Feb 2026 12:45:57 -0500 Subject: [PATCH] fix(apps): forward _meta in tool results to MCP Apps (#7476) --- ui/desktop/src/components/McpApps/McpAppRenderer.tsx | 1 + ui/desktop/src/components/McpApps/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/ui/desktop/src/components/McpApps/McpAppRenderer.tsx b/ui/desktop/src/components/McpApps/McpAppRenderer.tsx index ff4ddd801e..b53c380e1c 100644 --- a/ui/desktop/src/components/McpApps/McpAppRenderer.tsx +++ b/ui/desktop/src/components/McpApps/McpAppRenderer.tsx @@ -637,6 +637,7 @@ export default function McpAppRenderer({ return { content: toolResult.content as unknown as CallToolResult['content'], structuredContent: toolResult.structuredContent as { [key: string]: unknown } | undefined, + _meta: toolResult._meta, }; }, [toolResult]); diff --git a/ui/desktop/src/components/McpApps/types.ts b/ui/desktop/src/components/McpApps/types.ts index a4a86284e1..c2efed80cc 100644 --- a/ui/desktop/src/components/McpApps/types.ts +++ b/ui/desktop/src/components/McpApps/types.ts @@ -40,6 +40,7 @@ export type McpAppToolCancelled = McpUiToolCancelledNotification['params']; export type McpAppToolResult = { content: Content[]; structuredContent?: unknown; + _meta?: { [key: string]: unknown }; }; export type SamplingMessage = {