UNPKG

@smithery/sdk

Version:

SDK to develop with Smithery

6 lines (5 loc) 249 B
import type { Client } from "@modelcontextprotocol/sdk/client/index.js"; /** * Wraps each tool call so any errors get sent back to the LLM instead of throwing */ export declare function wrapError<C extends Pick<Client, "callTool">>(client: C): C;