whoowes

v0.2.0
whoowes Checked 4 days ago Published 1 month ago

MCP server for trip/event expense ledgers: shared expenses, settlements, multi-currency with retroactive weighted-average rates

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

add_entry

Record an entry on a tab. type picks the kind and which fields apply. expense: tab, description, amount, currency, paid_by, shares (all pct summing to 100, or all fixed amounts summing to the total; include the payer's own share if they consumed part of it), optional note, date. settlement: tab, from, to, amount, currency, optional note, date; a payment between two people, locked at the tab's cumulative rate when recorded, so a conversion for that currency must exist first. conversion: tab, from_amount, from_currency, to_amount, to_currency, optional note, date; a real currency conversion, one…

ParameterTypeDescription
type *string
amountstring | number
currencystring
datestring
descriptionstring
fromstring
from_amount
from_currency
notestring
paid_bystring
rate
sharesarray
tabstring
tostring
to_amount
to_currency

tab

Manage tabs and participants. action picks the operation and which fields apply. create: name, base_currency; a new tab (a self-contained event or trip ledger); balances are reported in its base currency. add_participant: name; participants are global and reusable across tabs. set_status: tab, status (open|closed); a closed tab accepts no further events. set_base_currency: tab, base_currency; everything revalues retroactively and conversions re-read themselves from the new side; refused if any conversion has no side in the new base, or a rate is declared for it. Fields that do not belong to th…

ParameterTypeDescription
action *string
base_currencystring
namestring
statusstring
tabstring

view

Read ledger state. what picks the view and which fields apply. tabs: no fields; every tab with status, base currency and event count, plus the participants. balances: tab; per-participant net position in the base currency, cumulative exchange rates, and amounts that cannot be valued yet. person: tab, participant; what they were meant to pay, what they paid for, settlements made and received, and their net position. events: tab; the raw event log in order with each event's id and a one-line summary; this is where edit_event and remove_event get their event_id. Fields that do not belong to the c…

ParameterTypeDescription
what *string
participantstring
tabstring

display

Render a tab as a standalone HTML page on disk and return its absolute path, for opening in a browser. Shows rates in force, who owes what, every entry with its split, and what has been settled. Pass tab to pick one (omit it to get the tab list, or go straight to the only tab if there is just one), and who to lead with one participant's breakdown. The file is a snapshot of this moment, not a live page: render again to refresh.

ParameterTypeDescription
tabstring
whostring

delete_tab

Permanently delete a tab and its whole event log. Irreversible and unrecoverable. Tell the user how many events will be lost and get a clear yes before passing confirm: true.

ParameterTypeDescription
tab *string
confirmboolean

edit_event

Correct a recorded event in place by id, patching only the fields you pass; it keeps its position, so settlements keep the rate in force when they happened. Get ids from view what=events. Editable per kind: expense (description, amount, currency, paid_by, shares), settlement (amount, currency, from, to), conversion (from_amount, from_currency, to_amount, to_currency), rate (currency, rate); all kinds also take date and note. To clear a declared rate, remove_event it.

ParameterTypeDescription
event_id *string
tab *string
amountstring | number
currencystring
datestring
descriptionstring
fromstring
from_amount
from_currency
notestring
paid_bystring
rate
sharesarray
tostring
to_amount
to_currency

remove_event

Delete any event from a tab by id, not just the most recent one. Refused if the rest of the log then cannot be valued — e.g. removing a conversion that a later settlement locked its rate against. Use view what=events to find the event id.

ParameterTypeDescription
event_id *string
tab *string

undo_last_event

Remove the most recent event from a tab (use when an entry was recorded wrongly).

ParameterTypeDescription
tab *string