
Auditra
io.github.mwstech由 GitHub 帳號 mwstech 發布v1.0.2更新於 Oct 24, 2026
Read-only MCP server for WordPress plugin audits: vulnerabilities, bloat, cron, orphaned tables.
概覽
把 WordPress 網站變成唯讀 MCP 端點,讓助理稽核其外掛、弱點、排程工作與資料庫資料表。
- 可以做什麼
- Auditra 是一個 WordPress 外掛,透過 REST 路由把所在網站暴露為唯讀 MCP 伺服器。它的九個工具直接讀取網站資料:外掛清單、網站脈絡、自動載入選項、排程工作、資料庫資料表、內容功能使用情形,以及一個把選項、資料表和鉤子對應回所屬外掛並標註信賴度的歸因引擎。它還會用 wordpress.org 與 WPVulnerability 的免金鑰資料補充,只回報事實,不給評分或建議。
- 適用情境
- 當你希望 AI 用戶端用自然語言回答某個 WordPress 網站的外掛狀況時使用,例如哪些外掛有弱點、什麼在撐大選項表、已刪除外掛留下了什麼。適合想要唯讀檢查而非自動修改的網站擁有者與維護者。
- 執行需求
- WordPress 網站必須可透過 HTTPS 公開存取,並啟用固定網址。需要在 wp-admin 中安裝外掛並啟用端點,產生權杖並複製連線 URL,再將其貼到 MCP 用戶端作為自訂連接器。未宣告執行階段相依性或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Auditra,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Auditra
A WordPress plugin that turns the site it is installed on into a read-only MCP server, so any MCP-capable AI client (Claude custom connectors, and others) can inspect and reason about that site's plugin estate in plain language.
Ask "which of my plugins are vulnerable?", "what's bloating my options table?", or "what did deleted plugins leave behind?" — and get answers grounded in the actual state of the site.
How it works
Three layers inside one plugin, one REST route, no runtime dependencies:
- Transport —
POST /wp-json/auditra/v1/mcp/{token}speaking MCP over JSON-RPC 2.0 (plain JSON responses, stateless). Both protocol generations are served, decided per request: revision2026-07-28(per-request metadata,server/discover,Mcp-*header validation) and theinitialize-handshake revisions2025-11-25/2025-06-18/2025-03-26. Token-in-path auth behind a swappable interface, Origin validation, rate limiting, failed-auth logging. - Collectors — read WordPress directly: inventory, site context, autoloaded options, cron, database tables, content-feature usage, and a three-tier attribution engine that maps options/tables/hooks back to owning plugins with explicit confidence levels (
high= curated,medium= derived, or visibly unattributed). - Enrichment — two external services, wordpress.org and WPVulnerability, both keyless, both cached, both degrading silently with per-source coverage reporting and progressive backoff (15 min → 24 h) on failures. Support lifecycle dates for PHP, MySQL and MariaDB are not fetched at all: they ship in
includes/data/lifecycle.json, compiled from each vendor's published policy.
Nine tools; every response carries _meta (totals, truncation, sources unavailable, timestamps) and stays within a 20 KB budget. The server reports facts, never verdicts — scoring and advice are deliberately absent, because that's the AI client's job. The full design record lives in docs/DECISIONS.md.
Connect it to an AI client
- Tools → Auditra in wp-admin: enable the endpoint, generate a token, copy the connection URL.
- In Claude: Settings → Connectors → Add custom connector, paste the URL (must be
https://). - Ask questions. Start with "what can you tell me about this site's plugins?"
The site must be publicly reachable over HTTPS with pretty permalinks enabled. Clients on revision 2026-07-28 get a 24-hour freshness hint on tools/list, so a tool added by a plugin update appears within a day on its own; older revisions have no expiry signal, so reconnect the connector after updating to pick up new tools.
Contributing
The easiest genuinely useful contribution is a pull request against
includes/data/prefix-overrides.json — the curated map from plugin slugs to the option/table prefixes they actually use (Contact Form 7 → wpcf7_). Every entry improves attribution accuracy for every user. See CONTRIBUTING.md.
Development
tests/mcp-client.php is the CLI harness that exercises the endpoint without an AI client in the loop; tests/seed-conditions.sh builds a deliberately messy test site (and teardown-conditions.sh reverses it exactly). CI runs a PHP lint matrix (7.4–8.4), PHPCS, and a grep gate that fails the build if any write operation ever appears in the plugin code.
Security
See SECURITY.md for the supported versions and how to report a vulnerability privately.
License
GPL-2.0-or-later.
來源:README.md,提交 cff5b4f
工具
0版本歷史
2- v1.0.2最新Oct 6, 2026
- v1.0.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通必需25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式必需10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分