WP Manifestindependent plugin directory
manifest / ai / simple-mcp-tools-for-webmcp

Simple MCP Tools for WebMCP

Make your WordPress site agent-ready. Exposes site capabilities as WebMCP tools that AI agents can discover and use via the W3C WebMCP standard.

by rextea · github.com/rextea/simple-mcp-tools-for-webmcp · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/rextea/simple-mcp-tools-for-webmcp/archive/refs/heads/main.zip

Simple MCP Tools for WebMCP makes a WordPress site agent-ready by exposing site capabilities as WebMCP tools via navigator.modelContext.registerTool().

Features

  • Frontend bridge script that registers tools for content discovery and retrieval.
  • Optional MCP-B polyfill loading from unpkg.
  • Admin settings page under Settings > Simple MCP Tools for WebMCP.
  • Public REST config endpoint at /wp-json/simple-mcp-tools-for-webmcp/v1/config.
  • WooCommerce tool support (when WooCommerce is installed and enabled in settings).

Installation

  1. Copy this plugin folder to wp-content/plugins/simple-mcp-tools-for-webmcp.
  2. Activate Simple MCP Tools for WebMCP from the Plugins screen.
  3. Configure settings at Settings > Simple MCP Tools for WebMCP.

Development

composer install
bin/install-wp-tests.sh wordpress_test root '' localhost latest
composer test

Architecture

  • simple-mcp-tools-for-webmcp.php: bootstrap and hook wiring
  • admin/: settings page and sanitization
  • public/: polyfill + bridge script enqueue
  • rest-api/: config endpoint used by bridge JS
  • assets/js/rextea-smwfw-bridge.js: WebMCP tool registration

Contributing

See CONTRIBUTING.md.

License

GPLv2 or later. See LICENSE.

WebMCP Reference