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
Disconnect from the MCP server
Handle incoming messages from MCP server (stdio mode only)
JSON message line from server
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
Get economic indicator data for a specific country.
Calls the get_indicator_for_country tool on the World Bank MCP server.
World Bank country code (e.g., 'DEU' for Germany, 'FRA' for France)
World Bank indicator ID (e.g., 'NY.GDP.MKTP.CD' for GDP)
MCP tool result with CSV-formatted indicator data, or empty text on error
MCP Client for World Bank economic data access. Extends MCPConnection with World Bank-specific tool wrapper methods.
Always supplies an explicit World Bank server path so the base class never falls back to the European Parliament MCP server defaults.