PrivateserverPrivateconnectedPrivateprocessPrivaterequestPrivatependingPrivateconnectionPrivatemaxPrivateconnectionPrivategatewayGateway URL for HTTP transport mode
PrivategatewayAPI key for gateway authentication
PrivatemcpMCP session ID returned by the gateway
ProtectedserverHuman-readable server name for log messages
Check if client is connected
Connection status
Check if using gateway HTTP transport
True if gateway mode is active
Get the configured gateway URL
Gateway URL or null if using stdio transport
Get the configured gateway API key
Gateway API key or null if not set
Get the current MCP session ID
Session ID returned by the gateway, or null if not yet connected
Connect to the MCP server with retry logic
Private_Validate a gateway response body, throwing on JSON-RPC errors.
Response content-type header
Raw response body text
Private_Attempt a single connection via MCP Gateway (HTTP transport)
Private_Attempt a single connection via stdio (spawns server binary)
Disconnect from the MCP server
Handle incoming messages from MCP server (stdio mode only)
JSON message line from server
Private_Send a request via MCP Gateway (HTTP transport)
RPC method name
Method parameters
Server response
Send a request to the MCP server
RPC method name
Method parameters
Server response
List available MCP tools
List of available tools
Call an MCP tool
Tool name
Tool arguments (must be a plain object, non-null, not an array)
Tool execution result
Base MCP connection managing JSON-RPC 2.0 transport over stdio or HTTP gateway. Extended by domain-specific clients to add tool wrapper methods.