mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-20 13:51:45 +00:00
da39b570eb
- Add Journey addon tools (list, get, entries, contributors, suggestions, available trips, create/update/delete journey and entries, reorder, contributors CRUD, preferences, share link management) - Add Journey resources (trek://journeys and sub-resources) - Split transport (flight/train/car/cruise) into dedicated tools with endpoints[] and needs_review support; narrow reservation types to non-transport only - Add airport lookup tools (search_airports, get_airport) under geo:read - Add import_places_from_url and bulk_delete_places to places tools - Add journey:read/write/share OAuth scopes (27 total) with translations across all 15 locales - Default end_day to start_day when creating a transport (MCP + UI) - Fix MCP.md drift: addon gates, removed files resource, corrected get_trip_summary description, todos under Packing addon
55 lines
2.0 KiB
TypeScript
55 lines
2.0 KiB
TypeScript
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp';
|
|
import { registerTodoTools } from './tools/todos';
|
|
import { registerAssignmentTools } from './tools/assignments';
|
|
import { registerJourneyTools } from './tools/journey';
|
|
import { registerReservationTools } from './tools/reservations';
|
|
import { registerTagTools } from './tools/tags';
|
|
import { registerMapsWeatherTools } from './tools/mapsWeather';
|
|
import { registerNotificationTools } from './tools/notifications';
|
|
import { registerAtlasTools } from './tools/atlas';
|
|
import { registerPlaceTools } from './tools/places';
|
|
import { registerDayTools } from './tools/days';
|
|
import { registerBudgetTools } from './tools/budget';
|
|
import { registerPackingTools } from './tools/packing';
|
|
import { registerCollabTools } from './tools/collab';
|
|
import { registerTripTools } from './tools/trips';
|
|
import { registerTransportTools } from './tools/transports';
|
|
import { registerVacayTools } from './tools/vacay';
|
|
import { registerMcpPrompts } from './tools/prompts';
|
|
|
|
export function registerTools(server: McpServer, userId: number, scopes: string[] | null, isStaticToken = false, getDeprecationNotice: () => string | null = () => null): void {
|
|
registerTripTools(server, userId, scopes, getDeprecationNotice);
|
|
|
|
registerPlaceTools(server, userId, scopes);
|
|
|
|
registerBudgetTools(server, userId, scopes);
|
|
|
|
registerPackingTools(server, userId, scopes);
|
|
|
|
registerReservationTools(server, userId, scopes);
|
|
|
|
registerDayTools(server, userId, scopes);
|
|
|
|
registerAssignmentTools(server, userId, scopes);
|
|
|
|
registerTagTools(server, userId, scopes);
|
|
|
|
registerMapsWeatherTools(server, userId, scopes);
|
|
|
|
registerNotificationTools(server, userId, scopes);
|
|
|
|
registerAtlasTools(server, userId, scopes);
|
|
|
|
registerCollabTools(server, userId, scopes);
|
|
|
|
registerTransportTools(server, userId, scopes);
|
|
|
|
registerJourneyTools(server, userId, scopes);
|
|
|
|
registerVacayTools(server, userId, scopes);
|
|
|
|
registerTodoTools(server, userId, scopes);
|
|
|
|
registerMcpPrompts(server, userId, isStaticToken);
|
|
}
|