Package com.axelor.ai.mcp
Class OfficialMcpClientFactory
java.lang.Object
com.axelor.ai.mcp.OfficialMcpClientFactory
- All Implemented Interfaces:
McpClientFactory
MCP client factory backed by the official SDK, with cached, periodically refreshed connections.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallTool(McpConnectionConfig config, String toolName, String argsJson) voidclose(McpConnectionConfig config) discover(McpConnectionConfig config) listTools()consumes every page.
-
Constructor Details
-
OfficialMcpClientFactory
public OfficialMcpClientFactory()
-
-
Method Details
-
discover
listTools()consumes every page. Any failure propagates, so no partial list.- Specified by:
discoverin interfaceMcpClientFactory
-
callTool
- Specified by:
callToolin interfaceMcpClientFactory
-
close
- Specified by:
closein interfaceMcpClientFactory
-