UNPKG

@baruchiro/actual-mcp

Version:

Actual Budget MCP server exposing API functionality

12 lines 525 B
export class MonthlySummaryInputParser { parse(args) { if (!args || typeof args !== 'object') { throw new Error('Arguments must be an object'); } const argsObj = args; const months = typeof argsObj.months === 'number' && argsObj.months > 0 ? argsObj.months : 3; const accountId = typeof argsObj.accountId === 'string' && argsObj.accountId.length > 0 ? argsObj.accountId : undefined; return { months, accountId }; } } //# sourceMappingURL=input-parser.js.map