Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat(mcp): register the new surfaces, and point the model at the units

Maurice66530a074f2d
diff --git a/server/src/nest/mcp-transport/mcp-transport.constants.ts b/server/src/nest/mcp-transport/mcp-transport.constants.ts
index bec0641b5..a0396c0cd 100644
--- a/server/src/nest/mcp-transport/mcp-transport.constants.ts
+++ b/server/src/nest/mcp-transport/mcp-transport.constants.ts
@@ -69,6 +69,7 @@ The following features are optional and may not be available on every TREK insta
- When the user asks to "add X to day Y", resolve both the place (search + create if needed) and the day ID before calling \`assign_place_to_day\`.
- Do not batch destructive operations (delete trip, delete day, delete place) without explicit user confirmation for each.
- Present budget amounts with the trip's currency. Use \`get_trip_summary\` to read the currency field.
+- Read \`get_display_settings\` before rendering a temperature, a distance or a clock time: the user has picked units, a time format and a default currency, and guessing at them contradicts what they see in the app.
- For group trips, always check member IDs via \`list_trip_members\` before calling tools that require a \`userId\` (e.g. budget splits, assignment participants).
`.trim();