@baruchiro/actual-mcp
Version:
Actual Budget MCP server exposing API functionality
12 lines • 536 B
JavaScript
// Parses and validates input arguments for balance-history tool
export class BalanceHistoryInputParser {
parse(args) {
const { accountId, includeOffBudget, months } = args;
return {
accountId: typeof accountId === 'string' && accountId.length > 0 ? accountId : undefined,
includeOffBudget: typeof includeOffBudget === 'boolean' ? includeOffBudget : false,
months: typeof months === 'number' && months > 0 ? months : 12,
};
}
}
//# sourceMappingURL=input-parser.js.map