| 4 | * Represents a tool provided by an MCP server. |
| 5 | */ |
| 6 | export interface MCPTool { |
| 7 | description?: string; |
| 8 | /** Schema defining parameters, mirroring the MCP structure. */ |
| 9 | schema?: { |
| 10 | parameters?: { |
| 11 | properties?: Record<string, any>; |
| 12 | required?: string[]; |
| 13 | jsonSchema?: Record<string, any>; |
| 14 | }; |
| 15 | }; |
| 16 | /** The function to call to execute the tool on the MCP server. */ |
| 17 | execute(params: any): Promise<any>; |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Defines the contract for *any* MCP client implementation the user might provide. |
no outgoing calls
no test coverage detected
searching dependent graphs…