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.
Description
MCP data-fetching pipeline stage with circuit breaker protection.
MCP-facing functions accept an explicit
clientargument 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.