UNPKG

actual-mcp

Version:

Actual Budget MCP server exposing API functionality

15 lines 595 B
// Maps and formats transaction data for get-transactions tool import { formatAmount, formatDate } from '../../utils.js'; export class GetTransactionsMapper { map(transactions) { // TODO: Payee and category are not visible in the transaction object return transactions.map((t) => ({ date: formatDate(t.date), payee: t.payee_name || '(No payee)', category: t.category_name || '(Uncategorized)', amount: formatAmount(t.amount), notes: t.notes || '', })); } } //# sourceMappingURL=transaction-mapper.js.map