@tomaspavlin/rohlik-mcp
Version:
MCP server for controlling Rohlik.cz grocery shopping website
137 lines • 3.78 kB
TypeScript
import { RohlikAPI } from "../rohlik-api.js";
export declare function createAllTools(createRohlikAPI: () => RohlikAPI): {
[x: string]: {
name: string;
definition: {
title: string;
description: string;
inputSchema: {
product_name: import("zod").ZodString;
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
favourite_only: import("zod").ZodDefault<import("zod").ZodBoolean>;
};
};
handler: (args: {
product_name: string;
limit?: number;
favourite_only?: boolean;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError?: undefined;
} | {
content: {
type: "text";
text: string;
}[];
isError: boolean;
}>;
} | {
name: string;
definition: {
title: string;
description: string;
inputSchema: {
products: import("zod").ZodArray<import("zod").ZodObject<{
product_id: import("zod").ZodNumber;
quantity: import("zod").ZodNumber;
}, "strip", import("zod").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;
}>;
} | {
name: string;
definition: {
title: string;
description: string;
inputSchema: {};
};
handler: () => Promise<{
content: {
type: "text";
text: string;
}[];
isError?: undefined;
} | {
content: {
type: "text";
text: string;
}[];
isError: boolean;
}>;
} | {
name: string;
definition: {
title: string;
description: string;
inputSchema: {
order_field_id: import("zod").ZodString;
};
};
handler: ({ order_field_id }: {
order_field_id: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError?: undefined;
} | {
content: {
type: "text";
text: string;
}[];
isError: boolean;
}>;
} | {
name: string;
definition: {
title: string;
description: string;
inputSchema: {
shopping_list_id: import("zod").ZodString;
};
};
handler: ({ shopping_list_id }: {
shopping_list_id: string;
}) => Promise<{
content: {
type: "text";
text: string;
}[];
isError?: undefined;
} | {
content: {
type: "text";
text: string;
}[];
isError: boolean;
}>;
};
};
//# sourceMappingURL=index.d.ts.map