@diviops/mcp-server 1.5.81 → 1.5.82

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
@@ -520,6 +520,10 @@ Common quick fixes — full reference in [troubleshooting.md](../docs/troublesho
520
520
  - For plugin and skill updates shipped alongside the server, see the [public distribution releases](https://github.com/oaris-dev/diviops/releases).
521
521
  - The [archive through MCP 1.5.77](https://github.com/oaris-dev/diviops/blob/v1.5.95/diviops-server/README.md#mcp-1577-release-note) preserves the original version notes and their qualification limits. The 1.5.67 note refers to the [WP-CLI command tiers](https://github.com/oaris-dev/diviops/blob/main/SETUP.md#wp-cli-security).
522
522
 
523
+ ### MCP 1.5.82 release note
524
+
525
+ Cross-site header and footer transfer guidance now tells you how to supply menu names from the source site and choose a destination menu when a match is unclear.
526
+
523
527
  ### MCP 1.5.81 release note
524
528
 
525
529
  Pair with DiviOps Agent 1.5.53 to check FluentCart activation on Free sites with `diviops_meta_info`. In `plugins.fluent_cart`, read `activation_known` before interpreting `active`. When `activation_known` is false, the server could not confirm activation.
@@ -48,7 +48,7 @@ export function planMenus(source, target) {
48
48
  if (origins.length !== 1 || !origin?.name || matches.length !== 1 ||
49
49
  ![origin, matches[0]].every(menu => Number.isSafeInteger(menu.id) && menu.id > 0 &&
50
50
  typeof menu.name === "string" && typeof menu.slug === "string" && /^[a-f0-9]{64}$/.test(menu.digest))) {
51
- blockers.push({ code: "menu_mapping_unverified", message: `Cannot resolve ${ref.module} menu ${ref.selection ?? "(unsupported selection)"}. Inspect current menu names on both sites or provide an explicit destination for this source ID.` });
51
+ blockers.push({ code: "menu_mapping_unverified", message: `Cannot resolve ${ref.module} menu ${ref.selection ?? "(unsupported selection)"}. Inspect current menu names on both sites or provide an explicit destination for this source ID. For an explicit menu ID, collect target context again with source_menu_names from the source export's menus. If the name is missing or has zero or multiple destination matches, verify the source menu and export again with explicit menu_targets. Pass those destination IDs as target_menu_ids when collecting target context. If the source selection is unsupported, stop and inspect the selector.` });
52
52
  continue;
53
53
  }
54
54
  mappings.push({ module: ref.module, source: origin, target: matches[0], match: chosen === undefined ? "unique_name" : "operator" });
package/dist/index.js CHANGED
@@ -2786,7 +2786,7 @@ function registerCrossEnvEvidenceTools() {
2786
2786
  .optional()
2787
2787
  .default("tb_header_layout")
2788
2788
  .describe(`Destination kind. Existing ${layoutLabel} layout evidence is supported.${staffNote}`),
2789
- source_menu_names: z.array(z.string()).optional().describe("Menu names from the source export; inventories all matching destination menus."),
2789
+ source_menu_names: z.array(z.string()).optional().describe("Required when a source header or footer selects an explicit menu. Pass the names from the source export's menus to inventory all matching destination menus. An absent menu ID or empty desktop value uses the destination's primary menu location."),
2790
2790
  target_menu_ids: z.array(z.number().int().positive()).optional().describe("Explicit destination IDs from the source export menu_targets."),
2791
2791
  source_asset_hints: z
2792
2792
  .array(z.string())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diviops/mcp-server",
3
- "version": "1.5.81",
3
+ "version": "1.5.82",
4
4
  "description": "MCP server for Divi 5 on WordPress. List pages, inspect presets and edit native Divi modules through the DiviOps Agent plugin.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",