feat(apps): Pass toolInfo to MCP Apps via hostContext (#7506)

Co-authored-by: Goose <opensource@block.xyz>
This commit is contained in:
Andrew Harvard
2026-03-23 09:12:47 -04:00
committed by GitHub
parent 259ca26dfe
commit a43cbe5875
7 changed files with 118 additions and 2 deletions
@@ -115,6 +115,8 @@ function McpAppWrapper({
requestWithMeta.toolCall.status === 'success' ? requestWithMeta.toolCall.value.name : '';
const delimiterIndex = toolCallName.lastIndexOf('__');
const extensionName = delimiterIndex === -1 ? '' : toolCallName.substring(0, delimiterIndex);
const toolName =
delimiterIndex === -1 ? toolCallName : toolCallName.substring(delimiterIndex + 2);
const toolArguments =
requestWithMeta.toolCall.status === 'success'
@@ -139,6 +141,7 @@ function McpAppWrapper({
toolInput={toolInput}
toolResult={toolResult}
extensionName={extensionName}
toolName={toolName}
sessionId={sessionId}
append={append}
/>