UNPKG

@smithery/sdk

Version:

SDK to develop with Smithery

13 lines (12 loc) 573 B
import type { Message, MessageParam, Tool } from "@anthropic-ai/sdk/resources/index.js"; import type { Client } from "@modelcontextprotocol/sdk/client/index.js"; import type { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js"; /** * Adapt an MCP client so it works seamlessly with Anthropic messages */ export declare class AnthropicChatAdapter { private client; constructor(client: Pick<Client, "callTool" | "listTools">); listTools(): Promise<Tool[]>; callTool(response: Message, options?: RequestOptions): Promise<MessageParam[]>; }