UNPKG

@tomaspavlin/rohlik-mcp

Version:

MCP server for controlling Rohlik.cz grocery shopping website

36 lines 1.13 kB
import { z } from "zod"; import { RohlikAPI } from "../rohlik-api.js"; declare const MEAL_CATEGORY_MAPPINGS: Record<string, string[]>; export declare function createMealSuggestionsTool(createRohlikAPI: () => RohlikAPI): { name: string; definition: { title: string; description: string; inputSchema: { meal_type: z.ZodEnum<["breakfast", "lunch", "dinner", "snack", "baking", "drinks", "healthy"]>; items_count: z.ZodDefault<z.ZodNumber>; orders_to_analyze: z.ZodDefault<z.ZodNumber>; prefer_frequent: z.ZodDefault<z.ZodBoolean>; }; }; handler: (args: { meal_type: keyof typeof MEAL_CATEGORY_MAPPINGS; items_count?: number; orders_to_analyze?: number; prefer_frequent?: boolean; }) => Promise<{ content: { type: "text"; text: string; }[]; isError: boolean; } | { content: { type: "text"; text: string; }[]; isError?: undefined; }>; }; export {}; //# sourceMappingURL=meal-suggestions.d.ts.map