European Parliament MCP Server API - v1.2.6
    Preparing search index...

    Variable DEFAULT_TIMEOUTSConst

    DEFAULT_TIMEOUTS: {
        EP_API_REQUEST_MS: 60000;
        EP_FEED_SLOW_REQUEST_MS: 120000;
        HEALTH_CHECK_MS: 3000;
        RETRY_DELAY_MS: 1000;
    } = ...

    Default timeout configurations for common operation types. These are compile-time constants; override by passing a custom TimeoutConfig at the call site rather than relying on environment variables.

    Type Declaration

    • ReadonlyEP_API_REQUEST_MS: 60000

      Standard EP API HTTP request (60 s — some meeting sub-endpoints are slow)

    • ReadonlyEP_FEED_SLOW_REQUEST_MS: 120000

      Extended timeout for known slow EP API feed endpoints (120 s).

      The procedures/feed and events/feed endpoints on the EP Open Data Portal are significantly slower than other feed endpoints (e.g. adopted-texts/feed) and routinely exceed the standard 60 s timeout when queried with timeframe=one-month. This extended timeout gives those endpoints enough headroom to respond without falling back to empty timeout responses.

    • ReadonlyHEALTH_CHECK_MS: 3000

      Short health-check probe (3 s)

    • ReadonlyRETRY_DELAY_MS: 1000

      Retry delay base (1 s)