@diviops/mcp-server 1.5.75 → 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 +11 -1
- package/dist/index.js +14 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,17 @@ 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
|
|
12
22
|
|
|
13
23
|
Adds explicit tool hints for seven existing onboarding tools. Block validation,
|
|
14
24
|
page and layout reads, variable listing and preset auditing are marked read-only.
|
package/dist/index.js
CHANGED
|
@@ -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)
|
|
@@ -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)
|