feat(api): expose split expenses in the REST API and MCP

Add /api/splits/ endpoints for events, participants, expenses and payments,
plus an event summary (balances and settle-up) and leave action. They share
the web UI's access rules and share calculation. MCP reaches them through
search_api/call_api, and its instructions now point to them.
This commit is contained in:
Herculino Trotta committed 2026-11-20 19:43:23 -03:00
1 parent 77bf2d7bdb
commit fe2e366a74
7 files changed
+772 -3

No files matched your search

+3 -1
View File
@@ -37,7 +37,9 @@ INSTRUCTIONS = (
"transaction counts toward: YYYY-MM in these tools, YYYY-MM-DD for recurring "
"transactions and installment plans in call_api. Use summarize_transactions for totals instead "
"of adding up search results. Look up ids with list_accounts and "
"list_categories/list_tags/list_entities. For anything else, find the "
"list_categories/list_tags/list_entities. Shared expenses with other people "
"(trips, flats) live under /api/splits/: an event's balances and who should pay "
"whom are at /api/splits/events/{id}/summary/. For anything else, find the "
"endpoint with search_api and run it with call_api."
)