@@ -167,8 +167,8 @@ protected function discoverCustomTools(): Collection
167167 protected function discoverRepositoryTools (): Collection
168168 {
169169 return collect (Restify::$ repositories )
170- ->filter (fn (string $ repo ): bool => in_array (HasMcpTools::class, class_uses_recursive ($ repo )))
171- ->flatMap (fn (string $ repoClass ): Collection => $ this ->discoverRepositoryOperations ($ repoClass ))
170+ ->filter (fn (string $ repo ): bool => in_array (HasMcpTools::class, class_uses_recursive ($ repo )))
171+ ->flatMap (fn (string $ repoClass ): Collection => $ this ->discoverRepositoryOperations ($ repoClass ))
172172 ->values ();
173173 }
174174
@@ -238,10 +238,10 @@ protected function discoverActions(string $repositoryClass, Repository $reposito
238238 $ actionRequest = app (McpActionRequest::class);
239239
240240 return $ repository ->resolveActions ($ actionRequest )
241- ->filter (fn ($ action ): bool => $ action instanceof Action)
242- ->filter (fn (Action $ action ): bool => $ action ->isShownOnMcp ($ actionRequest , $ repository ))
243- ->filter (fn (Action $ action ): bool => $ action ->authorizedToSee ($ actionRequest ))
244- ->unique (fn (Action $ action ): string => $ action ->uriKey ())
241+ ->filter (fn ($ action ): bool => $ action instanceof Action)
242+ ->filter (fn (Action $ action ): bool => $ action ->isShownOnMcp ($ actionRequest , $ repository ))
243+ ->filter (fn (Action $ action ): bool => $ action ->authorizedToSee ($ actionRequest ))
244+ ->unique (fn (Action $ action ): string => $ action ->uriKey ())
245245 ->map (function (Action $ action ) use ($ repositoryClass , $ repository ): array {
246246 $ instance = new ActionTool ($ repositoryClass , $ action );
247247
@@ -268,10 +268,10 @@ protected function discoverGetters(string $repositoryClass, Repository $reposito
268268 $ getterRequest = app (McpGetterRequest::class);
269269
270270 return $ repository ->resolveGetters ($ getterRequest )
271- ->filter (fn ($ getter ): bool => $ getter instanceof Getter)
272- ->filter (fn (Getter $ getter ): bool => $ getter ->isShownOnMcp ($ getterRequest , $ repository ))
273- ->filter (fn (Getter $ getter ): bool => $ getter ->authorizedToSee ($ getterRequest ))
274- ->unique (fn (Getter $ getter ): string => $ getter ->uriKey ())
271+ ->filter (fn ($ getter ): bool => $ getter instanceof Getter)
272+ ->filter (fn (Getter $ getter ): bool => $ getter ->isShownOnMcp ($ getterRequest , $ repository ))
273+ ->filter (fn (Getter $ getter ): bool => $ getter ->authorizedToSee ($ getterRequest ))
274+ ->unique (fn (Getter $ getter ): string => $ getter ->uriKey ())
275275 ->map (function (Getter $ getter ) use ($ repositoryClass , $ repository ): array {
276276 $ instance = new GetterTool ($ repositoryClass , $ getter );
277277
0 commit comments