@respira/wordpress-mcp-server 7.6.0 → 7.6.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAqBH,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAsQzE,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,WAAW,CAAgC;IACnD,OAAO,CAAC,KAAK,CAA2C;IACxD,OAAO,CAAC,aAAa,CAAuB;IAC5C,OAAO,CAAC,cAAc,CAAwB;IAC9C,OAAO,CAAC,YAAY,CAA4B;IAChD,8EAA8E;IAC9E,OAAO,CAAC,YAAY,CAA4B;IAChD,8EAA8E;IAC9E,OAAO,CAAC,mBAAmB,CAAS;IACpC,iFAAiF;IACjF,OAAO,CAAC,iBAAiB,CAAK;IAC9B,iFAAiF;IACjF,OAAO,CAAC,mBAAmB,CAAgC;IAE3D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAsB;IAEhE;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAWzB;;;OAGG;IACH,OAAO,CAAC,iBAAiB;gBA4Bb,WAAW,EAAE,mBAAmB,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,EAAE;IAiVvE,OAAO,CAAC,cAAc;IAItB;;;;;;;;;OASG;IACH,OAAO,CAAC,oBAAoB;IAkB5B;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,aAAa;IA4BrB,gEAAgE;IAChE,OAAO,CAAC,aAAa;IAUrB;;;;;;OAMG;YACW,UAAU;IA2CxB;;;;;;;;;;;;;;OAcG;YACW,WAAW;IAiJzB;;;;;;;;;OASG;YACW,kBAAkB;IAiHhC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;YACW,qBAAqB;YAiBrB,kBAA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BAAoB;YAyBd,QAAQ;IAs2FtB;;;;;;OAMG;IACH;;;;;;;;;;;;;oDAagD;IAChD,OAAO,CAAC,mBAAmB,CAAoD;IAC/E,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAU;IAClD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAU;IAC1D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAS;IAC1D;;mDAE+C;IAC/C,OAAO,CAAC,0BAA0B,CAAoC;IAEtE;;;;;;;;OAQG;YACW,0BAA0B;YAyC1B,oBAAoB;YA6CpB,2BAA2B;IAQzC;;;;OAIG;YACW,cAAc;IAQ5B,OAAO,CAAC,mBAAmB;IA2uC3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAe3C;IAEF;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;YAmCpB,cAAc;IA4G5B,oEAAoE;IACpE,OAAO,CAAC,iBAAiB;IAoBzB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,eAAe;YAuCT,gBAAgB;IA+oC9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAwUzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA6UxB,GAAG;CAyCV"}
package/dist/server.js CHANGED
@@ -1981,7 +1981,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
1981
1981
  },
1982
1982
  {
1983
1983
  name: 'wordpress_list_theme_builder_templates',
1984
- description: 'List the Divi Theme Builder global templates on the site (headers, footers, and body layouts). Each entry carries a layout_id you pass to update_theme_builder_template or apply_builder_patch to edit it, its kind (header/footer/body), name, and where it is assigned. Use this to find a global header before editing it (e.g. to build a mega menu). Divi 5 only.',
1984
+ description: 'List the Divi Theme Builder global templates on the site (headers, footers, and body layouts). Each entry carries a layout_id you pass to update_theme_builder_template or apply_builder_patch to edit it, its kind (header/footer/body), name, and where it is assigned. Use this to find a global header before editing it (e.g. to build a mega menu). Works on Divi 4 and Divi 5.',
1985
1985
  inputSchema: {
1986
1986
  type: 'object',
1987
1987
  properties: {},
@@ -1989,7 +1989,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
1989
1989
  },
1990
1990
  {
1991
1991
  name: 'wordpress_create_theme_builder_template',
1992
- description: 'Create a Divi global header, footer, or body Theme Builder template, with optional page assignments. Snapshot-protected (reversible within a session). Pass structure as a Divi 4 shortcode string, or a Divi 5 block/node array. Divi 5 only.',
1992
+ description: 'Create a Divi global header, footer, or body Theme Builder template, with optional page assignments. Snapshot-protected (reversible within a session). Pass structure as a Divi 4 shortcode string, or a Divi 5 block/node array. Works on Divi 4 and Divi 5.',
1993
1993
  inputSchema: {
1994
1994
  type: 'object',
1995
1995
  properties: {
@@ -2006,7 +2006,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
2006
2006
  },
2007
2007
  {
2008
2008
  name: 'wordpress_update_theme_builder_template',
2009
- description: 'Replace the content of an existing Divi Theme Builder layout (a global header, footer, or body) by its layout_id (from list_theme_builder_templates). Snapshot-protected. For a targeted single-module edit, use apply_builder_patch on the same layout_id instead. Divi 5 only.',
2009
+ description: 'Replace the content of an existing Divi Theme Builder layout (a global header, footer, or body) by its layout_id (from list_theme_builder_templates). Snapshot-protected. For a targeted single-module edit, use apply_builder_patch on the same layout_id instead. Works on Divi 4 and Divi 5.',
2010
2010
  inputSchema: {
2011
2011
  type: 'object',
2012
2012
  properties: {
@@ -2016,6 +2016,24 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
2016
2016
  required: ['layout_id', 'structure'],
2017
2017
  },
2018
2018
  },
2019
+ {
2020
+ name: 'wordpress_build_mega_menu',
2021
+ description: 'Build a complete Divi mega menu in one call. Creates (or reuses) a nav menu, adds a top-level item carrying Divi\'s "mega-menu" CSS class, turns each column into a child item and each link into a grandchild, and optionally assigns the menu to a theme location. Divi then renders the top item as a full-width mega menu. Works on Divi 4 and Divi 5.',
2022
+ inputSchema: {
2023
+ type: 'object',
2024
+ properties: {
2025
+ menu_name: { type: 'string', description: 'Name of the menu to create or reuse.' },
2026
+ top_label: { type: 'string', description: 'Label of the top-level mega-menu item (e.g. "Products").' },
2027
+ top_url: { type: 'string', description: 'Optional URL for the top item. Defaults to "#".' },
2028
+ columns: {
2029
+ type: 'array',
2030
+ description: 'The mega-menu columns: [ { "label": "Plugins", "url": "#", "links": [ { "label": "Respira", "url": "/respira" } ] } ].',
2031
+ },
2032
+ location: { type: 'string', description: 'Optional theme menu location slug to assign, e.g. "primary-menu".' },
2033
+ },
2034
+ required: ['menu_name', 'top_label', 'columns'],
2035
+ },
2036
+ },
2019
2037
  {
2020
2038
  name: 'wordpress_update_post',
2021
2039
  description: 'Update a post. Supports author reassignment, taxonomy terms (categories/tags/custom), and featured media. When direct editing is enabled and you target an original post, Respira returns a confirmation_required preflight by default so you can choose live/original or duplicate.',
@@ -6210,6 +6228,14 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
6210
6228
  layout_id: args.layout_id,
6211
6229
  structure: args.structure,
6212
6230
  });
6231
+ case 'wordpress_build_mega_menu':
6232
+ return await client.buildMegaMenu({
6233
+ menu_name: args.menu_name,
6234
+ top_label: args.top_label,
6235
+ top_url: args.top_url ?? undefined,
6236
+ columns: args.columns,
6237
+ location: args.location ?? undefined,
6238
+ });
6213
6239
  case 'wordpress_update_post': {
6214
6240
  const approvalsUrl = client.getApprovalsUrl();
6215
6241
  const post = await client.updatePost(args.id, args);