| 开发者 | quangnhatdev |
|---|---|
| 更新时间 | 2026年9月6日 19:56 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
document.modelContext API.
The plugin is designed to fail safely. If WebMCP is unavailable in a visitor's browser, the normal WordPress site continues to work unchanged.
Why use it?
document.modelContext.wp_search_content - Search published posts, pages, and enabled public custom post types.wp_get_content - Read one published content item by ID, URL, slug, or path.wp_get_navigation - Read public navigation menus and menu locations.wp_get_taxonomies - List public taxonomies or terms from one taxonomy.wp_get_site_info - Read non-sensitive public site information.woo_search_products - Search visible published WooCommerce products.woo_get_product - Read one visible published WooCommerce product.readOnlyHint: true. Content-returning tools also use untrustedContentHint: true.
Diagnostics and testing
The Diagnostics screen helps administrators verify:
document.modelContext availability.registerTool(), getTools(), and executeTool() availability.WebMCP is an emerging browser API that allows websites to expose structured tools to compatible AI agents. Instead of relying only on page structure or UI interpretation, an agent can discover explicitly defined capabilities and invoke them with structured inputs.
It registers selected public WordPress and WooCommerce capabilities as read-only WebMCP tools and provides diagnostics and live testing tools for administrators.
No. The plugin does not include telemetry, analytics, or third-party API calls. Built-in WebMCP tools call same-origin WordPress REST endpoints created by this plugin.
No built-in tool exposes drafts, private posts, password-protected posts, users, orders, customer data, payment information, arbitrary post metadata, or administrative information.
No. Version 1.0.1 includes read-only tools only.
Nothing breaks. The browser-side script checks for document.modelContext before registering tools. Normal WordPress output continues unchanged.
WooCommerce tools are registered only when WooCommerce is active and the corresponding tool toggles are enabled.
Yes. Public, viewable custom post types can be selected under Tools > QuangNhatDev AI Agent Tools > General. WooCommerce products are handled separately by the WooCommerce tools.
Yes. Developers can use the qnatw_tool_definitions filter from their own plugin or theme code. Custom definitions are validated before exposure to the browser and must use a same-origin endpoint.
No ranking benefit is claimed. WebMCP is intended to make supported site data and actions easier for compatible AI agents to discover and use after they reach the site.
That depends on the current browser implementation and testing method. The plugin provides an optional field for a first-party browser Origin Trial token but does not obtain or validate tokens for you.
No. It is an optional web-platform token issued by a browser vendor for experimental browser features. The plugin does not use it as a license key, payment gate, or feature unlock.
No. The plugin does not include usage tracking or telemetry.
No. This plugin focuses on browser WebMCP integration inside WordPress. It is not a general-purpose remote MCP server.