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.

已验证Streamable HTTP可网页运行数据库开发者工具安全与监控

概览

AI 生成的概览

把 WordPress 站点变成只读 MCP 端点,让助手审计其插件、漏洞、定时任务和数据库表。

可以做什么
Auditra 是一个 WordPress 插件,通过 REST 路由把所在站点暴露为只读 MCP 服务器。它的九个工具直接读取站点数据:插件清单、站点上下文、自动加载选项、定时任务、数据库表、内容功能使用情况,以及一个把选项、表和钩子映射回所属插件并标注置信度的归因引擎。它还会用 wordpress.org 和 WPVulnerability 的免密钥数据做补充,只报告事实,不给出评分或建议。
适用场景
当你希望 AI 客户端用自然语言回答某个 WordPress 站点的插件状况时使用,例如哪些插件存在漏洞、什么在撑大选项表、已删除插件留下了什么。适合希望只读检查而非自动修改的站点所有者和维护者。
运行要求
WordPress 站点必须可通过 HTTPS 公开访问,并启用固定链接。需要在 wp-admin 中安装插件并启用端点,生成令牌并复制连接 URL,再将其作为自定义连接器粘贴到 MCP 客户端。未声明运行时依赖或 API 密钥。
安装前请注意
连接 URL 在路径中嵌入令牌,应视为机密,避免分享。端点可公开访问,任何拿到该 URL 的人都能查询站点的插件数据。该服务器被描述为只读,并有 CI 检查在代码出现写操作时使构建失败,但它仍会把站点数据发送给外部服务 wordpress.org 和 WPVulnerability 进行补充。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Auditra,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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: revision 2026-07-28 (per-request metadata, server/discover, Mcp-* header validation) and the initialize-handshake revisions 2025-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

  1. Tools → Auditra in wp-admin: enable the endpoint, generate a token, copy the connection URL.
  2. In Claude: Settings → Connectors → Add custom connector, paste the URL (must be https://).
  3. 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

composer install   # dev-only: PHPCS + WordPress Coding Standards (pinned)composer lintphp tests/mcp-client.php https://example.com/wp-json/auditra/v1/mcp/{token}

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
SourceWeft 尚未读取此服务器的工具。

版本历史

2
  1. v1.0.2最新Oct 6, 2026
  2. v1.0.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式必需10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分