feat: add mcp app renderer (#6095)

Co-authored-by: Douwe Osinga <douwe@block.xyz>
Co-authored-by: Douwe Osinga <douwe@squareup.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Andrew Harvard
2025-12-22 18:01:21 -05:00
committed by GitHub
parent 762b2cf54d
commit 91a6b21f39
29 changed files with 1786 additions and 95 deletions
@@ -106,6 +106,21 @@ export default function ToolCallWithResponse({
return null;
}
})}
{/* MCP Apps - This data will be coming from a resources/read result. */}
{/* TODO Hook this up */}
{/* {toolResponse?.toolResult &&
mockResourceReadResult.contents.map((content) => {
return (
<McpAppRenderer
resource={content}
key={content.uri}
toolInput={{ arguments: toolCall.arguments }}
toolResult={toolResponse.toolResult.value as unknown as ToolResult}
append={append}
/>
);
})} */}
</>
);
}