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.

test(mcp): construct CategoriesMcp with the deps its tools now need

Mauriceaa251cdb8e46
diff --git a/server/tests/helpers/mcp-test-controllers.ts b/server/tests/helpers/mcp-test-controllers.ts
index 4bd624c42..c563aa420 100644
--- a/server/tests/helpers/mcp-test-controllers.ts
+++ b/server/tests/helpers/mcp-test-controllers.ts
@@ -160,7 +160,7 @@ export function createMcpTestRegistry(): McpRegistry {
return createTestRegistry(
[
new TagsMcp(new TagsService(dbService), authService),
- new CategoriesMcp(new CategoriesService(dbService)),
+ new CategoriesMcp(new CategoriesService(dbService), authService, guards),
// The weather and airport tools left the legacy mapsWeather registrar.
new WeatherMcp(new WeatherService()),
new AirportsMcp(),