Implements TMCPConnectionService
Public service class for interacting with MCP (Model Context Protocol) operations. Provides methods to list tools, check tool existence, call tools, and dispose resources, executing operations within a specified context.
constructor();
loggerService: any
Injected LoggerService for logging operations.
mcpConnectionService: any
Injected MCPConnectionService for handling MCP operations.
dispose: (methodName: string, clientId: string, mcpName: string) => Promise<void>
Disposes of resources associated with a client within a specified context.
listTools(methodName: string, clientId: string, mcpName: string): Promise<IMCPTool[]>;
Lists available tools for a given client within a specified context.
updateToolsForAll(methodName: string, mcpName: string): Promise<void>;
Updates the list of tools for all clients within a specified context.
updateToolsForClient(methodName: string, clientId: string, mcpName: string): Promise<void>;
Updates the list of tools for a specific client within a specified context.
hasTool(methodName: string, clientId: string, mcpName: string, toolName: string): Promise<boolean>;
Checks if a specific tool exists for a given client within a specified context.
callTool<T extends MCPToolValue = MCPToolValue>(methodName: string, clientId: string, mcpName: string, toolName: string, dto: IMCPToolCallDto<T>): Promise<MCPToolOutput>;
Calls a specific tool with the provided parameters within a specified context.