@gviper/alphavantage-mcp
Version:
MCP (Model Context Protocol) server for Alpha Vantage financial data API
170 lines • 8.06 kB
TypeScript
import { z } from 'zod';
import { Commodities } from '@gviper/alphavantage-api';
declare const CommodityParamsSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
export declare function createCommoditiesTools(commodities: Commodities): {
av_commodities_crude_oil_wti: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_crude_oil_brent: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_natural_gas: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_copper: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_aluminum: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_wheat: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_corn: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_cotton: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_sugar: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_coffee: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
av_commodities_global_index: {
description: string;
inputSchema: z.ZodObject<{
interval: z.ZodOptional<z.ZodEnum<["daily", "weekly", "monthly"]>>;
datatype: z.ZodOptional<z.ZodEnum<["json", "csv"]>>;
}, "strip", z.ZodTypeAny, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}, {
interval?: "daily" | "weekly" | "monthly" | undefined;
datatype?: "json" | "csv" | undefined;
}>;
handler: (params: z.infer<typeof CommodityParamsSchema>) => Promise<import("@gviper/alphavantage-api").CommodityResponse>;
};
};
export {};
//# sourceMappingURL=commodities.d.ts.map