@wplaunchify/ml-mcp-server 2.7.16 → 2.7.18
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/launch.mjs +28 -0
- package/package.json +4 -2
package/launch.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* MCP entrypoint: run ml-mcp-server-core from this package (no second npx, no registry wait).
|
|
4
|
+
* Claude Desktop / Cursor spawn: npx -y --prefer-online @wplaunchify/ml-mcp-server@latest
|
|
5
|
+
* npx installs the package; this script starts build/server.js with inherited stdio.
|
|
6
|
+
*/
|
|
7
|
+
import { spawn } from 'node:child_process';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
|
+
import { dirname, join } from 'path';
|
|
10
|
+
|
|
11
|
+
const core = join(dirname(fileURLToPath(import.meta.url)), 'build', 'server.js');
|
|
12
|
+
|
|
13
|
+
const child = spawn(process.execPath, [core], {
|
|
14
|
+
stdio: 'inherit',
|
|
15
|
+
env: process.env,
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
child.on('error', (err) => {
|
|
19
|
+
console.error('[ml-mcp-server] Could not start:', err.message);
|
|
20
|
+
process.exit(1);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
child.on('exit', (code, signal) => {
|
|
24
|
+
if (signal) {
|
|
25
|
+
process.exit(1);
|
|
26
|
+
}
|
|
27
|
+
process.exit(code ?? 0);
|
|
28
|
+
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wplaunchify/ml-mcp-server",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.18",
|
|
4
4
|
"description": "Universal MCP Server for WordPress + Fluent Suite (Community, CRM, Cart) + FluentMCP Pro. Comprehensive tools for AI-powered WordPress management via Claude, Cursor, and other MCP clients.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/server.js",
|
|
7
7
|
"exports": "./build/server.js",
|
|
8
8
|
"bin": {
|
|
9
|
-
"ml-mcp-server": "./
|
|
9
|
+
"ml-mcp-server": "./launch.mjs",
|
|
10
|
+
"ml-mcp-server-core": "./build/server.js"
|
|
10
11
|
},
|
|
11
12
|
"engines": {
|
|
12
13
|
"node": ">=18.0.0"
|
|
@@ -63,6 +64,7 @@
|
|
|
63
64
|
},
|
|
64
65
|
"files": [
|
|
65
66
|
"build",
|
|
67
|
+
"launch.mjs",
|
|
66
68
|
"README.md",
|
|
67
69
|
"LICENSE"
|
|
68
70
|
]
|