@respira/wordpress-mcp-server 5.2.3 → 5.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/README.md +24 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -139,6 +139,30 @@ Create `~/.respira/config.json`:
|
|
|
139
139
|
|
|
140
140
|
Or run the interactive setup wizard: `npx @respira/wordpress-mcp-server --setup`
|
|
141
141
|
|
|
142
|
+
### Tool Limit? Use `enabledTools`
|
|
143
|
+
|
|
144
|
+
Some MCP clients (Antigravity, etc.) have a hard limit on active tools (often 100). Respira exposes 147 tools by default. To stay under the limit, add `enabledTools` to your config — only those tools will appear in the listing:
|
|
145
|
+
|
|
146
|
+
```json
|
|
147
|
+
{
|
|
148
|
+
"sites": [{ "..." : "..." }],
|
|
149
|
+
"preferences": {
|
|
150
|
+
"enabledTools": [
|
|
151
|
+
"respira_read_page",
|
|
152
|
+
"respira_update_page",
|
|
153
|
+
"respira_list_pages",
|
|
154
|
+
"respira_find_element",
|
|
155
|
+
"respira_update_element",
|
|
156
|
+
"respira_build_page",
|
|
157
|
+
"respira_get_site_context",
|
|
158
|
+
"respira_get_builder_info"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Site management tools (`respira_list_sites`, `respira_switch_site`, `respira_get_active_site`) are always included. Unlisted tools still work if called — the filter only controls what's advertised to the client.
|
|
165
|
+
|
|
142
166
|
**Done.** Restart your AI tool and start editing.
|
|
143
167
|
|
|
144
168
|
---
|
package/dist/index.d.ts
CHANGED
|
@@ -3,14 +3,5 @@
|
|
|
3
3
|
* Respira WordPress MCP Server
|
|
4
4
|
* Entry point
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
* Handle EPIPE (broken pipe) gracefully when the client disconnects.
|
|
8
|
-
* The MCP SDK writes to stdout; when Cursor/Claude/etc closes, writes throw EPIPE.
|
|
9
|
-
*/
|
|
10
|
-
declare function setupEpipeHandler(): void;
|
|
11
|
-
declare const args: string[];
|
|
12
|
-
declare const isSetupCommand: boolean;
|
|
13
|
-
declare const isStdioCommand: boolean;
|
|
14
|
-
declare function startStdioMode(): Promise<void>;
|
|
15
|
-
declare function startMcpServer(): Promise<void>;
|
|
6
|
+
export {};
|
|
16
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;GAGG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;GAGG"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
2
|
/**
|
|
4
3
|
* Respira WordPress MCP Server
|
|
5
4
|
* Entry point
|
|
@@ -19,6 +18,16 @@ function setupEpipeHandler() {
|
|
|
19
18
|
}
|
|
20
19
|
// Handle CLI flags before starting MCP server
|
|
21
20
|
const args = process.argv.slice(2);
|
|
21
|
+
// --version / -v: print version and exit immediately.
|
|
22
|
+
if (args.includes('--version') || args.includes('-v')) {
|
|
23
|
+
const { readFileSync } = await import('fs');
|
|
24
|
+
const { join, dirname } = await import('path');
|
|
25
|
+
const { fileURLToPath } = await import('url');
|
|
26
|
+
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'package.json');
|
|
27
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf-8'));
|
|
28
|
+
console.log(`@respira/wordpress-mcp-server ${pkg.version}`);
|
|
29
|
+
process.exit(0);
|
|
30
|
+
}
|
|
22
31
|
const isSetupCommand = args.includes('--setup') ||
|
|
23
32
|
args.includes('-s') ||
|
|
24
33
|
args.includes('--list') ||
|
|
@@ -67,17 +76,26 @@ async function startStdioMode() {
|
|
|
67
76
|
async function startMcpServer() {
|
|
68
77
|
// Import dependencies only when starting MCP server
|
|
69
78
|
const Sentry = await import('@sentry/node');
|
|
70
|
-
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
|
|
71
79
|
const { RespiraWordPressServer } = await import('./server.js');
|
|
72
80
|
const { loadConfig } = await import('./config.js');
|
|
81
|
+
// Profiling uses native bindings that may not be available on newer Node versions (e.g. 25).
|
|
82
|
+
// Gracefully degrade — Sentry still works for error reporting without profiling.
|
|
83
|
+
let profilingIntegration = null;
|
|
84
|
+
try {
|
|
85
|
+
const { nodeProfilingIntegration } = await import('@sentry/profiling-node');
|
|
86
|
+
profilingIntegration = nodeProfilingIntegration();
|
|
87
|
+
}
|
|
88
|
+
catch {
|
|
89
|
+
// Native profiling bindings unavailable — skip profiling silently.
|
|
90
|
+
}
|
|
73
91
|
// Initialize Sentry with hardcoded DSN
|
|
74
92
|
// All MCP server installations report to this Sentry project
|
|
75
93
|
Sentry.init({
|
|
76
94
|
dsn: 'https://7932b5b04df142fcec3b11a590c86541@o4510381871333376.ingest.de.sentry.io/4510386268209232',
|
|
77
95
|
environment: process.env.NODE_ENV || 'production',
|
|
78
96
|
tracesSampleRate: 0.2,
|
|
79
|
-
profilesSampleRate: 0.2,
|
|
80
|
-
integrations: [
|
|
97
|
+
profilesSampleRate: profilingIntegration ? 0.2 : 0,
|
|
98
|
+
integrations: profilingIntegration ? [profilingIntegration] : [],
|
|
81
99
|
beforeSend(event) {
|
|
82
100
|
// Don't send from local development
|
|
83
101
|
if (process.env.NODE_ENV === 'development') {
|
|
@@ -111,4 +129,5 @@ async function startMcpServer() {
|
|
|
111
129
|
process.exit(1);
|
|
112
130
|
}
|
|
113
131
|
}
|
|
132
|
+
export {};
|
|
114
133
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;GAGG;AAEH;;;GAGG;AACH,SAAS,iBAAiB;IACxB,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,GAA0B,EAAE,EAAE;QAC7D,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;YAC3E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QACD,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,GAAG,CAAC,CAAC;QAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,8CAA8C;AAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAEnC,sDAAsD;AACtD,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACtD,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5C,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;IAC/C,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IACpF,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,C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IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,MAAM,YAAY,GAAG,KAAK,EAAE,OAAO,IAAI,KAAK,EAAE,QAAQ,EAAE,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC;QAC7F,MAAM,UAAU,GAAG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,YAAY,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjE,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC;QAC5C,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC5B,CAAC;QAED,8BAA8B;QAC9B,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;QAE/B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@respira/wordpress-mcp-server",
|
|
3
|
-
"version": "5.2.
|
|
4
|
-
"description": "147 respira_* MCP tools for WordPress. Element-level editing, full page creation, HTML-to-builder conversion, stock images, bulk operations, 27 widget shortcuts. Native support for 11 page builders. wordpress_* aliases still accepted but no longer listed — removed in v6.0.",
|
|
3
|
+
"version": "5.2.5",
|
|
4
|
+
"description": "147 respira_* MCP tools for WordPress. Element-level editing, full page creation, HTML-to-builder conversion, stock images, bulk operations, 27 widget shortcuts. Native support for 11 page builders. enabledTools config for clients with tool limits (Antigravity, etc). wordpress_* aliases still accepted but no longer listed — removed in v6.0.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"wordpress-mcp-server": "./dist/index.js",
|