[WordPress] 外掛分享: agentprose

首頁 › 外掛目錄 › agentprose
WordPress 外掛 agentprose 的封面圖片
全新外掛
安裝啟用
—
尚無評分
36 天前
最後更新
—
問題解決
WordPress 6.3+ PHP 7.4+ v0.1.3 上架:2026-10-24

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「agentprose」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WebMCP is a W3C Community Group draft that lets a web page hand tools to the AI agent running in the visitor’s browser. Instead of scraping your theme’s HTML, the agent calls a tool and gets clean, structured content back.
agentprose registers a set of read-only tools for your content:

get_current_article: the post being viewed, as clean Markdown with author, dates, tags and outline
search_posts: full-text search through your site’s REST API
list_posts: newest posts, filterable by tag, category, author and date
get_post: any post as Markdown, paged for long posts (never silently truncated)
get_section and get_table_of_contents: read one section of a long post
get_citation: checks a quote against the post and returns a link that scrolls to and highlights it (#:~:text=)
list_taxonomies, get_related_posts, get_site_info, get_subscribe_link, get_comments_link
navigate_to (optional): open another page of the site

How it works:

The script loads deferred (about 9 KB gzipped) and does nothing until an agent calls a tool.
The tools read this site’s public WordPress REST API from the visitor’s browser. No new endpoints, no database tables, no server load until an agent asks.
Every tool is read-only and marks post content as untrusted, so agents treat it as data, not as instructions.
In browsers without built-in WebMCP, the plugin loads the bundled MCP-B WebMCP polyfill from your own site after the page has loaded, so agents that use it (for example the MCP-B browser extension) can see the tools. You can switch this off.
Administrators get a small 🔌 inspector on the front end to list and try every tool.

The same library works on any site, not only WordPress (Ghost, Sanity, Contentful, Strapi, Storyblok, Enonic, static sites): see the agentprose repository.
Optional: agentprose Cloud. Enter a site key from agentprose Cloud to see which agents used which tools and what they searched for, and to answer agent searches from a hosted index. It is off by default; see “External services” below.
Source code
The JavaScript files in js/ are the browser build of the agentprose npm release named in the changelog, unchanged. They are built from the TypeScript source at github.com/webmaxru/agentprose (MIT licence); npm ci && npm run build rebuilds them, and node wordpress-plugin/sync.mjs copies a release into the plugin. The bundled WebMCP polyfill in js/vendor/ is @mcp-b/webmcp-polyfill 6.0.3 (MIT), unchanged.
External services
This plugin connects to one external service, agentprose Cloud (https://agentprose.cloud), and only if the site owner enters a Cloud site key under Settings → agentprose. Without a key nothing is sent anywhere except requests from the visitor’s browser to your own site’s REST API.
When a site key is set:

Usage analytics. Each time an AI agent calls one of the tools, the visitor’s browser sends one message to https://agentprose.cloud/v1/collect: the site key, the tool name, whether it succeeded, how long it took, the page address, the search query (if any, up to 200 characters), the number of results, the post address the agent asked for, a short error text on failure, and a random identifier for that page load. Post content is never sent. Nothing is stored in the browser and no cookies are set. Nothing is sent on ordinary page views, only when an agent uses a tool.
Hosted search (on by default when a key is set, can be switched off). When an agent calls search_posts, the query and site key are sent to https://agentprose.cloud/v1/search, which returns matching posts from the Cloud’s index of your public pages. If the request fails, WordPress search is used.

Like any web request, these requests reveal the visitor’s IP address to the service.

Terms of service: https://agentprose.cloud/terms
Privacy policy: https://agentprose.cloud/privacy

You can also send the same per-call message to an endpoint of your own instead (“Own analytics endpoint”); then that endpoint is the only place it goes.
The plugin does not load anything from CDNs: all scripts, including the WebMCP polyfill, are served from your site.

延伸相關外掛

文章
Filter
Mastodon