Package com.pnfsoftware.jeb.client.mcp
Interface IJebMcpServer
public interface IJebMcpServer
Basic definition of a JEB MCP server instance.
-
Method Summary
Modifier and TypeMethodDescriptionGet the HTTP endpoint path exposed by the server.Get the hostname or bind address used by the server.getName()Get the server name.intgetPort()Get the listening port used by the server.intGet the server version.voidjoin()Serve requests until the server is stopped.default voidserve()Deprecated.voidsetToolCallLogVerbosity(int verbosity) Set the verbosity level for logging messages displayed when a tool is being invoked by an MCP client.
-
Method Details
-
getName
String getName()Get the server name.- Returns:
- server name
-
getVersion
String getVersion()Get the server version.- Returns:
- server version
-
getHostname
String getHostname()Get the hostname or bind address used by the server.- Returns:
- hostname
-
getPort
int getPort()Get the listening port used by the server.- Returns:
- port number
-
getEndpoint
String getEndpoint()Get the HTTP endpoint path exposed by the server.- Returns:
- endpoint path
-
join
void join()Serve requests until the server is stopped. -
serve
Deprecated.usejoin()instead -
getToolCallLogVerbosity
int getToolCallLogVerbosity()- Returns:
- verbosity level:
- 0=nothing logged
- 1=basic tool call info is logged
- 2=detailed tool call info is logged
-
setToolCallLogVerbosity
void setToolCallLogVerbosity(int verbosity) Set the verbosity level for logging messages displayed when a tool is being invoked by an MCP client.- Parameters:
verbosity- verbosity level:- 0=nothing logged
- 1=basic tool call info is logged
- 2=detailed tool call info is logged
-
join()instead