@@ -140,8 +140,8 @@ protected function discoverCustomTools(): Collection
140140 protected function discoverRepositoryTools (): Collection
141141 {
142142 return collect (Restify::$ repositories )
143- ->filter (fn (string $ repo ): bool => in_array (HasMcpTools::class, class_uses_recursive ($ repo )))
144- ->flatMap (fn (string $ repoClass ): Collection => $ this ->discoverRepositoryOperations ($ repoClass ))
143+ ->filter (fn (string $ repo ): bool => in_array (HasMcpTools::class, class_uses_recursive ($ repo )))
144+ ->flatMap (fn (string $ repoClass ): Collection => $ this ->discoverRepositoryOperations ($ repoClass ))
145145 ->values ();
146146 }
147147
@@ -211,10 +211,10 @@ protected function discoverActions(string $repositoryClass, Repository $reposito
211211 $ actionRequest = app (McpActionRequest::class);
212212
213213 return $ repository ->resolveActions ($ actionRequest )
214- ->filter (fn ($ action ): bool => $ action instanceof Action)
215- ->filter (fn (Action $ action ): bool => $ action ->isShownOnMcp ($ actionRequest , $ repository ))
216- ->filter (fn (Action $ action ): bool => $ action ->authorizedToSee ($ actionRequest ))
217- ->unique (fn (Action $ action ): string => $ action ->uriKey ())
214+ ->filter (fn ($ action ): bool => $ action instanceof Action)
215+ ->filter (fn (Action $ action ): bool => $ action ->isShownOnMcp ($ actionRequest , $ repository ))
216+ ->filter (fn (Action $ action ): bool => $ action ->authorizedToSee ($ actionRequest ))
217+ ->unique (fn (Action $ action ): string => $ action ->uriKey ())
218218 ->map (function (Action $ action ) use ($ repositoryClass , $ repository ): array {
219219 $ instance = new ActionTool ($ repositoryClass , $ action );
220220
@@ -241,10 +241,10 @@ protected function discoverGetters(string $repositoryClass, Repository $reposito
241241 $ getterRequest = app (McpGetterRequest::class);
242242
243243 return $ repository ->resolveGetters ($ getterRequest )
244- ->filter (fn ($ getter ): bool => $ getter instanceof Getter)
245- ->filter (fn (Getter $ getter ): bool => $ getter ->isShownOnMcp ($ getterRequest , $ repository ))
246- ->filter (fn (Getter $ getter ): bool => $ getter ->authorizedToSee ($ getterRequest ))
247- ->unique (fn (Getter $ getter ): string => $ getter ->uriKey ())
244+ ->filter (fn ($ getter ): bool => $ getter instanceof Getter)
245+ ->filter (fn (Getter $ getter ): bool => $ getter ->isShownOnMcp ($ getterRequest , $ repository ))
246+ ->filter (fn (Getter $ getter ): bool => $ getter ->authorizedToSee ($ getterRequest ))
247+ ->unique (fn (Getter $ getter ): string => $ getter ->uriKey ())
248248 ->map (function (Getter $ getter ) use ($ repositoryClass , $ repository ): array {
249249 $ instance = new GetterTool ($ repositoryClass , $ getter );
250250
0 commit comments