@diviops/mcp-server 1.5.77 → 1.5.78
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 +8 -2
- package/dist/index.js +13 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,13 @@ 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
|
-
## MCP 1.5.
|
|
11
|
+
## MCP 1.5.78 release note
|
|
12
|
+
|
|
13
|
+
Pair with DiviOps Agent 1.5.52 for guarded canvas content replacement. Read the canvas post ID with `diviops_page_get` and reuse its `content_checksum` as `expected_checksum` on dry run and apply. The guard requires Agent support. A concurrent write can still occur after comparison.
|
|
14
|
+
|
|
15
|
+
Icon lookup searches bundled Divi and Font Awesome icons. For a Theme Builder edit, inspect the published templates that reference the layout ID and reuse the reviewed layout checksum on apply.
|
|
16
|
+
|
|
17
|
+
## MCP 1.5.77 historical release note
|
|
12
18
|
|
|
13
19
|
Use `diviops_component_slot_preview` with DiviOps Agent 1.5.51 on Divi 5.19.1 to inspect a saved component Slot. Supply the page ID, shared definition ID, Slot ID and, when needed, the one-based instance index. The result identifies the owners of the shell and its ordered immediate children and includes checksums for both saved records. Reconnect the MCP client after updating to refresh its tool list.
|
|
14
20
|
|
|
@@ -553,7 +559,7 @@ The skill enforces the Divi block format, the design system, and the response co
|
|
|
553
559
|
|
|
554
560
|
## Tools at a glance
|
|
555
561
|
|
|
556
|
-
The server exposes **
|
|
562
|
+
The server exposes **102 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).
|
|
557
563
|
|
|
558
564
|
| Category | Use case | Tool prefixes |
|
|
559
565
|
|----------|----------|---------------|
|
package/dist/index.js
CHANGED
|
@@ -1245,7 +1245,7 @@ registerPluginTool("diviops_global_font_delete", {
|
|
|
1245
1245
|
return { content: [{ type: "text", text: serializeEnvelope(result, "diviops_global_font_delete") }] };
|
|
1246
1246
|
});
|
|
1247
1247
|
registerPluginTool("diviops_meta_find_icon", {
|
|
1248
|
-
description: "Search
|
|
1248
|
+
description: "Search bundled Divi and Font Awesome icons by keyword. Uploaded icons and private collections are excluded. Returns matching icons with unicode, type (fa/divi), and weight. Use the returned unicode/type/weight in Blurb icon or Icon module attributes. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.",
|
|
1249
1249
|
inputSchema: {
|
|
1250
1250
|
query: z
|
|
1251
1251
|
.string()
|
|
@@ -2884,7 +2884,7 @@ registerPluginTool("diviops_tb_layout_update", {
|
|
|
2884
2884
|
DRY_RUN_DESC_SUFFIX,
|
|
2885
2885
|
inputSchema: {
|
|
2886
2886
|
layout_id: z.number().describe("Layout post ID to update"),
|
|
2887
|
-
expected_checksum: z.string().length(71).regex(/^sha256:[a-f0-9]{64}$/).optional().describe("Optional
|
|
2887
|
+
expected_checksum: z.string().length(71).regex(/^sha256:[a-f0-9]{64}$/).optional().describe("Optional guard for the layout post_content. Page through diviops_tb_template_list to see which published templates reference the target header, body or footer layout ID. Read that ID with diviops_page_get and pass its reviewed content_checksum as expected_checksum on both dry run and apply. Drift is refused. The check covers layout content only and does not lock the record."),
|
|
2888
2888
|
content: z.string().describe("New block markup content"),
|
|
2889
2889
|
dry_run: DRY_RUN_FIELD,
|
|
2890
2890
|
backup: BACKUP_FIELD,
|
|
@@ -3210,6 +3210,7 @@ registerPluginTool("diviops_canvas_update", {
|
|
|
3210
3210
|
.string()
|
|
3211
3211
|
.optional()
|
|
3212
3212
|
.describe("New block markup (replaces entire content)"),
|
|
3213
|
+
expected_checksum: z.string().length(71).regex(/^sha256:[a-f0-9]{64}$/).optional().describe("For content replacement, read the canvas post ID with diviops_page_get and reuse its content_checksum on dry run and apply. Checks saved content bytes only. Concurrent writes after the comparison are possible."),
|
|
3213
3214
|
title: z.string().optional().describe("New canvas title"),
|
|
3214
3215
|
append_to_main: z
|
|
3215
3216
|
.enum(["above", "below", ""])
|
|
@@ -3220,13 +3221,20 @@ registerPluginTool("diviops_canvas_update", {
|
|
|
3220
3221
|
},
|
|
3221
3222
|
annotations: { idempotentHint: false },
|
|
3222
3223
|
_meta: { idempotent: "conditional" },
|
|
3223
|
-
}, async ({ canvas_post_id, content, title, append_to_main, z_index, dry_run }) => {
|
|
3224
|
+
}, async ({ canvas_post_id, content, title, append_to_main, z_index, dry_run, expected_checksum }) => {
|
|
3225
|
+
const capability = "canvas_update_expected_checksum";
|
|
3226
|
+
if (expected_checksum !== undefined && (handshakeState.kind !== "ok" || handshakeState.capabilities[capability] !== true)) {
|
|
3227
|
+
const version = handshakeState.kind === "ok" ? handshakeState.pluginVersion : undefined;
|
|
3228
|
+
return missingCapabilityEnvelope(new MissingCapabilityError(capability, version), "diviops_canvas_update", { serverVersion: SERVER_VERSION });
|
|
3229
|
+
}
|
|
3224
3230
|
const isolationGate = writerIsolationErrorResult("diviops_canvas_update", {
|
|
3225
3231
|
content,
|
|
3226
3232
|
});
|
|
3227
3233
|
if (isolationGate)
|
|
3228
3234
|
return isolationGate;
|
|
3229
3235
|
const body = {};
|
|
3236
|
+
if (expected_checksum !== undefined)
|
|
3237
|
+
body.expected_checksum = expected_checksum;
|
|
3230
3238
|
if (content !== undefined)
|
|
3231
3239
|
body.content = content;
|
|
3232
3240
|
if (title !== undefined)
|
|
@@ -3237,7 +3245,8 @@ registerPluginTool("diviops_canvas_update", {
|
|
|
3237
3245
|
body.z_index = z_index;
|
|
3238
3246
|
if (dry_run)
|
|
3239
3247
|
body.dry_run = true;
|
|
3240
|
-
const
|
|
3248
|
+
const route = expected_checksum === undefined ? "update" : "update-reviewed";
|
|
3249
|
+
const result = await authoringWrite(`/canvas/${route}/${canvas_post_id}`, "POST", body, "canvas_update", dry_run === true);
|
|
3241
3250
|
return {
|
|
3242
3251
|
content: [
|
|
3243
3252
|
{ type: "text", text: serializeEnvelope(result, "diviops_canvas_update") },
|