@diviops/mcp-server 1.5.76 → 1.5.77

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 CHANGED
@@ -8,7 +8,11 @@ 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.76 source candidate
11
+ ## MCP 1.5.77 release note
12
+
13
+ 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
+
15
+ ## MCP 1.5.76 historical release note
12
16
 
13
17
  Adds optional `expected_checksum` to module and Theme Builder layout updates.
14
18
  Pair with Free Agent **1.5.50** and reconnect to refresh capability evidence.
package/dist/index.js CHANGED
@@ -1422,6 +1422,23 @@ registerPluginTool("diviops_custom_css_restore", {
1422
1422
  const result = await wp.requestEnveloped("/custom-css/restore", { method: "POST", body: { snapshot_id, expected_checksum, dry_run: dry_run ?? true }, signal: context?.signal });
1423
1423
  return { content: [{ type: "text", text: serializeEnvelope(result, "diviops_custom_css_restore") }] };
1424
1424
  });
1425
+ registerPluginTool("diviops_component_slot_preview", {
1426
+ description: "Inspect one saved Divi component Slot. Returns its shell and child sources, ordered child modules, and checksums for the page and Divi Library definition. Provide the exact slotId and select an instance_index when the page references the definition more than once.",
1427
+ inputSchema: {
1428
+ page_id: z.number().int().positive(),
1429
+ definition_id: z.number().int().positive(),
1430
+ slot_id: z.string().min(1),
1431
+ instance_index: z.number().int().positive().optional().describe("One-based occurrence of this definition on the page, in document order."),
1432
+ },
1433
+ annotations: { readOnlyHint: true, idempotentHint: true },
1434
+ _meta: { idempotent: "true" },
1435
+ }, async ({ page_id, definition_id, slot_id, instance_index }, context) => {
1436
+ const params = { definition_id: String(definition_id), slot_id };
1437
+ if (instance_index !== undefined)
1438
+ params.instance_index = String(instance_index);
1439
+ const result = await wp.requestEnveloped(`/component/slot-preview/${page_id}`, { params, signal: context?.signal });
1440
+ return { content: [{ type: "text", text: serializeEnvelope(result, "diviops_component_slot_preview") }] };
1441
+ });
1425
1442
  registerPluginTool("diviops_page_settings_get", {
1426
1443
  description: "Read ordinary WordPress page background settings: stored values/presence, native defaults and a settings_checksum. These are not computed browser colors. Requires edit permission. No Theme Builder layout or global Theme Options access.",
1427
1444
  inputSchema: { page_id: z.number().int().positive() },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.76",
3
+ "version": "1.5.77",
4
4
  "description": "MCP server exposing Divi 5 Visual Builder as tools for Claude",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",