Adds a WebMCP tool layer to WordPress with:
- Content search tools
- PMPro-safe post retrieval
- WooCommerce cart tools
- Role-based exposure control
- REST rate limiting
- Browser WebMCP capability detection
- Debug export panel
This plugin allows your WordPress site to expose structured tools via WebMCP (Web Model Context Protocol) so AI agents can interact with your site safely.
It does NOT replace SEO sitemaps.
wp-webmcp-layer/
│
├── wp-webmcp-layer.php
├── includes/
│ ├── class-plugin.php
│ ├── class-rest.php
│ ├── class-admin.php
│ ├── class-adminbar.php
│ ├── class-pmpro.php
│ ├── class-woocommerce.php
│
└── assets/
├── webmcp.js
└── admin.js
- wp_search
- wp_get_post (PMPro-safe)
- woo_cart_view
- woo_cart_add
Base namespace:
/wp-json/webmcp/v1/
Examples:
GET /post?id=123
GET /search?q=keyword
GET /cart/view
POST /cart/add
- Master enable switch
- Per-tool toggles
- Capability gating
- Nonce validation
- Rate limiting
- No paywall leakage
- WordPress 6.0+
- PHP 7.4+
- WooCommerce (optional)
- Paid Memberships Pro (optional)
Kulkarni Technologies
https://kulkarnitech.com
Generated on 2026-02-16