@diviops/mcp-server 1.5.51 → 1.5.53

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.
Files changed (3) hide show
  1. package/README.md +49 -2
  2. package/dist/index.js +19 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,43 @@ 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.51 candidate release note
11
+ ## 1.5.53 candidate release note
12
+
13
+ The only MCP change is an inspector tool-description clarification: direct variable
14
+ references and partial coverage are now explicit. No new tools or input-schema,
15
+ runtime, dependency or compatibility-floor changes are included. This is source
16
+ candidate preparation, not package validation or publication.
17
+
18
+ Independent builder companion 1.4.6 carries already-merged guidance for native
19
+ megamenu authoring, explicit local override/null semantics and implicit group defaults.
20
+
21
+ ## Previous 1.5.52 candidate release note
22
+
23
+ Adds `diviops_scf_text_value_update` for basic Free authoring of one existing
24
+ applicable top-level SCF 6.9.4 text field. It previews by default, requires exact
25
+ expected text, validates the field and verifies persisted value/reference after
26
+ one provider update. Free 1.5.23 supplies the capability-gated REST handler;
27
+ older plugins refuse before dispatch. No Pro or WP-CLI dependency is added.
28
+ Existing Divi bindings/design are not authored by this operation. Expected-state
29
+ checks are not atomic CAS, SCF snapshot rollback or full native-form equivalence.
30
+
31
+ SCF member 1.2 carries the writer's scope, failure handling and bounded local MCP
32
+ proof, distinct from historical native-editor evidence. That proof used temporary
33
+ Free 1.5.22/MCP 1.5.51, not this candidate pair. The feature remains a source
34
+ candidate until separately validated and published; restart MCP after supported
35
+ updates to refresh capabilities. No dependencies or global compatibility floors change.
36
+
37
+ Builder companion 1.4.5 carries the accepted Divi 5.13 source-derived schema
38
+ references, Contact Form Show Labels and Map-height ownership guidance, and
39
+ preset custom-ID precedence: use classes in reusable presets and unique
40
+ module-local custom-ID rows, not the separate CSS-ID field as an override.
41
+ It also carries native-portability guidance for importer/file handoffs, explicit
42
+ preset references versus effective defaults, empty-array resets and saved-state
43
+ readback. These are bounded guidance changes, not automatic preset repair,
44
+ cross-version import fidelity or blanket native-save compatibility. The builder
45
+ package version is independent of the SCF member version.
46
+
47
+ ## Previous 1.5.51 candidate release note
12
48
 
13
49
  Adds `diviops_managed_recovery_plan_check` and
14
50
  `diviops_managed_recovery_restore_apply` for an opt-in, reviewed one-site
@@ -197,7 +233,7 @@ The skill enforces the Divi block format, the design system, and the response co
197
233
 
198
234
  ## Tools at a glance
199
235
 
200
- The server exposes **94 always-on tools** across the categories below. Each category links to representative tools; the full table lives in [server-reference.md](../docs/server-reference.md).
236
+ The server exposes **95 always-on tools** across the categories below. Each category links to representative tools; the full table lives in [server-reference.md](../docs/server-reference.md).
201
237
 
202
238
  | Category | Use case | Tool prefixes |
203
239
  |----------|----------|---------------|
@@ -213,6 +249,17 @@ The server exposes **94 always-on tools** across the categories below. Each cate
213
249
  | WP-CLI passthrough | Escape hatch for site ops | `meta_wp_cli` |
214
250
  | Cache + meta | Connection probe, identity, icons, cache flush | `meta_*` |
215
251
 
252
+ Source candidate: `diviops_scf_text_value_update` is a Free REST writer, separate
253
+ from the existing SCF CLI schema tools. It previews by default and updates one
254
+ existing applicable top-level text field on an editable post, with exact expected
255
+ value, SCF 6.9.4 field validation and persisted value/reference readback. It requires
256
+ the precise Free plugin capability, not Pro or WP-CLI. Empty/literal-"0", multiline,
257
+ markup, nested/conditional fields and schema changes are outside its initial
258
+ scope. See the separately supplied DiviOps SCF skill's text-value contract
259
+ for exact inputs and failure semantics. No full native-form equivalence, atomic
260
+ CAS, SCF snapshot backup or automatic rollback/retry. The retained one-field
261
+ local proof does not qualify the new candidate packages or another runtime.
262
+
216
263
  Use `diviops_meta_info` as the S0 preflight before dogfooding or product work. It returns `server_version`, a numeric `tool_count`, a `tools` catalog summary (`registered_total`, always-on count, Pro possible/registered counts by target), `plugins` version records for `diviops-agent`, `diviops-agent-pro`, FluentCart, and FluentCart Pro when available, plus the existing handshake and slice state. In regular npm/stdio sessions, successfully observed plugin, module, capability, and registered-tool fields are the immutable handshake snapshot that built the session catalog. The additive `startup_capture` record supplies its non-secret timestamp, exact covered evidence, independent-component compatibility rule, and deterministic reconnect guidance. A failed handshake instead reports `startup_unavailable`, a bounded `startup_handshake_failed` reason class, and no covered target evidence. After a supported plugin, theme, or target change, reconnect or restart MCP before treating `meta_info`, the registered tools, or capability gates as current. Live read tools such as `diviops_fc_status` remain separate current observations; they do not rewrite startup registry truth.
217
264
 
218
265
  Launcher health mode keeps its stricter existing contract: `diviops_meta_ping` and `diviops_meta_info` re-observe model-visible target evidence on every call. The regular stdio `startup_capture` record does not alter launcher behavior, direct npm/stdio compatibility, or tool registration after initialization.
package/dist/index.js CHANGED
@@ -2001,7 +2001,7 @@ registerPluginTool("diviops_preset_audit_storage", {
2001
2001
  };
2002
2002
  });
2003
2003
  registerPluginTool("diviops_preset_inspect", {
2004
- description: "Inspect one Divi 5 preset UUID without writing. Returns bucket/type/module/group coordinates, attrs/styleAttrs/renderAttrs, storage path and provenance, block plus preset-chain reference counts with sample consumers, geometry-scope warnings for layout/position/sizing/transform attrs, and a warning when the same UUID also exists in nested D5 or legacy _ng storage. This is intentionally narrower than diviops_preset_audit and has no repair mode. Missing UUID returns not_found.",
2004
+ description: "Inspect one Divi 5 preset UUID without writing. Returns bucket/type/module/group coordinates, attrs/styleAttrs/renderAttrs, storage path and provenance, block plus preset-chain reference counts with sample consumers, explicit partial coverage, and direct variable_references.ids to join with diviops_variable_list (absent IDs remain unresolved). Includes geometry-scope warnings for layout/position/sizing/transform attrs and a warning for nested D5 or legacy _ng duplicates. Zero references is not deletion approval; stored definitions are not computed styles. This is intentionally narrower than diviops_preset_audit and has no repair mode. Missing UUID returns not_found.",
2005
2005
  inputSchema: {
2006
2006
  preset_id: z.string().min(1).describe("Preset UUID to inspect."),
2007
2007
  },
@@ -3169,6 +3169,24 @@ registerLocalTool("diviops_meta_wp_cli", {
3169
3169
  });
3170
3170
  // ── SCF (Secure Custom Fields / ACF) wrappers ───────────────────────
3171
3171
  //
3172
+ // Free REST writer; deliberately separate from the existing CLI schema tools.
3173
+ const scfTextValueInput = z.string().min(1).max(4096).regex(/^[^<>\x00-\x1f\x7f]+$/)
3174
+ .refine((value) => value.trim() !== "" && value !== "0" && Buffer.byteLength(value, "utf8") <= 4096, "Expected single-line plain UTF-8 text (1-4096 bytes); whitespace-only and literal 0 are excluded.");
3175
+ registerPluginTool("diviops_scf_text_value_update", {
3176
+ description: "Update one existing applicable top-level SCF text value on an editable post. Free authoring; requires the scf_text_value_update plugin capability and active SCF 6.9.4, not WP-CLI or Pro. Exact expected_value precheck is not atomic CAS. Defaults to dry-run; preview before explicit apply. Single-line plain UTF-8 strings, at most 4096 bytes; empty, whitespace-only, literal 0, markup and control characters excluded in this initial contract. Calls field validation, not full native form-save validation. Provider hooks may transform values or have side effects. One update call with persisted value/reference readback; no snapshot backup, automatic rollback or retry. No definition, Divi binding/design or template writes. Error diagnostics omit values. Returns the standard envelope; stale state is scf.conflict, unchanged persisted state after an attempted change is scf.write_failed, unverified/changed readback is scf.mutation_uncertain.",
3177
+ inputSchema: z.object({
3178
+ post_id: z.number().int().positive(),
3179
+ field_key: z.string().regex(/^field_[A-Za-z0-9_]+$/),
3180
+ expected_value: scfTextValueInput,
3181
+ value: scfTextValueInput,
3182
+ dry_run: z.boolean().default(true),
3183
+ }).strict(),
3184
+ annotations: { idempotentHint: false },
3185
+ _meta: { idempotent: "conditional" },
3186
+ }, async (args) => {
3187
+ const result = await wp.requestEnveloped("/scf/text-value/update", { method: "POST", body: args });
3188
+ return { content: [{ type: "text", text: serializeEnvelope(result, "diviops_scf_text_value_update") }] };
3189
+ });
3172
3190
  // Typed wrappers over SCF 6.8.4+'s `wp scf json {status,sync,import,export}`
3173
3191
  // CLI family (also reachable as `wp acf json …`). The plugin file at
3174
3192
  // wp-content/plugins/secure-custom-fields/src/CLI/JsonCommand.php is the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.51",
3
+ "version": "1.5.53",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",