Skip to content

Commit c8b70b4

Browse files
authored
fix(apps): forward _meta in tool results to MCP Apps (#7476)
1 parent 6305b9d commit c8b70b4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ui/desktop/src/components/McpApps/McpAppRenderer.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ export default function McpAppRenderer({
637637
return {
638638
content: toolResult.content as unknown as CallToolResult['content'],
639639
structuredContent: toolResult.structuredContent as { [key: string]: unknown } | undefined,
640+
_meta: toolResult._meta,
640641
};
641642
}, [toolResult]);
642643

ui/desktop/src/components/McpApps/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export type McpAppToolCancelled = McpUiToolCancelledNotification['params'];
4040
export type McpAppToolResult = {
4141
content: Content[];
4242
structuredContent?: unknown;
43+
_meta?: { [key: string]: unknown };
4344
};
4445

4546
export type SamplingMessage = {

0 commit comments

Comments
 (0)