@respira/wordpress-mcp-server 7.2.14 → 7.2.16
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;
|
|
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;AAoUzE,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,+EAA+E;IAC/E,OAAO,CAAC,iBAAiB,CAAK;IAC9B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,4BAA4B,CAAU;IAE9D,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;;;;;;;;;;;;;;;;;;OAkBG;YACW,uBAAuB;IA0GrC;;;;;;;;;OASG;IACH,OAAO,CAAC,oBAAoB;IAkB5B;;;;;;;;;;;OA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AyCV"}
|
package/dist/server.js
CHANGED
|
@@ -303,6 +303,15 @@ const TOOLS_WITH_PAGINATION_HINT = {
|
|
|
303
303
|
respira_list_users: 'Pass per_page (default 100, recommend 25) and page args plus a search filter to narrow results.',
|
|
304
304
|
respira_list_media: 'Pass per_page (default 100, recommend 25) and page args plus a mime_type filter to narrow results.',
|
|
305
305
|
respira_extract_builder_content: 'Use respira_get_page_outline first for a row-level summary, or pass node_id to extract just the subtree you care about.',
|
|
306
|
+
// capResponseSize is called with the canonical wordpress_* name, so the
|
|
307
|
+
// extract/read tools need wordpress_* keys too or they fall through to the
|
|
308
|
+
// generic hint. Read tools were missing entirely, which is why a large-page
|
|
309
|
+
// read gave no "use get_page_outline + node_id" guidance. (Jeff, 2026-07-09.)
|
|
310
|
+
wordpress_extract_builder_content: 'Use wordpress_get_page_outline first for a row-level summary, or pass node_id to extract just the subtree you care about.',
|
|
311
|
+
respira_read_page: 'Large page. Call respira_get_page_outline first for a row-level map, then respira_extract_builder_content with a node_id to pull one subtree at a time.',
|
|
312
|
+
wordpress_read_page: 'Large page. Call wordpress_get_page_outline first for a row-level map, then wordpress_extract_builder_content with a node_id to pull one subtree at a time.',
|
|
313
|
+
respira_read_post: 'Large post. Call respira_get_page_outline first for a row-level map, then respira_extract_builder_content with a node_id to pull one subtree at a time.',
|
|
314
|
+
wordpress_read_post: 'Large post. Call wordpress_get_page_outline first for a row-level map, then wordpress_extract_builder_content with a node_id to pull one subtree at a time.',
|
|
306
315
|
respira_list_plugins: 'No pagination arg today. The full plugin list is usually small; consider filing a feature request if your site hits the cap here.',
|
|
307
316
|
};
|
|
308
317
|
export class RespiraWordPressServer {
|
|
@@ -1466,6 +1475,18 @@ Allowlist: css, scss, less, json. PHP / JS theme writes are intentionally out of
|
|
|
1466
1475
|
timeout_ms: error.timeoutMs,
|
|
1467
1476
|
message: error.message,
|
|
1468
1477
|
hint: 'Other tools should continue to work. ' +
|
|
1478
|
+
// For a read on a large page, the timeout is almost
|
|
1479
|
+
// always a SIZE problem wearing a timeout costume: a big
|
|
1480
|
+
// page takes longer to generate/transfer than the
|
|
1481
|
+
// per-request HTTP timeout, so the request aborts before
|
|
1482
|
+
// the response-size cap can return its truncation
|
|
1483
|
+
// envelope. Without this line the user only sees "timeout"
|
|
1484
|
+
// and keeps raising RESPIRA_MAX_TOOL_TIMEOUT_MS or
|
|
1485
|
+
// restarting the client, never learning it was the cap.
|
|
1486
|
+
// (Jeff Imperial, 2026-07-09.)
|
|
1487
|
+
(/read_page|read_post|read_custom_post|extract_builder_content|find_builder_targets|get_builder_info|get_page/.test(String(error.toolName || ''))
|
|
1488
|
+
? 'This was a read on a page or site that may be large. The most likely cause is response SIZE, not a dead server: a big page can exceed the per-request HTTP timeout before the response-size cap returns a truncation envelope, so it surfaces as a plain timeout. Recover by calling respira_get_page_outline first, then respira_extract_builder_content with a node_id to pull one row or subtree at a time (or add a search / per_page filter). '
|
|
1489
|
+
: '') +
|
|
1469
1490
|
'If this operation genuinely needs more time, raise RESPIRA_MAX_TOOL_TIMEOUT_MS. ' +
|
|
1470
1491
|
'For uploads specifically, also see RESPIRA_UPLOAD_TIMEOUT_MS and RESPIRA_MAX_UPLOAD_MB. ' +
|
|
1471
1492
|
'To triangulate which network layer (origin / Cloudflare / Wordfence) is slow, run respira_diagnose_connection — it probes the same site with HEAD/GET/OPTIONS and reports per-layer latency + edge-layer presence. ' +
|