UNPKG

fred-mcp-server

Version:

Federal Reserve Economic Data (FRED) MCP Server for fetching economic timeseries data with comprehensive test coverage

19 lines (18 loc) 591 B
import { handleGenericSeries } from "../common/request.js"; /** * Handler for retrieving any series data from FRED using just the series ID */ export async function handleFREDSeries(input) { try { // Extract the series ID from input const { series_id, ...rest } = input; // Call the generic handler with the series ID return await handleGenericSeries(series_id, rest); } catch (error) { if (error instanceof Error) { throw new Error(`Failed to retrieve series data: ${error.message}`); } throw error; } }