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.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
import { Trips } from '../../db/entities/Trips.entity';
import { Users } from '../../db/entities/Users.entity';
import { PermissionsModule } from '../permissions/permissions.module';
import { RealtimeModule } from '../realtime/realtime.module';
import { McpToolGuardsService } from './mcp-tool-guards.service';
import { MikroOrmModule } from '@mikro-orm/nestjs';
import { Module } from '@nestjs/common';
/**
* Shared guards for the @McpController domain classes. Deliberately NOT
* @Global (the addons/permissions precedent): every consumer imports it
* explicitly, so e2e TestingModules resolve it transitively and the module
* graph stays honest. RealtimeModule is @Global but imported here all the
* same: McpToolGuardsService broadcasts, and a TestingModule assembling a
* few domains must not depend on some other module having pulled it in.
*
* Trips/Users: Plan 4 Task 1 — `McpToolGuardsService.hasTripPermission`/
* `isAdminUser`'s own `TripsRepository.getOwnerId`/`UsersRepository.getRole`
* reads, moved off `DatabaseService`.
*/
@Module({
imports: [PermissionsModule, RealtimeModule, MikroOrmModule.forFeature([Trips, Users])],
providers: [McpToolGuardsService],
exports: [McpToolGuardsService],
})
export class McpSharedModule {}