EU Parliament Monitor — API Documentation - v0.8.30
    Preparing search index...

    Module Generators/Pipeline/FetchStage

    MCP data-fetching pipeline stage with circuit breaker protection.

    MCP-facing functions accept an explicit client argument instead of reading module-level state, making them straightforward to unit-test with a mock client. The loadFeedDataFromFile and loadEPFeedDataFromFile helpers introduce filesystem I/O to load pre-fetched feed JSON produced by agentic workflows.

    The CircuitBreaker (imported from mcp/mcp-retry) prevents cascading failures when the MCP server is degraded: after CircuitBreakerOptions.failureThreshold consecutive errors the circuit opens and subsequent calls short-circuit immediately.

    Functions

    computeRollingDateRange
    initializeMCPClient
    loadFeedDataFromFile
    loadEPFeedDataFromFile
    fetchWeekAheadData
    fetchVotingAnomalies
    fetchCoalitionDynamics
    fetchVotingReport
    fetchMEPInfluence
    loadCommitteeDataFromFile
    fetchCommitteeInfoFromEPAPI
    fetchCommitteeData
    fetchVotingRecords
    fetchVotingPatterns
    fetchMotionsAnomalies
    fetchParliamentaryQuestionsForMotions
    fetchMotionsData
    fetchProposalsFromMCP
    fetchPipelineFromMCP
    fetchProcedureStatusFromMCP
    fetchAdoptedTextsFeed
    fetchEventsFeed
    fetchProceduresFeed
    fetchMEPsFeed
    fetchMEPsFeedWithTotal
    fetchDocumentsFeed
    fetchPlenaryDocumentsFeed
    fetchCommitteeDocumentsFeed
    fetchPlenarySessionDocumentsFeed
    fetchExternalDocumentsFeed
    fetchQuestionsFeed
    fetchDeclarationsFeed
    fetchCorporateBodiesFeed
    fetchBreakingNewsFeedData
    fetchEPFeedData

    Classes

    CircuitBreaker → CircuitBreaker

    Interfaces

    CircuitBreakerOptions → CircuitBreakerOptions

    Type Aliases

    CircuitState → CircuitState

    Variables

    mcpCircuitBreaker