UNPKG

@baruchiro/actual-mcp

Version:

Actual Budget MCP server exposing API functionality

11 lines 718 B
// Generates the response/report for get-transactions tool export class GetTransactionsReportGenerator { generate(mappedTransactions, filterDescription, filteredCount, totalCount) { const header = '| ID | Date | Payee | Category | Amount | Cleared | Notes |\n| ---- | ----- | -------- | ------ | ----- | ------- | ----- |\n'; const rows = mappedTransactions .map((t) => `| ${t.id} | ${t.date} | ${t.payee} | ${t.category} | ${t.amount} | ${t.cleared} | ${t.notes} |`) .join('\n'); return `# Filtered Transactions\n\n${filterDescription}\nMatching Transactions: ${filteredCount}/${totalCount}\n\n${header}${rows}`; } } //# sourceMappingURL=report-generator.js.map