UNPKG

expense-log-mcp

Version:

A MCP server that provides tools for logging expenses.

48 lines (47 loc) 1.77 kB
import { z } from "zod"; import { successResponse, errorResponse } from "./utils.js"; declare const getGroupedExpensesParameters: z.ZodObject<{ ledgerId: z.ZodString; categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; payer: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; endDate: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { ledgerId: string; payer?: string | undefined; categoryIds?: string[] | undefined; startDate?: string | undefined; endDate?: string | undefined; }, { ledgerId: string; payer?: string | undefined; categoryIds?: string[] | undefined; startDate?: string | undefined; endDate?: string | undefined; }>; type GetGroupedExpensesParameters = z.infer<typeof getGroupedExpensesParameters>; export declare const getGroupedExpenses: { name: string; description: string; parameters: z.ZodObject<{ ledgerId: z.ZodString; categoryIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; payer: z.ZodOptional<z.ZodString>; startDate: z.ZodOptional<z.ZodString>; endDate: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { ledgerId: string; payer?: string | undefined; categoryIds?: string[] | undefined; startDate?: string | undefined; endDate?: string | undefined; }, { ledgerId: string; payer?: string | undefined; categoryIds?: string[] | undefined; startDate?: string | undefined; endDate?: string | undefined; }>; execute: ({ ledgerId, categoryIds, payer, startDate, endDate }: GetGroupedExpensesParameters) => Promise<ReturnType<typeof successResponse> | ReturnType<typeof errorResponse>>; }; export {};