This commit is contained in:
Olivier Chafik 2025-11-24 16:12:55 +00:00
commit bc6458d3fb
No known key found for this signature in database

View file

@ -4,7 +4,7 @@ import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { import {
type CallToolResult, type CallToolResult,
type LoggingMessageNotification, type LoggingMessageNotification,
type McpError, McpError,
ErrorCode, ErrorCode,
} from "@modelcontextprotocol/sdk/types.js"; } from "@modelcontextprotocol/sdk/types.js";
@ -49,15 +49,9 @@ export interface UITemplatedToolCallRendererProps {
/** Optional result from tool execution to pass to the tool UI once it's ready */ /** Optional result from tool execution to pass to the tool UI once it's ready */
toolResult?: CallToolResult; toolResult?: CallToolResult;
onopenlink?: ( onopenlink?: AppBridge["onopenlink"];
params: McpUiOpenLinkRequest["params"], onmessage?: AppBridge["onmessage"];
extra: RequestExtra, onloggingmessage?: AppBridge["onloggingmessage"];
) => Promise<McpUiOpenLinkResult>;
onmessage?: (
params: McpUiMessageRequest["params"],
extra: RequestExtra,
) => Promise<McpUiMessageResult>;
onloggingmessage?: (params: LoggingMessageNotification["params"]) => void;
/** Callback invoked when an error occurs during setup or message handling */ /** Callback invoked when an error occurs during setup or message handling */
onerror?: (error: Error) => void; onerror?: (error: Error) => void;