UNPKG

@smithery/sdk

Version:

SDK to develop with Smithery

16 lines (15 loc) 698 B
import type { Client } from "@modelcontextprotocol/sdk/client/index.js"; import { type Tool } from "ai"; type ToolClient = Pick<Client, "listTools" | "callTool" | "setNotificationHandler">; /** * Watches the MCP client for tool changes and updates the tools object accordingly. * @param client The MCP client to watch * @returns A record of tool names to their implementations */ export declare function watchTools(client: ToolClient): Promise<Record<string, Tool>>; /** * Returns a set of wrapped AI SDK tools from the MCP server. * @returns A record of tool names to their implementations */ export declare function listTools(client: ToolClient): Promise<Record<string, Tool>>; export {};