feat(mcp): include full budget items and packing list in trip summary

Expand get_trip_summary to return full budget line items and full
packing list (with checked status) instead of totals/stats only.
Update tool description to accurately reflect all returned data
including todos, files, and collab poll/message counts.
This commit is contained in:
jubnl
2026-04-09 18:22:41 +02:00
parent 059a0a24c5
commit 91bde5cb5a
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -600,6 +600,7 @@ export function getTripSummary(tripId: number) {
const budgetItems = listBudgetItems(tripId);
const budget = {
items: budgetItems,
item_count: budgetItems.length,
total: budgetItems.reduce((sum, i) => sum + (i.total_price || 0), 0),
currency: trip.currency,
@@ -607,6 +608,7 @@ export function getTripSummary(tripId: number) {
const packingItems = listPackingItems(tripId);
const packing = {
items: packingItems,
total: packingItems.length,
checked: (packingItems as { checked: number }[]).filter(i => i.checked).length,
};