Interface for Model Context Protocol (MCP) operations.
listTools: (clientId: string) => Promise<IMCPTool<MCPToolProperties>[]>
Lists available tools for a given client.
hasTool: (toolName: string, clientId: string) => Promise<boolean>
Checks if a specific tool exists for a given client.
callTool: <T extends MCPToolValue = { [x: string]: unknown; }>(toolName: string, dto: IMCPToolCallDto<T>) => Promise<MCPToolOutput>
Calls a specific tool with the provided parameters.
updateToolsForAll: () => Promise<void>
Updates the list of tools by clearing the cache and invoking the update callback.
updateToolsForClient: (clientId: string) => Promise<void>
Updates the list of tools by clearing the cache and invoking the update callback.