mcp-wordpress 2.6.2 → 2.6.4
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 +1 -7
- package/package.json +4 -4
- package/src/dxt-entry.cjs +0 -68
package/README.md
CHANGED
|
@@ -30,13 +30,7 @@ Manage WordPress sites with natural language through AI tools like Claude Deskto
|
|
|
30
30
|
[](https://github.com/docdyhr/mcp-wordpress/blob/main/LICENSE)
|
|
31
31
|
[](https://smithery.ai/server/@docdyhr/mcp-wordpress)
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### 🎉 **NEW:** Multi-Site DXT Extension Now Available!
|
|
36
|
-
|
|
37
|
-
> 🆕 **Claude Desktop Integration** • ✨ **59 WordPress Tools** • 🔧 **Production Ready** • 📦 **Updated August 2025**
|
|
38
|
-
|
|
39
|
-
---
|
|
33
|
+
### 🎉 **NEW:** Multi-Site DXT Extension Now Available!
|
|
40
34
|
|
|
41
35
|
</div>
|
|
42
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcp-wordpress",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.4",
|
|
4
4
|
"description": "Comprehensive Model Context Protocol server for WordPress management with 59 tools, performance monitoring, intelligent caching, auto-generated documentation, Docker support, TypeScript, and production-ready authentication - CI/CD test",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -178,12 +178,12 @@
|
|
|
178
178
|
"eslint-config-prettier": "^10.1.8",
|
|
179
179
|
"eslint-plugin-node": "^11.1.0",
|
|
180
180
|
"fast-check": "^4.2.0",
|
|
181
|
-
"fs-extra": "^11.3.
|
|
181
|
+
"fs-extra": "^11.3.1",
|
|
182
182
|
"husky": "^9.1.7",
|
|
183
|
-
"lint-staged": "^16.1.
|
|
183
|
+
"lint-staged": "^16.1.5",
|
|
184
184
|
"markdownlint-cli": "^0.45.0",
|
|
185
185
|
"mcp-evals": "^2.0.1",
|
|
186
|
-
"nock": "^14.0.
|
|
186
|
+
"nock": "^14.0.10",
|
|
187
187
|
"node-fetch": "^3.3.2",
|
|
188
188
|
"open": "^10.2.0",
|
|
189
189
|
"prettier": "^3.6.2",
|
package/src/dxt-entry.cjs
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* CommonJS entry point for DXT package - ensures compatibility with Claude Desktop
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Load AJV patch before any other modules
|
|
8
|
-
try {
|
|
9
|
-
require('./ajv-patch.js');
|
|
10
|
-
} catch (error) {
|
|
11
|
-
// Use stderr to avoid interfering with STDIO
|
|
12
|
-
process.stderr.write(`[DXT] AJV patch failed to load: ${error.message}\n`);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Use stderr for debug output to avoid interfering with STDIO
|
|
16
|
-
const debug = (message) => {
|
|
17
|
-
if (process.env.DEBUG || process.env.NODE_ENV === 'development') {
|
|
18
|
-
process.stderr.write(`[DXT] ${message}\n`);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
debug("CommonJS entry point starting...");
|
|
23
|
-
debug(`Current working directory: ${process.cwd()}`);
|
|
24
|
-
debug(`__dirname: ${__dirname}`);
|
|
25
|
-
debug(`Node version: ${process.version}`);
|
|
26
|
-
|
|
27
|
-
// Set DXT mode environment variable
|
|
28
|
-
process.env.NODE_ENV = "dxt";
|
|
29
|
-
|
|
30
|
-
debug("Environment variables passed from DXT:");
|
|
31
|
-
debug(` WORDPRESS_SITE_URL: ${process.env.WORDPRESS_SITE_URL ? 'SET' : 'NOT SET'}`);
|
|
32
|
-
debug(` WORDPRESS_USERNAME: ${process.env.WORDPRESS_USERNAME ? 'SET' : 'NOT SET'}`);
|
|
33
|
-
debug(` WORDPRESS_APP_PASSWORD: ${process.env.WORDPRESS_APP_PASSWORD ? 'SET' : 'NOT SET'}`);
|
|
34
|
-
|
|
35
|
-
// Import and run the main server using dynamic import
|
|
36
|
-
async function startDXTServer() {
|
|
37
|
-
try {
|
|
38
|
-
debug("Attempting to import ES module...");
|
|
39
|
-
const { MCPWordPressServer } = await import("./index.js");
|
|
40
|
-
|
|
41
|
-
debug("Creating MCPWordPressServer instance from DXT entry point...");
|
|
42
|
-
const server = new MCPWordPressServer();
|
|
43
|
-
|
|
44
|
-
debug("Starting server (DXT mode - fast startup)...");
|
|
45
|
-
await server.run();
|
|
46
|
-
|
|
47
|
-
// Handle graceful shutdown
|
|
48
|
-
const shutdown = async () => {
|
|
49
|
-
debug("Received shutdown signal in DXT entry point");
|
|
50
|
-
await server.shutdown();
|
|
51
|
-
process.exit(0);
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
process.on("SIGINT", shutdown);
|
|
55
|
-
process.on("SIGTERM", shutdown);
|
|
56
|
-
|
|
57
|
-
} catch (error) {
|
|
58
|
-
process.stderr.write(`[DXT] FATAL: Server failed to start: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
59
|
-
if (error instanceof Error && error.stack) {
|
|
60
|
-
process.stderr.write(`[DXT] Stack trace: ${error.stack}\n`);
|
|
61
|
-
}
|
|
62
|
-
process.exit(1);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Always run when loaded as DXT entry point
|
|
67
|
-
debug("Calling startDXTServer...");
|
|
68
|
-
startDXTServer();
|