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.
This commit is contained in:
Maurice
2026-08-28 13:08:13 +02:00
committed by Maurice
parent 2ba10a9126
commit aa251cdb8e
+1 -1
View File
@@ -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(),