UNPKG

@coinbase/agentkit-model-context-protocol

Version:

Model Context Protocol Extension of Coinbase Agentkit

21 lines (20 loc) 652 B
/** * Main exports for the AgentKit Model Context Protocol (MCP) Extension package */ import { CallToolResult, Tool } from "@modelcontextprotocol/sdk/types.js"; import { AgentKit } from "@coinbase/agentkit"; /** * The AgentKit MCP tools and tool handler */ interface AgentKitMcpTools { tools: Tool[]; toolHandler: (name: string, args: unknown) => Promise<CallToolResult>; } /** * Get Model Context Protocol (MCP) tools from an AgentKit instance * * @param agentKit - The AgentKit instance * @returns An array of tools and a tool handler */ export declare function getMcpTools(agentKit: AgentKit): Promise<AgentKitMcpTools>; export {};