You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The search parameter is already supported by wp-forge-media-list, making a dedicated search tool redundant.
- Remove media-search ability from MediaTools.php
- Update ability/tool count assertions from 53 to 52
- Replace media-search integration test call with media-list
- Remove tool from README and expected tool lists
$this->add_ability( self::INTERNAL_PREFIX . 'media-search', 'Search Media', 'Search WordPress media by title, caption, or description', $list_schema, function ( $params ) {
assert_same( 53, count( $wp_ability_names ), 'Expected all abilities to be available for the MCP adapter.' );
573
+
assert_same( 52, count( $wp_ability_names ), 'Expected all abilities to be available for the MCP adapter.' );
575
574
assert_true( in_array( 'wp-forge/content-search', $wp_ability_names, true ), 'Adapter ability list should use WordPress ability names.' );
576
575
577
576
$abilities->register_wordpress_abilities();
578
-
assert_same( 53, count( $registered_abilities ), 'Expected every ability to be registered with the WordPress Abilities API.' );
577
+
assert_same( 52, count( $registered_abilities ), 'Expected every ability to be registered with the WordPress Abilities API.' );
579
578
assert_true( isset( $registered_abilities['wp-forge/content-search'] ), 'Content search should be registered with the WordPress Abilities API.' );
580
579
assert_same( 'Search and filter content for any registered post type', $registered_abilities['wp-forge/content-search']['description'], 'Registered ability should preserve descriptions.' );
581
580
assert_same( true, $registered_abilities['wp-forge/content-search']['meta']['show_in_rest'], 'Registered abilities should be exposed through the Abilities REST API.' );
@@ -622,7 +621,7 @@ public function create_server() {
622
621
assert_same( 'mcp', $adapter->args[1], 'Adapter server should keep the existing REST namespace.' );
623
622
assert_same( 'wp-forge', $adapter->args[2], 'Adapter server should keep the existing REST route.' );
624
623
assert_same( 'WordPress MCP', $adapter->args[3], 'Adapter server should preserve the server name.' );
625
-
assert_same( 53, count( $adapter->args[9] ), 'Adapter server should expose every registered ability.' );
624
+
assert_same( 52, count( $adapter->args[9] ), 'Adapter server should expose every registered ability.' );
626
625
assert_true( in_array( 'wp-forge/content-search', $adapter->args[9], true ), 'Adapter server should expose content search.' );
0 commit comments