@diviops/mcp-server 1.5.74 → 1.5.76
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 +32 -3
- package/dist/index.js +21 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,36 @@ 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.76 source candidate
|
|
12
|
+
|
|
13
|
+
Adds optional `expected_checksum` to module and Theme Builder layout updates.
|
|
14
|
+
Pair with Free Agent **1.5.50** and reconnect to refresh capability evidence.
|
|
15
|
+
MCP refuses guarded requests before dispatch when the required Agent capability
|
|
16
|
+
is absent. Omitting the checksum retains the legacy contract. This is optimistic compare-before-write, not an
|
|
17
|
+
atomic lock. A concurrent edit after the final comparison can still race.
|
|
18
|
+
Existing permissions, validation, backup, recovery and client qualification
|
|
19
|
+
limits remain unchanged. Publication and installation are separate steps.
|
|
20
|
+
|
|
21
|
+
## MCP 1.5.75 historical release note
|
|
22
|
+
|
|
23
|
+
Adds explicit tool hints for seven existing onboarding tools. Block validation,
|
|
24
|
+
page and layout reads, variable listing and preset auditing are marked read-only.
|
|
25
|
+
Page creation is additive but mutating, including when publishing is requested;
|
|
26
|
+
trash is destructive, including permanent deletion. Existing idempotency hints,
|
|
27
|
+
inputs, handlers and capability checks are unchanged. Dry-run inputs do not
|
|
28
|
+
reclassify a write tool as read-only.
|
|
29
|
+
|
|
30
|
+
Hints describe tool behavior; they do not grant permission or guarantee that a
|
|
31
|
+
client will run without approval. No tool is added and no provider version gate
|
|
32
|
+
is changed. The planned onboarding bundle pairs this candidate with Free Agent
|
|
33
|
+
**1.5.48** and public builder companion **1.4.14**, without introducing a shared
|
|
34
|
+
version floor. Reconnect after a supported MCP update to refresh its tool catalog.
|
|
35
|
+
|
|
36
|
+
Packaging and client verification remain separate from publication. Earlier
|
|
37
|
+
Codex verification used MCP 1.5.74 with explicit tool permissions; it does not
|
|
38
|
+
qualify this candidate or default client approval behavior.
|
|
39
|
+
|
|
40
|
+
## MCP 1.5.74 historical release note
|
|
12
41
|
|
|
13
42
|
Adds the Free `diviops_seo_storage_inspect` tool for four literal Rank Math
|
|
14
43
|
storage keys on one editable page. Pair with Free Agent **1.5.47**, then
|
|
@@ -25,8 +54,8 @@ SCF and TSF behavior is unchanged; Pro is optional and unchanged.
|
|
|
25
54
|
|
|
26
55
|
The merged inspector passed bounded native checks with Rank Math 1.0.280 on
|
|
27
56
|
WordPress 7.1, PHP 8.3.35 and Divi 5.13.1. That feature result does not qualify
|
|
28
|
-
arbitrary future versions
|
|
29
|
-
|
|
57
|
+
arbitrary future versions. Feature verification, exact-package qualification
|
|
58
|
+
and publication are separate evidence.
|
|
30
59
|
|
|
31
60
|
## MCP 1.5.73 historical release note
|
|
32
61
|
|
package/dist/index.js
CHANGED
|
@@ -595,7 +595,7 @@ registerPluginTool("diviops_page_get", {
|
|
|
595
595
|
offset: z.number().int().min(0).max(Number.MAX_SAFE_INTEGER).optional().describe("Byte offset for bounded mode; defaults to zero. Use the returned next_offset."),
|
|
596
596
|
expected_checksum: z.string().regex(/^sha256:[a-f0-9]{64}$/).optional().describe("Required for nonzero bounded offsets; the exact initial full-page content_checksum."),
|
|
597
597
|
},
|
|
598
|
-
annotations: { idempotentHint: true },
|
|
598
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
599
599
|
_meta: { idempotent: "true" },
|
|
600
600
|
}, async ({ page_id, bounded, offset, expected_checksum }) => {
|
|
601
601
|
if (bounded || offset !== undefined || expected_checksum !== undefined) {
|
|
@@ -638,7 +638,7 @@ registerPluginTool("diviops_page_get_layout", {
|
|
|
638
638
|
.default(false)
|
|
639
639
|
.describe("Include full block attrs and raw content (default: false for slim mode)"),
|
|
640
640
|
},
|
|
641
|
-
annotations: { idempotentHint: true },
|
|
641
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
642
642
|
_meta: { idempotent: "true" },
|
|
643
643
|
}, async ({ page_id, full }) => {
|
|
644
644
|
const result = await wp.requestEnveloped(`/page/get-layout/${page_id}`, {
|
|
@@ -1559,7 +1559,7 @@ registerPluginTool("diviops_validate_blocks", {
|
|
|
1559
1559
|
.optional()
|
|
1560
1560
|
.describe("WordPress post/page ID to read post_content from the DB. Requires edit_post capability on the page. Provide exactly one of {content, page_id}."),
|
|
1561
1561
|
},
|
|
1562
|
-
annotations: { idempotentHint: true },
|
|
1562
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
1563
1563
|
_meta: { idempotent: "true" },
|
|
1564
1564
|
}, async ({ content, page_id }) => {
|
|
1565
1565
|
if (page_id !== undefined) {
|
|
@@ -1773,6 +1773,7 @@ registerPluginTool("diviops_module_update", {
|
|
|
1773
1773
|
DRY_RUN_DESC_SUFFIX,
|
|
1774
1774
|
inputSchema: {
|
|
1775
1775
|
page_id: z.number().describe("WordPress post/page ID"),
|
|
1776
|
+
expected_checksum: z.string().length(71).regex(/^sha256:[a-f0-9]{64}$/).optional().describe("Optional exact owning post_content checksum from diviops_page_get. Checked on preview/apply; drift is refused. Optimistic comparison, not an atomic lock. Omit for legacy writes."),
|
|
1776
1777
|
label: z
|
|
1777
1778
|
.string()
|
|
1778
1779
|
.optional()
|
|
@@ -1801,7 +1802,10 @@ registerPluginTool("diviops_module_update", {
|
|
|
1801
1802
|
annotations: { idempotentHint: false },
|
|
1802
1803
|
_meta: { idempotent: "conditional" },
|
|
1803
1804
|
}, async (args, context) => {
|
|
1804
|
-
const { page_id, label, match_text, auto_index, occurrence, attrs, dry_run, backup } = args;
|
|
1805
|
+
const { page_id, label, match_text, auto_index, occurrence, attrs, dry_run, backup, expected_checksum } = args;
|
|
1806
|
+
const checksumGate = conditionalCapabilityError("diviops_module_update", "module_update_expected_checksum", expected_checksum !== undefined, "Update the Agent to support guarded writes; do not drop expected_checksum to bypass this refusal.");
|
|
1807
|
+
if (checksumGate)
|
|
1808
|
+
return checksumGate;
|
|
1805
1809
|
const backupGate = backupCapabilityError("diviops_module_update", backup);
|
|
1806
1810
|
if (backupGate)
|
|
1807
1811
|
return backupGate;
|
|
@@ -1811,6 +1815,8 @@ registerPluginTool("diviops_module_update", {
|
|
|
1811
1815
|
if (isolationGate)
|
|
1812
1816
|
return isolationGate;
|
|
1813
1817
|
const body = { attrs };
|
|
1818
|
+
if (expected_checksum !== undefined)
|
|
1819
|
+
body.expected_checksum = expected_checksum;
|
|
1814
1820
|
if (auto_index)
|
|
1815
1821
|
body.auto_index = auto_index;
|
|
1816
1822
|
if (label)
|
|
@@ -2042,7 +2048,7 @@ registerPluginTool("diviops_page_create", {
|
|
|
2042
2048
|
.describe("Post status"),
|
|
2043
2049
|
dry_run: DRY_RUN_FIELD,
|
|
2044
2050
|
},
|
|
2045
|
-
annotations: { idempotentHint: false },
|
|
2051
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },
|
|
2046
2052
|
_meta: { idempotent: "false" },
|
|
2047
2053
|
}, async ({ title, content, status, dry_run }) => {
|
|
2048
2054
|
const isolationGate = writerIsolationErrorResult("diviops_page_create", {
|
|
@@ -2075,7 +2081,7 @@ registerPluginTool("diviops_page_trash", {
|
|
|
2075
2081
|
.default(false)
|
|
2076
2082
|
.describe("When true, return the change plan without mutating state."),
|
|
2077
2083
|
},
|
|
2078
|
-
annotations: { idempotentHint: true },
|
|
2084
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true },
|
|
2079
2085
|
_meta: { idempotent: "true" },
|
|
2080
2086
|
}, async ({ post_id, force, dry_run }) => {
|
|
2081
2087
|
const result = await wp.requestEnveloped(`/page/trash/${post_id}`, {
|
|
@@ -2130,7 +2136,7 @@ registerPluginTool("diviops_page_update_status", {
|
|
|
2130
2136
|
// ── Preset Tools ────────────────────────────────────────────────────
|
|
2131
2137
|
registerPluginTool("diviops_preset_audit", {
|
|
2132
2138
|
description: "Audit all Divi presets (module + group). Each entry reports `block_ref_count` (page-content refs via modulePreset / groupPreset block markup), `group_ref_count` (in-registry chain refs from other presets — module presets via top-level `groupPresets.<slot>.presetId`, group presets via `attrs.groupPreset.<slot>.presetId`), and `referenced` (true if either > 0). Group presets that are chain-referenced also expose `referenced_by_presets` (UUIDs of the presets that wire them in — typically module presets, but type-agnostic). Use this before deleting — orphan-cleanup based only on page refs would silently wipe load-bearing chain-wired group presets (font, border, box-shadow, spacing, button). Also reports `orphan_default_pointers`: per-bucket `default` pointers that reference a UUID no longer present in `items[]` (caused by past unsafe deletes). Render-safe but blocks Divi's lazy recreate-on-VB-use path; clear via diviops_preset_set_default with unset=true on the affected module/group. Returns the standardized envelope { ok, data?, error: { code, message, hint? } }.",
|
|
2133
|
-
annotations: { idempotentHint: true },
|
|
2139
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
2134
2140
|
_meta: { idempotent: "true" },
|
|
2135
2141
|
}, async () => {
|
|
2136
2142
|
const result = await wp.requestEnveloped("/preset/audit");
|
|
@@ -2861,13 +2867,17 @@ registerPluginTool("diviops_tb_layout_update", {
|
|
|
2861
2867
|
DRY_RUN_DESC_SUFFIX,
|
|
2862
2868
|
inputSchema: {
|
|
2863
2869
|
layout_id: z.number().describe("Layout post ID to update"),
|
|
2870
|
+
expected_checksum: z.string().length(71).regex(/^sha256:[a-f0-9]{64}$/).optional().describe("Optional exact owning post_content checksum from diviops_page_get with the layout ID. Checked on preview/apply; drift is refused. Optimistic comparison, not an atomic lock. Omit for legacy writes."),
|
|
2864
2871
|
content: z.string().describe("New block markup content"),
|
|
2865
2872
|
dry_run: DRY_RUN_FIELD,
|
|
2866
2873
|
backup: BACKUP_FIELD,
|
|
2867
2874
|
},
|
|
2868
2875
|
annotations: { idempotentHint: false },
|
|
2869
2876
|
_meta: { idempotent: "conditional" },
|
|
2870
|
-
}, async ({ layout_id, content, dry_run, backup }) => {
|
|
2877
|
+
}, async ({ layout_id, content, dry_run, backup, expected_checksum }) => {
|
|
2878
|
+
const checksumGate = conditionalCapabilityError("diviops_tb_layout_update", "tb_layout_update_expected_checksum", expected_checksum !== undefined, "Update the Agent to support guarded writes; do not drop expected_checksum to bypass this refusal.");
|
|
2879
|
+
if (checksumGate)
|
|
2880
|
+
return checksumGate;
|
|
2871
2881
|
const backupGate = backupCapabilityError("diviops_tb_layout_update", backup);
|
|
2872
2882
|
if (backupGate)
|
|
2873
2883
|
return backupGate;
|
|
@@ -2875,6 +2885,8 @@ registerPluginTool("diviops_tb_layout_update", {
|
|
|
2875
2885
|
if (isolationGate)
|
|
2876
2886
|
return isolationGate;
|
|
2877
2887
|
const body = { content };
|
|
2888
|
+
if (expected_checksum !== undefined)
|
|
2889
|
+
body.expected_checksum = expected_checksum;
|
|
2878
2890
|
if (dry_run)
|
|
2879
2891
|
body.dry_run = true;
|
|
2880
2892
|
if (backup)
|
|
@@ -3918,7 +3930,7 @@ registerPluginTool("diviops_variable_list", {
|
|
|
3918
3930
|
.optional()
|
|
3919
3931
|
.describe('Filter by stored ID prefix only. Does not match labels; for semantic names such as "oa-*" labels, list by type and filter returned labels client-side.'),
|
|
3920
3932
|
},
|
|
3921
|
-
annotations: { idempotentHint: true },
|
|
3933
|
+
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
3922
3934
|
_meta: { idempotent: "true" },
|
|
3923
3935
|
}, async (args, context) => {
|
|
3924
3936
|
const { type, prefix } = args;
|