@diviops/mcp-server 1.5.51 → 1.5.52

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 +39 -2
  2. package/dist/index.js +18 -0
  3. package/package.json +1 -1
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.51 candidate release note
11
+ ## 1.5.52 candidate release note
12
+
13
+ Adds `diviops_scf_text_value_update` for basic Free authoring of one existing
14
+ applicable top-level SCF 6.9.4 text field. It previews by default, requires exact
15
+ expected text, validates the field and verifies persisted value/reference after
16
+ one provider update. Free 1.5.23 supplies the capability-gated REST handler;
17
+ older plugins refuse before dispatch. No Pro or WP-CLI dependency is added.
18
+ Existing Divi bindings/design are not authored by this operation. Expected-state
19
+ checks are not atomic CAS, SCF snapshot rollback or full native-form equivalence.
20
+
21
+ SCF member 1.2 carries the writer's scope, failure handling and bounded local MCP
22
+ proof, distinct from historical native-editor evidence. That proof used temporary
23
+ Free 1.5.22/MCP 1.5.51, not this candidate pair. The feature remains a source
24
+ candidate until separately validated and published; restart MCP after supported
25
+ updates to refresh capabilities. No dependencies or global compatibility floors change.
26
+
27
+ Builder companion 1.4.5 carries the accepted Divi 5.13 source-derived schema
28
+ references, Contact Form Show Labels and Map-height ownership guidance, and
29
+ preset custom-ID precedence: use classes in reusable presets and unique
30
+ module-local custom-ID rows, not the separate CSS-ID field as an override.
31
+ It also carries native-portability guidance for importer/file handoffs, explicit
32
+ preset references versus effective defaults, empty-array resets and saved-state
33
+ readback. These are bounded guidance changes, not automatic preset repair,
34
+ cross-version import fidelity or blanket native-save compatibility. The builder
35
+ package version is independent of the SCF member version.
36
+
37
+ ## Previous 1.5.51 candidate release note
12
38
 
13
39
  Adds `diviops_managed_recovery_plan_check` and
14
40
  `diviops_managed_recovery_restore_apply` for an opt-in, reviewed one-site
@@ -197,7 +223,7 @@ The skill enforces the Divi block format, the design system, and the response co
197
223
 
198
224
  ## Tools at a glance
199
225
 
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).
226
+ 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
227
 
202
228
  | Category | Use case | Tool prefixes |
203
229
  |----------|----------|---------------|
@@ -213,6 +239,17 @@ The server exposes **94 always-on tools** across the categories below. Each cate
213
239
  | WP-CLI passthrough | Escape hatch for site ops | `meta_wp_cli` |
214
240
  | Cache + meta | Connection probe, identity, icons, cache flush | `meta_*` |
215
241
 
242
+ Source candidate: `diviops_scf_text_value_update` is a Free REST writer, separate
243
+ from the existing SCF CLI schema tools. It previews by default and updates one
244
+ existing applicable top-level text field on an editable post, with exact expected
245
+ value, SCF 6.9.4 field validation and persisted value/reference readback. It requires
246
+ the precise Free plugin capability, not Pro or WP-CLI. Empty/literal-"0", multiline,
247
+ markup, nested/conditional fields and schema changes are outside its initial
248
+ scope. See the separately supplied DiviOps SCF skill's text-value contract
249
+ for exact inputs and failure semantics. No full native-form equivalence, atomic
250
+ CAS, SCF snapshot backup or automatic rollback/retry. The retained one-field
251
+ local proof does not qualify the new candidate packages or another runtime.
252
+
216
253
  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
254
 
218
255
  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
@@ -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.52",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",