@adsim/wordpress-mcp-server 4.5.1 → 5.1.0
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/.env.example +18 -0
- package/README.md +857 -447
- package/companion/mcp-diagnostics.php +1184 -0
- package/dxt/manifest.json +718 -90
- package/index.js +188 -4747
- package/package.json +14 -6
- package/src/data/plugin-performance-data.json +59 -0
- package/src/plugins/IPluginAdapter.js +95 -0
- package/src/plugins/adapters/acf/acfAdapter.js +181 -0
- package/src/plugins/adapters/elementor/elementorAdapter.js +176 -0
- package/src/plugins/contextGuard.js +57 -0
- package/src/plugins/registry.js +94 -0
- package/src/shared/api.js +79 -0
- package/src/shared/audit.js +39 -0
- package/src/shared/context.js +15 -0
- package/src/shared/governance.js +98 -0
- package/src/shared/utils.js +148 -0
- package/src/tools/comments.js +50 -0
- package/src/tools/content.js +353 -0
- package/src/tools/core.js +114 -0
- package/src/tools/editorial.js +634 -0
- package/src/tools/fse.js +370 -0
- package/src/tools/health.js +160 -0
- package/src/tools/index.js +96 -0
- package/src/tools/intelligence.js +2082 -0
- package/src/tools/links.js +118 -0
- package/src/tools/media.js +71 -0
- package/src/tools/performance.js +219 -0
- package/src/tools/plugins.js +368 -0
- package/src/tools/schema.js +417 -0
- package/src/tools/security.js +590 -0
- package/src/tools/seo.js +1633 -0
- package/src/tools/taxonomy.js +115 -0
- package/src/tools/users.js +188 -0
- package/src/tools/woocommerce.js +1008 -0
- package/src/tools/workflow.js +409 -0
- package/src/transport/http.js +39 -0
- package/tests/unit/helpers/pagination.test.js +43 -0
- package/tests/unit/pluginLayer.test.js +151 -0
- package/tests/unit/plugins/acf/acfAdapter.test.js +205 -0
- package/tests/unit/plugins/acf/acfAdapter.write.test.js +157 -0
- package/tests/unit/plugins/contextGuard.test.js +51 -0
- package/tests/unit/plugins/elementor/elementorAdapter.test.js +206 -0
- package/tests/unit/plugins/iPluginAdapter.test.js +34 -0
- package/tests/unit/plugins/registry.test.js +84 -0
- package/tests/unit/tools/bulkUpdate.test.js +188 -0
- package/tests/unit/tools/diagnostics.test.js +397 -0
- package/tests/unit/tools/dynamicFiltering.test.js +100 -8
- package/tests/unit/tools/editorialIntelligence.test.js +817 -0
- package/tests/unit/tools/fse.test.js +548 -0
- package/tests/unit/tools/multilingual.test.js +653 -0
- package/tests/unit/tools/performance.test.js +351 -0
- package/tests/unit/tools/runWorkflow.test.js +150 -0
- package/tests/unit/tools/schema.test.js +477 -0
- package/tests/unit/tools/security.test.js +695 -0
- package/tests/unit/tools/site.test.js +1 -1
- package/tests/unit/tools/siteOptions.test.js +101 -0
- package/tests/unit/tools/users.crud.test.js +399 -0
- package/tests/unit/tools/validateBlocks.test.js +186 -0
- package/tests/unit/tools/visualStaging.test.js +271 -0
- package/tests/unit/tools/woocommerce.advanced.test.js +679 -0
package/.env.example
CHANGED
|
@@ -6,3 +6,21 @@ WP_API_USERNAME=your-username
|
|
|
6
6
|
|
|
7
7
|
# WordPress Application Password (generate in Users → Profile → Application Passwords)
|
|
8
8
|
WP_API_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx
|
|
9
|
+
|
|
10
|
+
# Compact JSON output (~30% token reduction). Set to 'false' for human-readable debugging.
|
|
11
|
+
WP_COMPACT_JSON=true
|
|
12
|
+
|
|
13
|
+
# WP_TOOL_CATEGORIES=seo,content,schema # Load specific categories only
|
|
14
|
+
# Categories: content media taxonomy engagement users seo schema
|
|
15
|
+
# intelligence editorial fse plugins workflow links
|
|
16
|
+
# woocommerce security performance health
|
|
17
|
+
# Empty or unset = all 173 tools exposed
|
|
18
|
+
|
|
19
|
+
# ── Enterprise Governance ──
|
|
20
|
+
# Visual Staging — intercept direct edits to published pages
|
|
21
|
+
# When true: wp_update_post/wp_update_page on published content is blocked
|
|
22
|
+
# AI must use wp_create_staging_draft → edit → wp_merge_staging_to_live
|
|
23
|
+
# WP_VISUAL_STAGING=true
|
|
24
|
+
|
|
25
|
+
# Block validation — auto-validate Gutenberg block structure on wp_update_post/page
|
|
26
|
+
# WP_VALIDATE_BLOCKS=false
|