@diviops/mcp-server 1.5.58 → 1.5.59

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,19 @@ 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.58 candidate release note
11
+ ## 1.5.59 release note
12
+
13
+ Adds two default WP-CLI reads: `option pluck <option> <key-path>...` for a nested
14
+ option value, and `term meta get <term-id> <key>` for a term-meta field. Existing
15
+ write permissions are unchanged. Restart the MCP client connection after updating
16
+ to refresh the effective command list.
17
+
18
+ Public builder companion 1.4.11 corrects admin-label examples to use
19
+ `module.meta.adminLabel.desktop.value`. Updating npm does not update independently
20
+ installed skills or instructions already read by an agent. Free remains 1.5.30;
21
+ dependencies and compatibility floors are unchanged.
22
+
23
+ ## Previous 1.5.58 release note
12
24
 
13
25
  With Free 1.5.30, module preset create/update accepts `group_presets` for native
14
26
  root composition, and inspection exposes stored links. The supplied map replaces
@@ -23,10 +35,8 @@ heading levels according to document hierarchy, without changing typography or
23
35
  warning detection. Updating npm or WordPress does not update independently
24
36
  installed skills or instructions already read by an agent.
25
37
 
26
- These source candidate versions are not yet published. The delivered baseline
27
- is Free 1.5.29 / MCP 1.5.57 / builder 1.4.9. Dependencies and compatibility floors
28
- are unchanged. Package qualification and publication remain separate from
29
- source acceptance.
38
+ Free 1.5.30, MCP 1.5.58 and public builder 1.4.10 were delivered together.
39
+ Dependencies and compatibility floors were unchanged.
30
40
 
31
41
  ## Previous 1.5.57 candidate release note
32
42
 
package/dist/index.js CHANGED
@@ -3182,7 +3182,7 @@ registerPluginTool("diviops_canvas_delete", {
3182
3182
  });
3183
3183
  // ── WP-CLI ──────────────────────────────────────────────────────────
3184
3184
  registerLocalTool("diviops_meta_wp_cli", {
3185
- description: "Run a WP-CLI command on the WordPress site. Requires WP_PATH env var (LOCAL_SITE_ID auto-detected from Local by Flywheel), or WP_CLI_CMD for containerized wrappers. Commands validated against a safety allowlist. Default tier covers read ops across options/posts/post-types/taxonomies/users/info/core/db, non-destructive writes (post/term create+update, post meta read/write, cache/rewrite/transient flush, `plugin update` from authenticated sources), ACF/SCF schema ops (`acf export/import/field-group list/get` plus SCF 6.8.4+ `scf json {status,sync,import,export}` and the `acf json …` aliases), and WXR export. Extended tier (requires DIVIOPS_WP_CLI_ALLOW env var) adds destructive or bulk-modifying ops: option update, post/post meta/term delete, search-replace, import, plugin activate/deactivate, eval-file. Filesystem-touching commands (`wp export`, `acf export/import`, `scf|acf json export/import`) are additionally constrained: path arguments must resolve under a safe root (defaults to `<WP_PATH>/.diviops-tmp/`, overridable via DIVIOPS_WP_CLI_SAFE_FS_ROOT, disable via DIVIOPS_WP_CLI_UNSAFE_FS=1); `wp export` and `scf json export` require an explicit `--dir=<path>` (or `--stdout`). In WP_CLI_CMD wrapper mode, DIVIOPS_WP_CLI_SAFE_FS_ROOT is required for FS-sensitive commands. Prefer the typed `diviops_scf_*` wrappers for SCF round-trips — they're easier to invoke and accept the same safe-root scoping. Use --format=json for structured output. Full allowlist + tier rationale + filesystem semantics in the MCP server README. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }. Success payload: { stdout: string, stderr: string, exit_code: 0 }. Four failure modes converge on 'meta_wp_cli.command_failed' with error.data = { exit_code: number | null, stdout: string, stderr: string }: (a) numeric exit_code — wp-cli ran and exited non-zero; stdout/stderr are raw streams verbatim. (b) exit_code=null and message starts with 'wp-cli command terminated:' — execFile launched the child but it was killed (timeout or signal); stdout/stderr carry whatever streamed before the kill. (c) exit_code=null and message starts with 'wp-cli could not spawn:' — the OS refused to start the child (ENOENT/EACCES/EPERM); child never ran, stdout/stderr are empty. (d) exit_code=null and message is the rejection reason — pre-execution rejection by the allowlist / FS validator; rejection reason synthesized into error.data.stderr because the child never ran. A missing wp-cli configuration surfaces as 'meta_wp_cli.not_configured'. stdout is always passed through as a string (no server-side JSON parse) — pass --format=json and parse on the caller side when you want structured output.",
3185
+ description: "Run a WP-CLI command on the WordPress site. Requires WP_PATH env var (LOCAL_SITE_ID auto-detected from Local by Flywheel), or WP_CLI_CMD for containerized wrappers. Commands validated against a safety allowlist. Default tier covers read ops across options/posts/post-types/taxonomies/users/info/core/db (including targeted `option pluck` and `term meta get` reads), non-destructive writes (post/term create+update, post meta read/write, cache/rewrite/transient flush, `plugin update` from authenticated sources), ACF/SCF schema ops (`acf export/import/field-group list/get` plus SCF 6.8.4+ `scf json {status,sync,import,export}` and the `acf json …` aliases), and WXR export. Extended tier (requires DIVIOPS_WP_CLI_ALLOW env var) adds destructive or bulk-modifying ops: option update, post/post meta/term delete, search-replace, import, plugin activate/deactivate, eval-file. Filesystem-touching commands (`wp export`, `acf export/import`, `scf|acf json export/import`) are additionally constrained: path arguments must resolve under a safe root (defaults to `<WP_PATH>/.diviops-tmp/`, overridable via DIVIOPS_WP_CLI_SAFE_FS_ROOT, disable via DIVIOPS_WP_CLI_UNSAFE_FS=1); `wp export` and `scf json export` require an explicit `--dir=<path>` (or `--stdout`). In WP_CLI_CMD wrapper mode, DIVIOPS_WP_CLI_SAFE_FS_ROOT is required for FS-sensitive commands. Prefer the typed `diviops_scf_*` wrappers for SCF round-trips — they're easier to invoke and accept the same safe-root scoping. Use --format=json for structured output. Full allowlist + tier rationale + filesystem semantics in the MCP server README. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }. Success payload: { stdout: string, stderr: string, exit_code: 0 }. Four failure modes converge on 'meta_wp_cli.command_failed' with error.data = { exit_code: number | null, stdout: string, stderr: string }: (a) numeric exit_code — wp-cli ran and exited non-zero; stdout/stderr are raw streams verbatim. (b) exit_code=null and message starts with 'wp-cli command terminated:' — execFile launched the child but it was killed (timeout or signal); stdout/stderr carry whatever streamed before the kill. (c) exit_code=null and message starts with 'wp-cli could not spawn:' — the OS refused to start the child (ENOENT/EACCES/EPERM); child never ran, stdout/stderr are empty. (d) exit_code=null and message is the rejection reason — pre-execution rejection by the allowlist / FS validator; rejection reason synthesized into error.data.stderr because the child never ran. A missing wp-cli configuration surfaces as 'meta_wp_cli.not_configured'. stdout is always passed through as a string (no server-side JSON parse) — pass --format=json and parse on the caller side when you want structured output.",
3186
3186
  inputSchema: {
3187
3187
  command: z
3188
3188
  .string()
package/dist/wp-cli.js CHANGED
@@ -17,6 +17,7 @@ import { resolveSafeFsRoot, fsValidationDisabled, ensureSafeFsRoot, matchFsSensi
17
17
  const DEFAULT_COMMANDS = [
18
18
  // Options (read-only)
19
19
  'option get',
20
+ 'option pluck',
20
21
  'option list',
21
22
  // Posts (read + create/update)
22
23
  'post list',
@@ -36,6 +37,7 @@ const DEFAULT_COMMANDS = [
36
37
  // Taxonomies (read + non-destructive write)
37
38
  'taxonomy list',
38
39
  'term list',
40
+ 'term meta get',
39
41
  'term create',
40
42
  'term update',
41
43
  // ACF / SCF (schema ops — idempotent dev-time workflow)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.58",
3
+ "version": "1.5.59",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",