@diviops/mcp-server 1.5.56 → 1.5.57

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 CHANGED
@@ -8,7 +8,33 @@ The Node.js MCP server inside the DiviOps harness. It gives Claude Code, Codex,
8
8
  Claude Code <-> MCP Server (stdio) <-> WordPress REST API <-> DiviOps Agent plugin
9
9
  ```
10
10
 
11
- ## 1.5.56 candidate release note
11
+ ## 1.5.57 candidate release note
12
+
13
+ Forwards `diviops_module_update` request cancellation to HTTP dispatch and pending
14
+ response-body reads. This does not establish the cause or resolution of the
15
+ reported four-minute hang. After dispatch, the WordPress write outcome remains
16
+ unknown: cancellation does not verify no changes, a stopped write or rollback.
17
+ Do not automatically retry; inspect readback and existing rollback evidence
18
+ before deciding any later action.
19
+
20
+ Corrects WP-CLI rejection hints to match actual extended opt-in commands.
21
+ Command permissions, allowlists and opt-in requirements are unchanged.
22
+
23
+ Separately prepared Free 1.5.29 generates lowercase IDs for new non-color design
24
+ variables and refuses invalid supplied IDs without silently renaming them.
25
+ Existing IDs and references are not migrated or repaired. Additional module-write
26
+ regression coverage is tests only, not a new serialization fix.
27
+
28
+ Delivered baseline: Free 1.5.28, MCP 1.5.56 and public builder companion 1.4.9.
29
+ Builder content is unchanged, so its version remains 1.4.9. This is source review,
30
+ not exact-package qualification, runtime acceptance or publication. A narrow
31
+ dependency correction pins `proxy-addr` to patched `2.0.8` after the original
32
+ qualification audit failed. Tool schemas, compatibility floors, Pro, Design
33
+ Library, paid skills, primer and launcher remain unchanged. Fresh package
34
+ qualification and hosted validation are authorized but pending; merge remains
35
+ gated on corrected-head review and all applicable checks.
36
+
37
+ ## Previous 1.5.56 candidate release note
12
38
 
13
39
  Aligns shipped setup documentation and attribute-reference citations with the
14
40
  renamed `diviops-divi-5` skill. Updates three pinned production dependencies to
@@ -644,6 +670,7 @@ Common quick fixes — full reference in [troubleshooting.md](../docs/troublesho
644
670
  - **`npx` fails with "could not determine executable to run"** — use `npx -y --package @diviops/mcp-server diviops-mcp`; this explicitly selects the MCP server bin.
645
671
  - **"Connection failed"** — verify the plugin is active by visiting `{WP_URL}/wp-json/diviops/v1/schema/settings`; test the credentials with `curl -u "user:pass" …`.
646
672
  - **"This tool requires plugin capability"** — the connected plugin does not advertise the capability this tool needs. Server and plugin versions are independent; install a compatible plugin from the same DiviOps suite release or a newer supported component, then reconnect or restart the MCP session to refresh the handshake.
673
+ - **Cancelled `diviops_module_update`**: MCP request cancellation is forwarded to the HTTP request, including pending response-body reads. Once dispatched, the WordPress write outcome remains unknown: cancellation does not verify that the write stopped, made no changes, or rolled back. Do not automatically retry; use readback and existing rollback evidence to determine any later action.
647
674
  - **Preset edits not visible on the frontend** — Divi serves frontend CSS from `wp-content/et-cache/{post_id}/`, which `wp cache flush` doesn't touch. Use `diviops_meta_flush_cache` after preset writes; `post_id` mode also sweeps that exact directory and reports `post_dir_sweep` evidence.
648
675
 
649
676
  ## Learn more
package/dist/index.js CHANGED
@@ -363,7 +363,7 @@ function registerPluginTool(name, config, handler) {
363
363
  registered: true,
364
364
  capability_key: key,
365
365
  });
366
- const wrapped = (async (args) => {
366
+ const wrapped = (async (args, context) => {
367
367
  try {
368
368
  requireCapability(key);
369
369
  }
@@ -375,7 +375,7 @@ function registerPluginTool(name, config, handler) {
375
375
  }
376
376
  throw e;
377
377
  }
378
- return handler(args);
378
+ return handler(args, context);
379
379
  });
380
380
  recordIdempotent(name, config?._meta);
381
381
  registry.registerTool(name, config, wrapped);
@@ -1714,7 +1714,8 @@ registerPluginTool("diviops_module_update", {
1714
1714
  },
1715
1715
  annotations: { idempotentHint: false },
1716
1716
  _meta: { idempotent: "conditional" },
1717
- }, async ({ page_id, label, match_text, auto_index, occurrence, attrs, dry_run, backup }) => {
1717
+ }, async (args, context) => {
1718
+ const { page_id, label, match_text, auto_index, occurrence, attrs, dry_run, backup } = args;
1718
1719
  const backupGate = backupCapabilityError("diviops_module_update", backup);
1719
1720
  if (backupGate)
1720
1721
  return backupGate;
@@ -1739,6 +1740,7 @@ registerPluginTool("diviops_module_update", {
1739
1740
  const result = await wp.requestEnveloped(`/module/update/${page_id}`, {
1740
1741
  method: "POST",
1741
1742
  body,
1743
+ signal: requestAbortSignal(args, context),
1742
1744
  });
1743
1745
  return {
1744
1746
  content: [
package/dist/wp-cli.js CHANGED
@@ -170,7 +170,7 @@ function isCommandAllowed(args) {
170
170
  }
171
171
  }
172
172
  const extendable = EXTENDED_COMMANDS.filter((c) => !ALLOWED_COMMANDS.includes(c));
173
- const hint = extendable.some((c) => twoWord === c || threeWord === c || oneWord === c.split(' ')[0])
173
+ const hint = extendable.some((c) => twoWord === c || threeWord === c || oneWord === c)
174
174
  ? ` This command can be enabled via DIVIOPS_WP_CLI_ALLOW env var (see README).`
175
175
  : extendable.length > 0
176
176
  ? ` Opt-in commands available: ${extendable.join(', ')}.`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.56",
3
+ "version": "1.5.57",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -66,6 +66,7 @@
66
66
  "fast-uri": "3.1.8",
67
67
  "hono": "4.13.7",
68
68
  "ip-address": "10.7.1",
69
+ "proxy-addr": "2.0.8",
69
70
  "zod": "^4.3.6"
70
71
  },
71
72
  "devDependencies": {