Package com.appliedolap.essbase.impl
Class EssMcpImpl
java.lang.Object
com.appliedolap.essbase.impl.EssMcpImpl
- All Implemented Interfaces:
EssMcp
Talks to the MCP server Essbase 26.1 serves from inside its own REST API.
Not through the generated client, even though 26.1 does describe these paths. It describes them
as empty stubs - no request body, no parameters, no responses - and with no tag, so they generate
as DefaultApi.callTool() and listTools() returning void: callable, and
incapable of handing back the answer. Hence plain requests and hand-read JSON.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRuns one tool.What the MCP server calls itself, e.g.getTools()The tools it offers.booleanWhether this server has an MCP server at all.
-
Constructor Details
-
EssMcpImpl
-
-
Method Details
-
isAvailable
public boolean isAvailable()Description copied from interface:EssMcpWhether this server has an MCP server at all. False on anything older than 26.1, which answers 404 to the discovery endpoint.- Specified by:
isAvailablein interfaceEssMcp- Returns:
- true if the endpoint answered
-
getServerInfo
Description copied from interface:EssMcpWhat the MCP server calls itself, e.g.Essbase MCP 0.2.3.- Specified by:
getServerInfoin interfaceEssMcp- Returns:
- the name and version, or empty if there is no MCP server here
-
getTools
Description copied from interface:EssMcpThe tools it offers. -
call
Description copied from interface:EssMcpRuns one tool.Arguments are sent as given; the endpoint validates them. A tool that fails comes back as a result with
EssMcpResult.isError()set rather than as an exception.
-