EU Parliament Monitor - API Documentation - v0.7.0
    Preparing search index...

    Class WorldBankMCPClient

    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.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    serverLabel: string

    Human-readable server name for log messages

    Methods

    • Send a request to the MCP server

      Parameters

      • method: string

        RPC method name

      • params: Record<string, unknown> = {}

        Method parameters

      Returns Promise<unknown>

      Server response

    • Get economic indicator data for a specific country.

      Calls the get_indicator_for_country tool on the World Bank MCP server.

      Parameters

      • countryId: string

        World Bank country code (e.g., 'DEU' for Germany, 'FRA' for France)

      • indicatorId: string

        World Bank indicator ID (e.g., 'NY.GDP.MKTP.CD' for GDP)

      Returns Promise<MCPToolResult>

      MCP tool result with CSV-formatted indicator data, or empty text on error