@respira/wordpress-mcp-server 8.3.26 → 8.3.27
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/CHANGELOG.md +10 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +27 -3
- package/dist/server.js.map +1 -1
- package/dist/wordpress-client.d.ts +3 -3
- package/dist/wordpress-client.d.ts.map +1 -1
- package/dist/wordpress-client.js +8 -3
- package/dist/wordpress-client.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to Respira WordPress MCP Server will be documented in this f
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [8.3.27] - 2026-09-18
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **A write can name the page version it was based on.** update_page, update_post,
|
|
13
|
+
update_element, update_module, inject_builder_content and apply_builder_patch take
|
|
14
|
+
`expected_version`. With plugin 9.0.3 every read and write returns the page's
|
|
15
|
+
`content_version`; send it back and the write is refused with respira_version_conflict,
|
|
16
|
+
nothing written, if the page changed since. Leave it out and nothing changes.
|
|
17
|
+
|
|
8
18
|
## [8.3.26] - 2026-09-17
|
|
9
19
|
|
|
10
20
|
### Added
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAoBH,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,kBAAkB,CAAC;AAwCzE,MAAM,MAAM,eAAe,GAAG;IAC5B,0EAA0E;IAC1E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,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ACH,OAAO,CAAC,yBAAyB;IA+BjC,OAAO,CAAC,eAAe;IAmBvB,OAAO,CAAC,aAAa;YAmVP,kBAAkB;YAiDlB,yBAAyB;IAUvC;;;OAGG;IACH,OAAO,CAAC,oBAAoB;YAyBd,QAAQ;IAulKtB;;;;;;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;IAylE3B;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAe3C;IAEF;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;YAmCpB,cAAc;IA8H5B,oEAAoE;IACpE,OAAO,CAAC,iBAAiB;IAoBzB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,eAAe;YA+DT,gBAAgB;IA2kD9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAuhBzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IAkWxB,GAAG;CA+CV"}
|
package/dist/server.js
CHANGED
|
@@ -2636,6 +2636,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
2636
2636
|
inputSchema: {
|
|
2637
2637
|
type: 'object',
|
|
2638
2638
|
properties: {
|
|
2639
|
+
expected_version: {
|
|
2640
|
+
type: 'string',
|
|
2641
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
2642
|
+
},
|
|
2639
2643
|
id: {
|
|
2640
2644
|
type: 'number',
|
|
2641
2645
|
description: 'Page ID',
|
|
@@ -3037,6 +3041,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
3037
3041
|
inputSchema: {
|
|
3038
3042
|
type: 'object',
|
|
3039
3043
|
properties: {
|
|
3044
|
+
expected_version: {
|
|
3045
|
+
type: 'string',
|
|
3046
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
3047
|
+
},
|
|
3040
3048
|
id: {
|
|
3041
3049
|
type: 'number',
|
|
3042
3050
|
description: 'Post ID',
|
|
@@ -3361,6 +3369,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
3361
3369
|
inputSchema: {
|
|
3362
3370
|
type: 'object',
|
|
3363
3371
|
properties: {
|
|
3372
|
+
expected_version: {
|
|
3373
|
+
type: 'string',
|
|
3374
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
3375
|
+
},
|
|
3364
3376
|
builder: {
|
|
3365
3377
|
type: 'string',
|
|
3366
3378
|
description: 'Builder identifier. Use exactly: gutenberg, divi, elementor, bricks, beaver, oxygen, breakdance, brizy, thrive, visual-composer, wpbakery, flatsome, spectra, kadence, generateblocks, greenshift.',
|
|
@@ -3440,6 +3452,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
3440
3452
|
inputSchema: {
|
|
3441
3453
|
type: 'object',
|
|
3442
3454
|
properties: {
|
|
3455
|
+
expected_version: {
|
|
3456
|
+
type: 'string',
|
|
3457
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
3458
|
+
},
|
|
3443
3459
|
builder: {
|
|
3444
3460
|
type: 'string',
|
|
3445
3461
|
description: 'Builder name. Use exactly: gutenberg, divi, elementor, bricks, beaver, oxygen, breakdance, brizy, thrive, visual-composer, wpbakery, flatsome, spectra, kadence, generateblocks, greenshift.',
|
|
@@ -4570,6 +4586,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
4570
4586
|
inputSchema: {
|
|
4571
4587
|
type: 'object',
|
|
4572
4588
|
properties: {
|
|
4589
|
+
expected_version: {
|
|
4590
|
+
type: 'string',
|
|
4591
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
4592
|
+
},
|
|
4573
4593
|
builder: {
|
|
4574
4594
|
type: 'string',
|
|
4575
4595
|
description: 'Builder slug',
|
|
@@ -10155,14 +10175,14 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
10155
10175
|
return await client.getBuilderInlineSchemas(args.builder, args.types);
|
|
10156
10176
|
case 'wordpress_inject_builder_content':
|
|
10157
10177
|
return hoistDroppedStylingWarnings({
|
|
10158
|
-
...(await client.injectBuilderContent(args.builder, args.page_id, args.content, args.divi_version, args.edit_target, args.mode, args.confirm_replace)),
|
|
10178
|
+
...(await client.injectBuilderContent(args.builder, args.page_id, args.content, args.divi_version, args.edit_target, args.mode, args.confirm_replace, args.expected_version)),
|
|
10159
10179
|
respira_approvals_url: client.getApprovalsUrl(),
|
|
10160
10180
|
});
|
|
10161
10181
|
case 'wordpress_make_responsive':
|
|
10162
10182
|
return await client.makeResponsive(args.page_id, args.dry_run || false);
|
|
10163
10183
|
case 'wordpress_update_module':
|
|
10164
10184
|
return hoistDroppedStylingWarnings({
|
|
10165
|
-
...(await client.updateModule(args.builder, args.page_id, args.module_identifier, args.updates, args.edit_target)),
|
|
10185
|
+
...(await client.updateModule(args.builder, args.page_id, args.module_identifier, args.updates, args.edit_target, args.expected_version)),
|
|
10166
10186
|
respira_approvals_url: client.getApprovalsUrl(),
|
|
10167
10187
|
});
|
|
10168
10188
|
case 'wordpress_validate_security':
|
|
@@ -10645,7 +10665,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
10645
10665
|
case 'wordpress_get_design_apply_reports':
|
|
10646
10666
|
return await client.callRestV2('GET', '/design-direction/apply-reports', args.direction_id !== undefined ? { direction_id: args.direction_id } : undefined);
|
|
10647
10667
|
case 'wordpress_apply_builder_patch':
|
|
10648
|
-
return await client.applyBuilderPatch(args.builder, args.post_id, args.operations, args.include, args.edit_target);
|
|
10668
|
+
return await client.applyBuilderPatch(args.builder, args.post_id, args.operations, args.include, args.edit_target, args.expected_version);
|
|
10649
10669
|
case 'woocommerce_list_products':
|
|
10650
10670
|
return await client.woocommerceListProducts(args);
|
|
10651
10671
|
case 'woocommerce_get_product':
|
|
@@ -11178,6 +11198,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
11178
11198
|
inputSchema: {
|
|
11179
11199
|
type: 'object',
|
|
11180
11200
|
properties: {
|
|
11201
|
+
expected_version: {
|
|
11202
|
+
type: 'string',
|
|
11203
|
+
description: "Optional. The content_version from your last read or write of this page. The write is refused with respira_version_conflict (409, nothing written) if the page changed since, e.g. another agent or an editor saved it. Read again, reapply your change, and retry with the new content_version.",
|
|
11204
|
+
},
|
|
11181
11205
|
post_id: { type: 'number', description: 'Page/post ID' },
|
|
11182
11206
|
identifier_type: {
|
|
11183
11207
|
type: 'string',
|