@respira/wordpress-mcp-server 7.2.3 → 7.2.5
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/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;AAkQzE,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;IAEpC,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;IAsVvE,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;
|
|
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;AAkQzE,qBAAa,sBAAsB;IACjC,OAAO,CAAC,MAAM,CAAS;IACvB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CAAC,MAAM,CAAC,QAAQ,CAAC,qBAAqB,CAe3C;IAEF;;;;OAIG;IACH,OAAO,CAAC,0BAA0B;YAmCpB,cAAc;IAqG5B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,CAAC,eAAe;YAuCT,gBAAgB;IA22B9B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAwUzB;;OAEG;IACH,OAAO,CAAC,sBAAsB;IA6UxB,GAAG;CAyCV"}
|
package/dist/server.js
CHANGED
|
@@ -732,9 +732,14 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
732
732
|
const apiBase = process.env.RESPIRA_API_BASE || 'https://www.respira.press';
|
|
733
733
|
const url = `${apiBase.replace(/\/+$/, '')}/docs-search?q=${encodeURIComponent(query)}&limit=${limit}`;
|
|
734
734
|
try {
|
|
735
|
+
// Bound the docs fetch (20s) so a slow or unreachable respira.press
|
|
736
|
+
// (a QUIC-hostile network, a proxy, a stalled link) fails fast instead
|
|
737
|
+
// of hanging the tool to the MCP client's multi-minute ceiling.
|
|
738
|
+
// search_docs is a convenience lookup, never worth blocking triage on.
|
|
735
739
|
const response = await fetch(url, {
|
|
736
740
|
method: 'GET',
|
|
737
741
|
headers: { 'User-Agent': `respira-mcp/${MCP_SERVER_VERSION}` },
|
|
742
|
+
signal: AbortSignal.timeout(20_000),
|
|
738
743
|
});
|
|
739
744
|
if (!response.ok) {
|
|
740
745
|
return {
|
|
@@ -2173,6 +2178,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
2173
2178
|
description: 'When editing an original, choose ask, live, or duplicate. Defaults to ask when direct editing is enabled.',
|
|
2174
2179
|
enum: ['ask', 'live', 'duplicate'],
|
|
2175
2180
|
},
|
|
2181
|
+
confirm_live_edit: {
|
|
2182
|
+
type: 'boolean',
|
|
2183
|
+
description: 'Set true together with edit_target:"live" to acknowledge a direct write to the published original. Exposed at the top level so autonomous flows can complete the confirmation_required handshake without polluting the updates object.',
|
|
2184
|
+
},
|
|
2176
2185
|
},
|
|
2177
2186
|
required: ['builder', 'page_id', 'module_identifier', 'updates'],
|
|
2178
2187
|
},
|
|
@@ -2333,6 +2342,10 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
2333
2342
|
description: 'When editing an original, choose ask, live, or duplicate. Defaults to ask when direct editing is enabled.',
|
|
2334
2343
|
enum: ['ask', 'live', 'duplicate'],
|
|
2335
2344
|
},
|
|
2345
|
+
confirm_live_edit: {
|
|
2346
|
+
type: 'boolean',
|
|
2347
|
+
description: 'Set true together with edit_target:"live" to acknowledge a direct write to the published original. Exposed at the top level so autonomous flows can complete the confirmation_required handshake without polluting the operations.',
|
|
2348
|
+
},
|
|
2336
2349
|
},
|
|
2337
2350
|
required: ['builder', 'post_id', 'operations'],
|
|
2338
2351
|
},
|
|
@@ -5028,7 +5041,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
5028
5041
|
return await client.makeResponsive(args.page_id, args.dry_run || false);
|
|
5029
5042
|
case 'wordpress_update_module':
|
|
5030
5043
|
return hoistDroppedStylingWarnings({
|
|
5031
|
-
...(await client.updateModule(args.builder, args.page_id, args.module_identifier, args.updates, args.edit_target)),
|
|
5044
|
+
...(await client.updateModule(args.builder, args.page_id, args.module_identifier, args.updates, args.edit_target, args.confirm_live_edit)),
|
|
5032
5045
|
respira_approvals_url: client.getApprovalsUrl(),
|
|
5033
5046
|
});
|
|
5034
5047
|
case 'wordpress_validate_security':
|
|
@@ -5331,7 +5344,7 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
5331
5344
|
case 'wordpress_end_session':
|
|
5332
5345
|
return await client.callRestV2('POST', '/snapshots/session/end', {});
|
|
5333
5346
|
case 'wordpress_apply_builder_patch':
|
|
5334
|
-
return await client.applyBuilderPatch(args.builder, args.post_id, args.operations, args.include, args.edit_target);
|
|
5347
|
+
return await client.applyBuilderPatch(args.builder, args.post_id, args.operations, args.include, args.edit_target, args.confirm_live_edit);
|
|
5335
5348
|
case 'woocommerce_list_products':
|
|
5336
5349
|
return await client.woocommerceListProducts(args);
|
|
5337
5350
|
case 'woocommerce_get_product':
|