diff --git a/src/Tools/MapRESTtoMCP.php b/src/Tools/MapRESTtoMCP.php index 19800c4..d25f7a1 100644 --- a/src/Tools/MapRESTtoMCP.php +++ b/src/Tools/MapRESTtoMCP.php @@ -149,6 +149,10 @@ protected function rest_callable( $inputs, $route, $method_name, \WP_REST_Server WP_CLI::debug( 'Rest Route: ' . $route . ' ' . $method_name, 'mcp_server' ); + if ( $inputs['meta'] === false || $inputs['meta'] === null || $inputs['meta'] === '' || $inputs['meta'] === [] ) { + unset( $inputs['meta'] ); + } + foreach( $inputs as $key => $value ) { WP_CLI::debug( ' param->' . $key . ' : ' . $value, 'mcp_server' ); }