Skip to content

Commit 42daf5b

Browse files
committed
Add debug around skipping tools for registration
1 parent dad6a39 commit 42daf5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MCP/Server.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace WP_CLI\AiCommand\MCP;
44

55
use Exception;
6+
use WP_CLI;
67
use InvalidArgumentException;
78

89
class Server {
@@ -51,6 +52,7 @@ public function register_tool( array $tool_definition ): void {
5152

5253
// TODO: This is a temporary limit.
5354
if ( count( $this->tools ) >= 128 ) {
55+
WP_CLI::debug( 'Too many tools, max is 128', 'tools' );
5456
return;
5557
}
5658

0 commit comments

Comments
 (0)