Repository navigation
Try: Update wordpress/mcp-adapter to v0.5.0 (dev-trunk) - #64052
Draft
galatanovidiu wants to merge 2 commits into
Draft
galatanovidiu wants to merge 2 commits into
galatanovidiu wants to merge 2 commits into
Conversation
Typed protocol DTOs via wordpress/php-mcp-schema, updated MCP spec to 2025-11-25. All WooCommerce public API usage is backward compatible. Added installer-paths override to keep package in vendor/ after its Composer type changed from library to wordpress-plugin.
E2E testing skill for the WooCommerce MCP server using the official MCP Inspector CLI against a local wp-env instance. Covers environment setup, authentication, tool discovery, CRUD testing, and debugging.
Author
MCP Inspector Testing SkillThis PR includes a new Claude Code skill ( To use it, invoke
The skill is read-only / test-only — it will never modify source code. |
|
@galatanovidiu the error mentioned before only comes when using Gemini Flash model, but there are no errors when using Claude Sonnet 4.6 for example. So its dependent on the power of the model. Have decided to only allow Claude Sonnet as model as its the most reliable so far. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Submission Review Guidelines:
Changes proposed in this Pull Request:
Updates the
wordpress/mcp-adapterComposer dependency from^0.3.0todev-trunk(upcoming v0.5.0). This is a draft for others to try the new adapter — not intended for merge yet.What changed in the adapter:
wordpress/php-mcp-schema ^0.1.0dependency2025-06-18to2025-11-25WP\MCP\Transport\Interfaces\toWP\MCP\Transport\Contracts\HttpTransport::check_permission()now casts results tobooland uses fail-closed security (returnsfalseon error)McpTransportContextconstructor now validates required/optional keys strictlylibrarytowordpress-pluginWhat changed in WooCommerce:
composer.json: Version bump +installer-pathsoverride to keep the package invendor/(needed because the package type changed)composer.lock: Regenerated with new dependency treeMcpAdapter::create_server(),HttpTransport, transport interfaces) are backward compatiblePre-existing issues found during E2E testing (not caused by this update):
Full MCP Inspector E2E testing revealed issues that exist on trunk today and are unrelated to the adapter update:
Output schema validation failures (8 of 9 tools) — All product/order tools (except
products-delete) fail strict schema validation because:2026-04-07T16:06:06instead of RFC 33392026-04-07T16:06:06Z)date_on_sale_from,stock_quantity,date_paid, etc.) returnnullbut schemas declare them asstring/integerwithout allowingnullshipping_class_idschema saysstring, API returnsintegerexternal_urlandbilling.emailuse format constraints (uri,email) but return empty stringsisErrorflag not set on error responses — When tools likeproducts-getororders-getreceive a non-existent ID, the server returns the error payload but withisError: false. MCP clients rely onisError: trueto distinguish errors from successful results.These issues should be tracked and addressed in separate PRs.
How to test the changes in this Pull Request:
composer installfromplugins/woocommerce/pnpm --filter=@woocommerce/plugin-woocommerce wp-env startpnpm --filter=@woocommerce/plugin-woocommerce wp-env run cli wp option update woocommerce_feature_mcp_integration_enabled yeswoocommerce-mcp-inspectorskill or follow the manual steps:npx @modelcontextprotocol/inspector@latest --cliagainst the endpointtools/listreturns all 9 tools andtools/callexecutes successfullyTesting that has already taken place:
MCPAdapterProvider.phpandWooCommerceRestTransport.phpinitializehandshake returns valid response with protocol version2025-11-25Contractsnamespace)Milestone
Changelog entry
Changelog Entry Comment
Comment
Draft PR for testing the new MCP adapter version — not intended for merge yet.