From aa251cdb8e46f9e945f8a590f4ce3c03766639ad Mon Sep 17 00:00:00 2001 From: Maurice Date: Fri, 28 Aug 2026 13:08:13 +0200 Subject: [PATCH] test(mcp): construct CategoriesMcp with the deps its tools now need The three admin category tools gate on AuthService and the shared guards, so the hand-built registry the MCP harness uses has to hand them over too. --- server/tests/helpers/mcp-test-controllers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(),