@adsim/wordpress-mcp-server 4.5.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/dxt/manifest.json +1 -1
- package/index.js +263 -161
- package/package.json +1 -1
- package/tests/unit/tools/dynamicFiltering.test.js +136 -0
- package/tests/unit/tools/outputCompression.test.js +342 -0
- package/tests/unit/tools/site.test.js +3 -1
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
[](https://opensource.org/licenses/MIT)
|
|
4
4
|
[](https://nodejs.org/)
|
|
5
5
|
[](https://github.com/anthropics/mcp)
|
|
6
|
-
[](https://github.com/GeorgesAdSim/wordpress-mcp-server/actions)
|
|
7
7
|
[](https://www.npmjs.com/package/@adsim/wordpress-mcp-server)
|
|
8
8
|
|
|
9
9
|
**Enterprise Governance · Audit Trail · Multi-Site · Plugin-Free**
|
|
10
10
|
|
|
11
11
|
The enterprise governance layer for Claude-to-WordPress integrations — secure, auditable, and multi-site.
|
|
12
12
|
|
|
13
|
-
**v4.5.
|
|
13
|
+
**v4.5.1 Enterprise** · 85 tools · 713 Vitest tests · GitHub Actions CI · HTTP Streamable transport · MCPB bundle · SEO metadata · SEO audit suite · Content intelligence · Plugin intelligence · Plugin & theme management · Revision control · Editorial approval workflow · Destructive confirmation · Internal link analysis · WooCommerce (read + intelligence + write) · Execution controls · JSON audit trail · Multi-site targeting
|
|
14
14
|
|
|
15
15
|
---
|
|
16
16
|
|
|
@@ -716,7 +716,7 @@ WC_PRICE_GUARDRAIL_THRESHOLD=20 # percentage — changes above this require ex
|
|
|
716
716
|
|
|
717
717
|
## Testing
|
|
718
718
|
|
|
719
|
-
|
|
719
|
+
713 unit tests covering all 85 tools — zero network calls, fully mocked.
|
|
720
720
|
```bash
|
|
721
721
|
npm test # run all tests (vitest)
|
|
722
722
|
npm run test:watch # watch mode
|
|
@@ -757,6 +757,8 @@ npm run test:coverage # coverage report
|
|
|
757
757
|
| `pluginDetector.test.js` | SEO plugin detection, rendered head, HTML head parsing | 13 |
|
|
758
758
|
| `pluginIntelligence.test.js` | 6 plugin intelligence tools: rendered head, rendered SEO audit, pillar content, schema plugins, SEO score, Twitter meta | 48 |
|
|
759
759
|
| `dxt/manifest.test.js` | MCPB manifest validation, 85 tools declared | 10 |
|
|
760
|
+
| `dynamicFiltering.test.js` | WooCommerce/editorial/plugin-intelligence filtering, combined counts, callable when filtered | 9 |
|
|
761
|
+
| `outputCompression.test.js` | mode=full/summary/ids_only for 10 listing tools (pages, media, comments, categories, tags, users, custom posts, plugins, themes, revisions) | 30 |
|
|
760
762
|
|
|
761
763
|
Each test verifies: success response shape, governance blocking (write tools), HTTP error handling (403/404), and audit log entries.
|
|
762
764
|
|
|
@@ -926,6 +928,27 @@ npx @modelcontextprotocol/inspector node index.js
|
|
|
926
928
|
|
|
927
929
|
## Changelog
|
|
928
930
|
|
|
931
|
+
### v4.5.1 (2026-02-21) — Context Optimization
|
|
932
|
+
|
|
933
|
+
LLM context reduction across all 85 tools — zero breaking changes.
|
|
934
|
+
|
|
935
|
+
**Dynamic filtering:**
|
|
936
|
+
- `getFilteredTools()` hides WooCommerce (13), editorial (3), and plugin intelligence (6) tools when their env vars are absent
|
|
937
|
+
- `listTools` returns only exposed tools; `callTool` still handles all 85
|
|
938
|
+
- `wp_site_info` now reports `tools_total`, `tools_exposed`, `filtered_out`
|
|
939
|
+
|
|
940
|
+
**LLM-optimized descriptions:**
|
|
941
|
+
- All 85 tool descriptions rewritten: `"Use when [TRIGGER]. [ACTION]. [Read-only | Write — blocked by X]. [Hint: optional]"`
|
|
942
|
+
|
|
943
|
+
**Schema compact:**
|
|
944
|
+
- Redundant `description` fields removed from `inputSchema` properties (id, per_page, page, status with enum, search, force, post_type with enum, etc.)
|
|
945
|
+
|
|
946
|
+
**Output compression (`mode` parameter):**
|
|
947
|
+
- 10 listing tools gain `mode` param: `full` (default), `summary` (key fields only), `ids_only` (flat array)
|
|
948
|
+
- wp_list_pages, wp_list_media, wp_list_comments, wp_list_categories, wp_list_tags, wp_list_users, wp_list_custom_posts, wp_list_plugins, wp_list_themes, wp_list_revisions
|
|
949
|
+
|
|
950
|
+
713 Vitest unit tests · 85 tools
|
|
951
|
+
|
|
929
952
|
### v4.5.0 (2026-02-21) — Plugin Intelligence (RankMath + Yoast)
|
|
930
953
|
|
|
931
954
|
6 new tools exploiting native RankMath and Yoast SEO API endpoints for rendered head analysis, schema validation, and social meta management.
|
package/dxt/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "wordpress-mcp-server",
|
|
4
4
|
"display_name": "WordPress MCP Server",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.1",
|
|
6
6
|
"description": "Manage your WordPress site from Claude Desktop — posts, pages, media, SEO audits, content intelligence, plugin intelligence, plugins, themes, revisions, WooCommerce, content compression, and more. 85 tools, no WordPress plugin required.",
|
|
7
7
|
"long_description": "A full-featured MCP server for WordPress REST API integration. Manage posts, pages, media, categories, tags, comments, users, SEO metadata, plugins, themes, revisions, and WooCommerce products/orders/customers through 85 tools — all from Claude Desktop.\n\nNo WordPress plugin required. Uses the built-in WordPress REST API with Application Passwords for secure authentication.\n\nFeatures:\n- Content management: create, read, update, delete posts and pages\n- Content compression: field filtering, content_format (html/text/links_only), list modes (full/summary/ids_only) for LLM context optimization\n- Content intelligence: readability scoring, duplicate detection, entity extraction, publishing velocity, revision diff, content structure analysis, FAQ extraction, CTA detection, link mapping, anchor text audit, schema markup validation\n- Plugin intelligence: SEO plugin detection (RankMath/Yoast/SEOPress), rendered head analysis, schema validation from plugin fields, SEO score reading, Twitter Card meta, pillar content management\n- Editorial approval workflow: submit for review, approve, reject\n- Media library: list, get details, upload from URL\n- Taxonomy: categories, tags, custom post types\n- SEO: auto-detects Yoast, RankMath, SEOPress, or All in One SEO\n- SEO audit suite: media alt text, orphan pages, heading structure, thin content, canonicals, E-E-A-T signals, broken links, keyword cannibalization, taxonomy bloat, outbound links\n- Plugins & themes: list, activate, deactivate\n- Revisions: list, view, restore, delete\n- WooCommerce read: products, orders, customers, price guardrail\n- WooCommerce intelligence: inventory alerts, order analytics, product SEO audit, product link suggestions\n- WooCommerce write: update products (with price guardrail), stock management, order status transitions\n- Enterprise controls: read-only mode, draft-only, disable-delete, require-approval (global and per-target)\n- Multi-site: target multiple WordPress installations with per-target controls",
|
|
8
8
|
"author": {
|