We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61b6f40 commit c450c51Copy full SHA for c450c51
ai-command.php
@@ -23,20 +23,15 @@
23
24
// TODO Register your tool here and add it to the collection
25
26
- $image_tools = new ImageTools($client);
+ $all_tools = [
27
+ ...(new ImageTools($client))->get_tools(),
28
+ ...(new MapRESTtoMCP())->map_rest_to_mcp(),
29
+ ];
30
- foreach($image_tools->get_tools() as $tool){
31
+ foreach ($all_tools as $tool) {
32
$tools->add($tool);
33
}
34
-
- // WordPress REST calls
- $rest_tools = new MapRESTtoMCP();
35
36
- foreach( $rest_tools->map_rest_to_mcp() as $tool ) {
37
- $tools->add( $tool );
38
- }
39
40
$ai_command = new AiCommand(
41
new CollectionToolRepository( $tools ),
42
$server,
0 commit comments