MCP ability Error with WooCommerce
-
Hi,
on a site running both backwpup 5.7.2 and Woocommerce 10.8.1 I get the following error:
wp action-scheduler run --batch-size=1 --batches=1 [ERROR] Resource URI not found in ability meta for 'backwpup/docs-overview'. URI must be provided in ability meta data. Dump of get_meta():
(
[annotations] => Array
(
[readonly] =>
[destructive] =>
[idempotent] =>
)
[show_in_rest] =>
[mcp] => Array
(
[public] => 1
[type] => resource
[uri] => groupone-backwpup-plugin://docs/overview
[name] => BackWPup MCP Server Overview
[mimeType] => text/markdown
)
)
| Context: ["RegisterAbilityAsMcpResource::backwpup\/docs-overview"] | User ID: 0Even though backwpup has its own bundled mcp-adapter, the error above is triggered by:
wp-content/plugins/woocommerce/vendor/wordpress/mcp-adapter/includes/Domain/Resources/RegisterAbilityAsMcpResource.php
I added a dump of the meta array, and it expects the URI in $ability_meta[‘uri’] , not in [‘meta’][‘uri’].
The error disappears once I disable Backwpup. Not sure whether it is a BackWPup or woo problem, but given that the error is referencing a BackWpUp ability, I report it here first.(Note this is on a not-yet-upgraded-to-7 instance running WP 6.9.x, but all plugins there are updated to their latest version. Maybe since 7 has its own mcp-adapter it should not be necessary any more to ship conflicting ones?)
Regards
Uli
(Note to the Moderators of this forum: Would you please review the reason why my post are being flagged for moderation and consider changing that. I am not aware of ever having violated any forum guidelines. Thanks. )
You must be logged in to reply to this topic.