Skip to content

What the plugin adds to your pages

On every front-end page (when Enabled is on), the plugin enqueues one deferred script in the <head>, with your settings as data-* attributes. With the defaults it looks like this (WordPress may order the attributes differently):

<script src="https://your-site.example/wp-content/plugins/agentprose/js/agentprose.min.js?ver=0.1.3"
id="agentprose-js" defer
data-adapter="wordpress"
data-api="https://your-site.example/wp-json/"
data-types="posts"
data-polyfill="https://your-site.example/wp-content/plugins/agentprose/js/vendor/webmcp-polyfill.iife.js"></script>

Administrators also get data-inspector, which adds the 🔌 button. That’s all: no stylesheet, no markup, no cookies, nothing in the admin bar.

The 🔌 inspector on a post, listing the tools an agent sees

  1. Page load: the script registers the tools with WebMCP. No network request.
  2. After load, only if the browser has no WebMCP and the polyfill setting is on: the bundled MCP-B polyfill loads from your site.
  3. When an agent calls a tool: the tool calls your REST API (/wp/v2/posts, search, tags, categories, users) from the browser, the same public data any visitor can read. The first site-wide call also loads the engine file from the plugin folder.
  4. With analytics configured: one small message per tool call (what’s in it).

Human visitors trigger none of steps 3 and 4: tools run only when an agent calls them.

Path What
js/agentprose.min.js, js/agentprose.index.min.js, js/agentprose.inspector.min.js, js/adapters/wordpress.min.js The agentprose browser build of the release named in the changelog, byte for byte
js/vendor/webmcp-polyfill.iife.js @mcp-b/webmcp-polyfill 6.0.3 (MIT), unchanged
includes/frontend.php, includes/admin.php Enqueue, settings page, privacy-policy text

The JavaScript is built from the TypeScript source in github.com/webmaxru/agentprose; node wordpress-plugin/sync.mjs <version> copies a release into the plugin.

  • Settings → agentprose, and a Settings link on the Plugins screen.
  • Settings → Privacy gets suggested privacy-policy text describing exactly what is sent and when (see Caching, CSP and uninstall).