Package com.pnfsoftware.jeb.client.mcp
Class JebMcpServerInstance
java.lang.Object
com.pnfsoftware.jeb.client.mcp.JebMcpServerInstance
Factory for an MCP server bound to the current JEB engines context.
How to start the MCP server:
- Automatic start when VIBRE dialog is brought up in the GUI.
- Manual start from the GUI (File menu).
- Programmatically, call one of the
start(...)methods.
VIBRE automatically uses JEB's MCP server. However, it can be used by any agent that supports the
registration of external MCP servers. Several tools use a standardized mcpServers key in
their Json configuration file (Claude's claude_desktop_config.json, LM Studio's
mcp.json, etc.). If you use the default settings for JEB's MCP, you add something like:
"jeb-mcp-server": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:8425/mcp"
]
}
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JebMcpServerget()Get the current singleton server instance.static JebMcpServerstart()Start the singleton MCP server bound to the current JEB engines, using the default port and default endpoint.static JebMcpServerStart the singleton MCP server bound to the current JEB engines.static JebMcpServerstart(String hostname, int preferredServerPort, String endpoint, IClientContext clientContext) Start the singleton MCP server bound to the current JEB engines.static booleanstop()Stop the singleton MCP server bound to the current JEB engines.
-
Field Details
-
DEFAULT_HOST
Default server hostname.- See Also:
-
DEFAULT_PORT
public static final int DEFAULT_PORTDefault server port.- See Also:
-
DEFAULT_ENDPOINT
Default HTTP endpoint path.- See Also:
-
-
Constructor Details
-
JebMcpServerInstance
public JebMcpServerInstance()
-
-
Method Details
-
get
Get the current singleton server instance.- Returns:
- the running server, or null if none was started
-
start
Start the singleton MCP server bound to the current JEB engines, using the default port and default endpoint.- Returns:
- the running server instance, or null if startup failed
-
start
Start the singleton MCP server bound to the current JEB engines.- Parameters:
hostname- hostname to bind to; null to use the defaultpreferredServerPort- port to listen on; 0 to use the defaultendpoint- endpoint for clients; null to use the default- Returns:
- the running server instance, or null if startup failed
-
start
public static JebMcpServer start(String hostname, int preferredServerPort, String endpoint, IClientContext clientContext) Start the singleton MCP server bound to the current JEB engines.- Parameters:
hostname- hostname to bind to; null to use the defaultpreferredServerPort- port to listen on; 0 to use the defaultendpoint- endpoint for clients; null to use the defaultclientContext- an optional client context (the MCP server may offer a different set of tools based on the JEB context; example: if aGUI contextis provided, the server will attempt to provide UI-specific tools on top of the standard tool set)- Returns:
- the running server instance, or null if startup failed
-
stop
public static boolean stop()Stop the singleton MCP server bound to the current JEB engines.- Returns:
- success indicator
-