UNPKG

@baruchiro/actual-mcp

Version:

Actual Budget MCP server exposing API functionality

16 lines 605 B
// Maps and formats transaction data for get-transactions tool import { formatAmount, formatDate } from '../../utils.js'; export class GetTransactionsMapper { map(transactions) { return transactions.map((t) => ({ id: t.id, date: formatDate(t.date), payee: t.payee_name || t.payee || '(No payee)', category: t.category_name || t.category || '(Uncategorized)', amount: formatAmount(t.amount), notes: t.notes || '', cleared: t.cleared ?? false, })); } } //# sourceMappingURL=transaction-mapper.js.map