Skip to content

Commit 793903b

Browse files
committed
Make output more consistent.
1 parent 633f5d4 commit 793903b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/MCP/Client.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ static function () {
230230
} elseif ( $part instanceof Function_Call_Part ) {
231231
$function_result = $this->{$part->get_name()}( $part->get_args() );
232232

233-
// Capture the function name here
234-
$function_name = $part->get_name();
235-
echo "Output generated with the '$function_name' tool:\n"; // Log the function name
233+
WP_CLI::debug( 'Calling Tool: ' . $part->get_name(), 'mcp_server' );
236234

237235
// Odd limitation of add_function_response_part().
238236
if ( ! is_array( $function_result ) ) {

0 commit comments

Comments
 (0)