
woocommerce/wc-mcp-ability
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
WooCommerce MCP and Ability Integration Demo Plugin
개요
This is a demonstration plugin showing how third-party developers can integrate with the WooCommerce MCP (Model Context Protocol) server by registering custom abilities using the WordPress Abilities API. This plugin demonstrates the integration between: - WordPress Abilities API - A standardized way to register capabilities in WordPress - WooCommerce MCP Adapter - Integrating into WooCommerce 10.3 release : The MCP implementation in WooCommerce 10.3 is a . Implementation details, APIs, and integration patterns may change in future releases. This demo is designed to showcase current capabilities and may require updates as the feature matures. The demo creates a custom ability that retrieves WooCommerce store information and statistics, showcasing how external plugins can extend the MCP server's capabilities. - WordPress 6.0 or higher - PHP 8.0 or higher - WooCommerce 10.3+ (includes WordPress Abilities API and MCP Adapter) 1.
README
원문 README의 일부입니다. 원문 보기.
WooCommerce MCP Ability Demo Plugin
⚠️ DEMO TOOL - NOT PRODUCTION READY ⚠️
This is a demonstration plugin showing how third-party developers can integrate with the WordPress MCP (Model Context Protocol) server by registering custom WooCommerce abilities using the WordPress Abilities API. This plugin is for educational and testing purposes only and should not be used in production environments.
Overview
This plugin demonstrates the integration between:
- WordPress Abilities API - A standardized way to register capabilities in WordPress
- WordPress MCP Adapter - Exposes abilities through a shared MCP server when installed as a separate plugin
Important Notice: The MCP integration in WooCommerce is a developer preview. Implementation details, APIs, and integration patterns may change in future releases. This demo is designed to showcase current capabilities and may require updates as the feature matures.
The demo creates a custom ability that retrieves WooCommerce store information and statistics, showcasing how external plugins can extend the MCP server’s capabilities.
Requirements
- WordPress 7.0 or higher (includes the Abilities API)
- PHP 8.0 or higher
- WooCommerce 11.3 or higher
- MCP Adapter plugin for MCP access (not bundled with WooCommerce)
Installation
-
Clone or download this repository to your WordPress plugins directory:
cd wp-content/plugins/ git clone https://github.com/woocommerce/wc-mcp-ability.git wc-mcp-ability -
Activate the plugin through the WordPress admin dashboard or WP-CLI:
wp plugin activate wc-mcp-ability -
Install and activate the MCP Adapter to expose the ability to MCP clients:
wp plugin install mcp-adapter --activate
What This Demo Does
The plugin registers a custom ability called woocommerce-demo/store-info that:
Functionality
- Retrieves basic store information (name, URL, admin email, versions)
- Optionally includes store statistics (product count, order counts by status, customer count)
- Demonstrates proper schema definition for inputs and outputs
- Shows permission handling for MCP abilities
Technical Implementation
- Ability Registration: Uses
wp_register_ability()from the WordPress Abilities API - MCP Integration: Registers a category and uses
meta.mcp.publicto expose the ability through the shared WordPress MCP Adapter - Permission Control: Requires
manage_woocommercecapability for access - Schema Definition: Provides complete JSON schema for both input parameters and output structure
Usage Example
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →