Skip to content

Commit 16ee7d2

Browse files
committed
Fix inputSchema required property to use an empty array instead of an object
1 parent 10efbe6 commit 16ee7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/Tools/McpSiteInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function register_tools(): void {
3535
'inputSchema' => array(
3636
'type' => 'object',
3737
'properties' => new stdClass(),
38-
'required' => new stdClass(),
38+
'required' => array(),
3939
),
4040
'callback' => array( $this, 'get_site_info' ),
4141
'permission_callback' => array( $this, 'permission_callback' ),

0 commit comments

Comments
 (0)