v3.1.2
A bug-fix patch for three community-reported issues. Thanks to @Mrshahidali420 for the detailed reports and fixes.
Fixed
- MCP endpoint 404 with WooCommerce 10.5+ active (#64). WooCommerce 10.5+ bundles and autoloads the same MCP Adapter classes but only boots the adapter behind its own off-by-default "MCP Integration" flag. EMCP treated "classes loadable" as "adapter booted" and deferred, so
mcp_adapter_initnever fired and/wp-json/mcp/emcp-tools-server404'd. EMCP now boots the already-loaded adapter itself (idempotent), so its endpoint no longer depends on an unrelated WooCommerce flag. move-blockcould silently delete a block (#67). Moving a block inside a later container, or across levels, shifted the target path on removal — losing the block (or misplacing it) while reporting success. The index-shift compensation now covers every mode and depth, and a move into the block's own subtree is rejected as a no-op.- Filesystem writes didn't take effect under OPcache (#66).
write-file/edit-file/delete-filedidn't invalidate OPcache for PHP files, so on hosts withopcache.validate_timestamps=0the old bytecode kept running. They now invalidate OPcache after each.phpwrite.
Verified end-to-end locally (WordPress 6.9 / WooCommerce 10.9.4) with regression tests added for the move-block cases.
Free updates are distributed here on GitHub. Download emcp-tools-3.1.2.zip below.