UNPKG

@tomaspavlin/rohlik-mcp

Version:

MCP server for controlling Rohlik.cz grocery shopping website

88 lines 2.35 kB
import { z } from "zod"; import { RohlikAPI } from "../rohlik-api.js"; export declare function createCartManagementTools(createRohlikAPI: () => RohlikAPI): { addToCart: { name: string; definition: { title: string; description: string; inputSchema: { products: z.ZodArray<z.ZodObject<{ product_id: z.ZodNumber; quantity: z.ZodNumber; }, "strip", z.ZodTypeAny, { product_id: number; quantity: number; }, { product_id: number; quantity: number; }>, "many">; }; }; handler: ({ products }: { products: Array<{ product_id: number; quantity: number; }>; }) => Promise<{ content: { type: "text"; text: string; }[]; isError?: undefined; } | { content: { type: "text"; text: string; }[]; isError: boolean; }>; }; getCartContent: { name: string; definition: { title: string; description: string; inputSchema: {}; }; handler: () => Promise<{ content: { type: "text"; text: string; }[]; isError?: undefined; } | { content: { type: "text"; text: string; }[]; isError: boolean; }>; }; removeFromCart: { name: string; definition: { title: string; description: string; inputSchema: { order_field_id: z.ZodString; }; }; handler: ({ order_field_id }: { order_field_id: string; }) => Promise<{ content: { type: "text"; text: string; }[]; isError?: undefined; } | { content: { type: "text"; text: string; }[]; isError: boolean; }>; }; }; //# sourceMappingURL=cart-management.d.ts.map