@wplaunchify/ml-mcp-server 2.5.10 → 2.6.0

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.
@@ -332,6 +332,23 @@ export declare const mlSimpleSiteHandlers: {
332
332
  }[];
333
333
  };
334
334
  }>;
335
+ mlss_get_revision_content: (args: any) => Promise<{
336
+ toolResult: {
337
+ content: {
338
+ type: string;
339
+ text: string;
340
+ }[];
341
+ isError?: undefined;
342
+ };
343
+ } | {
344
+ toolResult: {
345
+ isError: boolean;
346
+ content: {
347
+ type: string;
348
+ text: string;
349
+ }[];
350
+ };
351
+ }>;
335
352
  mlss_restore_revision: (args: any) => Promise<{
336
353
  toolResult: {
337
354
  content: {
@@ -119,6 +119,13 @@ export const mlSimpleSiteTools = [
119
119
  description: 'List all saved revisions of the SimpleSite with metadata (index, description, timestamp, user, block count). Use this to show version history or before restoring.',
120
120
  inputSchema: { type: 'object', properties: {} },
121
121
  },
122
+ {
123
+ name: 'mlss_get_revision_content',
124
+ description: 'Get full content of a specific revision (blocks, settings, metadata) WITHOUT restoring it. Perfect for previewing, comparing, or showing users what\'s in a revision before deciding to restore.',
125
+ inputSchema: { type: 'object', properties: z.object({
126
+ revision_index: z.number().describe('Index of revision to preview (get from mlss_get_revisions)'),
127
+ }).shape },
128
+ },
122
129
  {
123
130
  name: 'mlss_restore_revision',
124
131
  description: 'Restore a specific revision by index. Automatically saves current state before restoring. Perfect for rolling back changes or A/B testing.',
@@ -375,6 +382,30 @@ export const mlSimpleSiteHandlers = {
375
382
  };
376
383
  }
377
384
  },
385
+ mlss_get_revision_content: async (args) => {
386
+ try {
387
+ const response = await makeWordPressRequest('GET', `mlss/v1/revision-content?revision_index=${args.revision_index}`);
388
+ return {
389
+ toolResult: {
390
+ content: [{
391
+ type: 'text',
392
+ text: JSON.stringify(response, null, 2)
393
+ }]
394
+ }
395
+ };
396
+ }
397
+ catch (error) {
398
+ return {
399
+ toolResult: {
400
+ isError: true,
401
+ content: [{
402
+ type: 'text',
403
+ text: `Error getting revision content: ${error.message}`
404
+ }]
405
+ }
406
+ };
407
+ }
408
+ },
378
409
  mlss_restore_revision: async (args) => {
379
410
  try {
380
411
  const response = await makeWordPressRequest('POST', 'mlss/v1/restore-revision', args);
package/package.json CHANGED
@@ -1,68 +1,68 @@
1
- {
2
- "name": "@wplaunchify/ml-mcp-server",
3
- "version": "2.5.10",
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
- "type": "module",
6
- "main": "./build/server.js",
7
- "exports": "./build/server.js",
8
- "bin": {
9
- "ml-mcp-server": "./build/server.js"
10
- },
11
- "engines": {
12
- "node": ">=18.0.0"
13
- },
14
- "scripts": {
15
- "build": "tsc --project tsconfig.json",
16
- "start": "node ./build/server.js",
17
- "dev": "tsx watch src/server.ts",
18
- "clean": "rimraf build",
19
- "prepare": "npm run build"
20
- },
21
- "keywords": [
22
- "wordpress",
23
- "mcp",
24
- "model-context-protocol",
25
- "fluent-community",
26
- "fluent-crm",
27
- "fluent-cart",
28
- "fluentmcp-pro",
29
- "woocommerce",
30
- "minutelaunch",
31
- "ai",
32
- "claude",
33
- "cursor"
34
- ],
35
- "author": "1WD LLC",
36
- "license": "MIT",
37
- "repository": {
38
- "type": "git",
39
- "url": "https://github.com/wplaunchify/ml-mcp-server.git"
40
- },
41
- "bugs": {
42
- "url": "https://github.com/wplaunchify/ml-mcp-server/issues"
43
- },
44
- "homepage": "https://github.com/wplaunchify/ml-mcp-server#readme",
45
- "dependencies": {
46
- "@modelcontextprotocol/sdk": "^1.4.1",
47
- "axios": "^1.6.7",
48
- "dotenv": "^16.4.5",
49
- "fs-extra": "^11.2.0",
50
- "zod": "^3.23.8",
51
- "zod-to-json-schema": "^3.24.1"
52
- },
53
- "devDependencies": {
54
- "@types/fs-extra": "^11.0.4",
55
- "@types/node": "^22.10.0",
56
- "rimraf": "^5.0.5",
57
- "tsx": "^4.7.1",
58
- "typescript": "^5.3.3"
59
- },
60
- "publishConfig": {
61
- "access": "public"
62
- },
63
- "files": [
64
- "build",
65
- "README.md",
66
- "LICENSE"
67
- ]
68
- }
1
+ {
2
+ "name": "@wplaunchify/ml-mcp-server",
3
+ "version": "2.6.0",
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
+ "type": "module",
6
+ "main": "./build/server.js",
7
+ "exports": "./build/server.js",
8
+ "bin": {
9
+ "ml-mcp-server": "./build/server.js"
10
+ },
11
+ "engines": {
12
+ "node": ">=18.0.0"
13
+ },
14
+ "scripts": {
15
+ "build": "tsc --project tsconfig.json",
16
+ "start": "node ./build/server.js",
17
+ "dev": "tsx watch src/server.ts",
18
+ "clean": "rimraf build",
19
+ "prepare": "npm run build"
20
+ },
21
+ "keywords": [
22
+ "wordpress",
23
+ "mcp",
24
+ "model-context-protocol",
25
+ "fluent-community",
26
+ "fluent-crm",
27
+ "fluent-cart",
28
+ "fluentmcp-pro",
29
+ "woocommerce",
30
+ "minutelaunch",
31
+ "ai",
32
+ "claude",
33
+ "cursor"
34
+ ],
35
+ "author": "1WD LLC",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/wplaunchify/ml-mcp-server.git"
40
+ },
41
+ "bugs": {
42
+ "url": "https://github.com/wplaunchify/ml-mcp-server/issues"
43
+ },
44
+ "homepage": "https://github.com/wplaunchify/ml-mcp-server#readme",
45
+ "dependencies": {
46
+ "@modelcontextprotocol/sdk": "^1.4.1",
47
+ "axios": "^1.6.7",
48
+ "dotenv": "^16.4.5",
49
+ "fs-extra": "^11.2.0",
50
+ "zod": "^3.23.8",
51
+ "zod-to-json-schema": "^3.24.1"
52
+ },
53
+ "devDependencies": {
54
+ "@types/fs-extra": "^11.0.4",
55
+ "@types/node": "^22.10.0",
56
+ "rimraf": "^5.0.5",
57
+ "tsx": "^4.7.1",
58
+ "typescript": "^5.3.3"
59
+ },
60
+ "publishConfig": {
61
+ "access": "public"
62
+ },
63
+ "files": [
64
+ "build",
65
+ "README.md",
66
+ "LICENSE"
67
+ ]
68
+ }