@wplaunchify/ml-mcp-server 2.7.3 → 2.7.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/build/tools/fluent-mcp-pro.js +13 -13
- package/build/tools/index.js +76 -201
- package/package.json +1 -1
- package/build/tools/fluent-community-BACKUP.d.ts +0 -364
- package/build/tools/fluent-community-BACKUP.js +0 -883
- package/build/tools/fluent-community-MINIMAL.d.ts +0 -69
- package/build/tools/fluent-community-MINIMAL.js +0 -92
|
@@ -1301,7 +1301,7 @@ export const fluentMcpProHandlers = {
|
|
|
1301
1301
|
// WooCommerce Handlers
|
|
1302
1302
|
pro_wc_product_list: async (args) => {
|
|
1303
1303
|
try {
|
|
1304
|
-
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/
|
|
1304
|
+
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/woo/products', args);
|
|
1305
1305
|
return {
|
|
1306
1306
|
toolResult: {
|
|
1307
1307
|
content: [{
|
|
@@ -1325,7 +1325,7 @@ export const fluentMcpProHandlers = {
|
|
|
1325
1325
|
},
|
|
1326
1326
|
pro_wc_product_get: async (args) => {
|
|
1327
1327
|
try {
|
|
1328
|
-
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/
|
|
1328
|
+
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/woo/products/${args.id}`);
|
|
1329
1329
|
return {
|
|
1330
1330
|
toolResult: {
|
|
1331
1331
|
content: [{
|
|
@@ -1349,7 +1349,7 @@ export const fluentMcpProHandlers = {
|
|
|
1349
1349
|
},
|
|
1350
1350
|
pro_wc_product_create: async (args) => {
|
|
1351
1351
|
try {
|
|
1352
|
-
const response = await makeWordPressRequest('POST', 'fc-manager/v1/power/
|
|
1352
|
+
const response = await makeWordPressRequest('POST', 'fc-manager/v1/power/woo/products', args);
|
|
1353
1353
|
return {
|
|
1354
1354
|
toolResult: {
|
|
1355
1355
|
content: [{
|
|
@@ -1373,7 +1373,7 @@ export const fluentMcpProHandlers = {
|
|
|
1373
1373
|
},
|
|
1374
1374
|
pro_wc_product_update: async (args) => {
|
|
1375
1375
|
try {
|
|
1376
|
-
const response = await makeWordPressRequest('PUT', `fc-manager/v1/power/
|
|
1376
|
+
const response = await makeWordPressRequest('PUT', `fc-manager/v1/power/woo/products/${args.id}`, args);
|
|
1377
1377
|
return {
|
|
1378
1378
|
toolResult: {
|
|
1379
1379
|
content: [{
|
|
@@ -1397,7 +1397,7 @@ export const fluentMcpProHandlers = {
|
|
|
1397
1397
|
},
|
|
1398
1398
|
pro_wc_product_delete: async (args) => {
|
|
1399
1399
|
try {
|
|
1400
|
-
const response = await makeWordPressRequest('DELETE', `fc-manager/v1/power/
|
|
1400
|
+
const response = await makeWordPressRequest('DELETE', `fc-manager/v1/power/woo/products/${args.id}`, args);
|
|
1401
1401
|
return {
|
|
1402
1402
|
toolResult: {
|
|
1403
1403
|
content: [{
|
|
@@ -1421,7 +1421,7 @@ export const fluentMcpProHandlers = {
|
|
|
1421
1421
|
},
|
|
1422
1422
|
pro_wc_order_list: async (args) => {
|
|
1423
1423
|
try {
|
|
1424
|
-
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/
|
|
1424
|
+
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/woo/orders', args);
|
|
1425
1425
|
return {
|
|
1426
1426
|
toolResult: {
|
|
1427
1427
|
content: [{
|
|
@@ -1445,7 +1445,7 @@ export const fluentMcpProHandlers = {
|
|
|
1445
1445
|
},
|
|
1446
1446
|
pro_wc_order_get: async (args) => {
|
|
1447
1447
|
try {
|
|
1448
|
-
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/
|
|
1448
|
+
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/woo/orders/${args.id}`);
|
|
1449
1449
|
return {
|
|
1450
1450
|
toolResult: {
|
|
1451
1451
|
content: [{
|
|
@@ -1469,7 +1469,7 @@ export const fluentMcpProHandlers = {
|
|
|
1469
1469
|
},
|
|
1470
1470
|
pro_wc_order_update: async (args) => {
|
|
1471
1471
|
try {
|
|
1472
|
-
const response = await makeWordPressRequest('PUT', `fc-manager/v1/power/
|
|
1472
|
+
const response = await makeWordPressRequest('PUT', `fc-manager/v1/power/woo/orders/${args.id}`, args);
|
|
1473
1473
|
return {
|
|
1474
1474
|
toolResult: {
|
|
1475
1475
|
content: [{
|
|
@@ -1493,7 +1493,7 @@ export const fluentMcpProHandlers = {
|
|
|
1493
1493
|
},
|
|
1494
1494
|
pro_wc_customer_list: async (args) => {
|
|
1495
1495
|
try {
|
|
1496
|
-
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/
|
|
1496
|
+
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/woo/customers', args);
|
|
1497
1497
|
return {
|
|
1498
1498
|
toolResult: {
|
|
1499
1499
|
content: [{
|
|
@@ -1517,7 +1517,7 @@ export const fluentMcpProHandlers = {
|
|
|
1517
1517
|
},
|
|
1518
1518
|
pro_wc_customer_get: async (args) => {
|
|
1519
1519
|
try {
|
|
1520
|
-
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/
|
|
1520
|
+
const response = await makeWordPressRequest('GET', `fc-manager/v1/power/woo/customers/${args.id}`);
|
|
1521
1521
|
return {
|
|
1522
1522
|
toolResult: {
|
|
1523
1523
|
content: [{
|
|
@@ -1541,7 +1541,7 @@ export const fluentMcpProHandlers = {
|
|
|
1541
1541
|
},
|
|
1542
1542
|
pro_wc_reports: async (args) => {
|
|
1543
1543
|
try {
|
|
1544
|
-
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/
|
|
1544
|
+
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/woo/reports', args);
|
|
1545
1545
|
return {
|
|
1546
1546
|
toolResult: {
|
|
1547
1547
|
content: [{
|
|
@@ -1565,7 +1565,7 @@ export const fluentMcpProHandlers = {
|
|
|
1565
1565
|
},
|
|
1566
1566
|
pro_wc_coupon_list: async (args) => {
|
|
1567
1567
|
try {
|
|
1568
|
-
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/
|
|
1568
|
+
const response = await makeWordPressRequest('GET', 'fc-manager/v1/power/woo/coupons', args);
|
|
1569
1569
|
return {
|
|
1570
1570
|
toolResult: {
|
|
1571
1571
|
content: [{
|
|
@@ -1589,7 +1589,7 @@ export const fluentMcpProHandlers = {
|
|
|
1589
1589
|
},
|
|
1590
1590
|
pro_wc_coupon_create: async (args) => {
|
|
1591
1591
|
try {
|
|
1592
|
-
const response = await makeWordPressRequest('POST', 'fc-manager/v1/power/
|
|
1592
|
+
const response = await makeWordPressRequest('POST', 'fc-manager/v1/power/woo/coupons', args);
|
|
1593
1593
|
return {
|
|
1594
1594
|
toolResult: {
|
|
1595
1595
|
content: [{
|
package/build/tools/index.js
CHANGED
|
@@ -25,205 +25,80 @@ import { fluentCommunityCoreTools, fluentCommunityCoreHandlers } from './fluent-
|
|
|
25
25
|
import { fluentCommunityLearningTools, fluentCommunityLearningHandlers } from './fluent-community-learning.js';
|
|
26
26
|
import { fluentMcpProTools, fluentMcpProHandlers } from './fluent-mcp-pro.js';
|
|
27
27
|
import { mlSocialTools, mlSocialHandlers } from './ml-social.js';
|
|
28
|
-
//
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
28
|
+
// All tools - always loaded, no conditional filtering
|
|
29
|
+
export const allTools = [
|
|
30
|
+
// WordPress Core
|
|
31
|
+
...unifiedContentTools,
|
|
32
|
+
...unifiedTaxonomyTools,
|
|
33
|
+
...pluginTools,
|
|
34
|
+
...mediaTools,
|
|
35
|
+
...userTools,
|
|
36
|
+
...pluginRepositoryTools,
|
|
37
|
+
...commentTools,
|
|
38
|
+
// ML Plugins (Canvas, Simple Site, Image Editor, Media Hub, Social)
|
|
39
|
+
...mlCanvasTools,
|
|
40
|
+
...mlSimpleSiteTools,
|
|
41
|
+
...mlImageEditorTools,
|
|
42
|
+
...mlMediaHubTools,
|
|
43
|
+
...mlSocialTools,
|
|
44
|
+
// FluentMCP Pro (WooCommerce, file system, database, WP settings, system, WP-CLI)
|
|
45
|
+
...fluentMcpProTools,
|
|
46
|
+
// FluentCommunity
|
|
47
|
+
...fluentCommunityTools,
|
|
48
|
+
...fluentCommunityDesignTools,
|
|
49
|
+
...fluentCommunityLayoutTools,
|
|
50
|
+
...fluentCommunityChatTools,
|
|
51
|
+
...fluentCommunityAdminTools,
|
|
52
|
+
...fluentCommunityCoreTools,
|
|
53
|
+
...fluentCommunityLearningTools,
|
|
54
|
+
// FluentCart
|
|
55
|
+
...fluentCartTools,
|
|
56
|
+
...fluentCartAnalyticsTools,
|
|
57
|
+
...fluentCartLicensingTools,
|
|
58
|
+
...fluentCartAdminTools,
|
|
59
|
+
// FluentCRM
|
|
60
|
+
...fluentCRMTools,
|
|
61
|
+
// Fluent Affiliate
|
|
62
|
+
...fluentAffiliateTools,
|
|
63
|
+
// Debug
|
|
64
|
+
...debugTools
|
|
65
|
+
];
|
|
66
|
+
// All handlers - always loaded, no conditional filtering
|
|
67
|
+
export const toolHandlers = {
|
|
68
|
+
// WordPress Core
|
|
69
|
+
...unifiedContentHandlers,
|
|
70
|
+
...unifiedTaxonomyHandlers,
|
|
71
|
+
...pluginHandlers,
|
|
72
|
+
...mediaHandlers,
|
|
73
|
+
...userHandlers,
|
|
74
|
+
...pluginRepositoryHandlers,
|
|
75
|
+
...commentHandlers,
|
|
76
|
+
// ML Plugins
|
|
77
|
+
...mlCanvasHandlers,
|
|
78
|
+
...mlSimpleSiteHandlers,
|
|
79
|
+
...mlImageEditorHandlers,
|
|
80
|
+
...mlMediaHubHandlers,
|
|
81
|
+
...mlSocialHandlers,
|
|
82
|
+
// FluentMCP Pro
|
|
83
|
+
...fluentMcpProHandlers,
|
|
84
|
+
// FluentCommunity
|
|
85
|
+
...fluentCommunityHandlers,
|
|
86
|
+
...fluentCommunityDesignHandlers,
|
|
87
|
+
...fluentCommunityLayoutHandlers,
|
|
88
|
+
...fluentCommunityChatHandlers,
|
|
89
|
+
...fluentCommunityAdminHandlers,
|
|
90
|
+
...fluentCommunityCoreHandlers,
|
|
91
|
+
...fluentCommunityLearningHandlers,
|
|
92
|
+
// FluentCart
|
|
93
|
+
...fluentCartHandlers,
|
|
94
|
+
...fluentCartAnalyticsHandlers,
|
|
95
|
+
...fluentCartLicensingHandlers,
|
|
96
|
+
...fluentCartAdminHandlers,
|
|
97
|
+
// FluentCRM
|
|
98
|
+
...fluentCRMHandlers,
|
|
99
|
+
// Fluent Affiliate
|
|
100
|
+
...fluentAffiliateHandlers,
|
|
101
|
+
// Debug
|
|
102
|
+
...debugHandlers
|
|
83
103
|
};
|
|
84
|
-
|
|
85
|
-
// WP (ENABLED_TOOLS=wordpress) - 45+ tools (includes ML Image Editor & Media Hub & Social)
|
|
86
|
-
wordpress: {
|
|
87
|
-
...unifiedContentHandlers,
|
|
88
|
-
...unifiedTaxonomyHandlers,
|
|
89
|
-
...pluginHandlers,
|
|
90
|
-
...mediaHandlers,
|
|
91
|
-
...userHandlers,
|
|
92
|
-
...pluginRepositoryHandlers,
|
|
93
|
-
...commentHandlers,
|
|
94
|
-
...mlCanvasHandlers, // ML Canvas Block tools
|
|
95
|
-
...mlSimpleSiteHandlers, // ML Simple Site tools
|
|
96
|
-
...mlImageEditorHandlers, // AI image generation
|
|
97
|
-
...mlMediaHubHandlers, // Image search & icon import
|
|
98
|
-
...mlSocialHandlers // Social media publishing
|
|
99
|
-
},
|
|
100
|
-
fluentcommunity: {
|
|
101
|
-
...fluentCommunityHandlers,
|
|
102
|
-
...fluentCommunityDesignHandlers,
|
|
103
|
-
...fluentCommunityLayoutHandlers,
|
|
104
|
-
...fluentCommunityChatHandlers,
|
|
105
|
-
...fluentCommunityAdminHandlers
|
|
106
|
-
},
|
|
107
|
-
'fluentcommunity-core': {
|
|
108
|
-
...fluentCommunityCoreHandlers,
|
|
109
|
-
...fluentCommunityChatHandlers
|
|
110
|
-
},
|
|
111
|
-
'fluentcommunity-learning': {
|
|
112
|
-
...fluentCommunityLearningHandlers,
|
|
113
|
-
...fluentCommunityDesignHandlers,
|
|
114
|
-
...fluentCommunityLayoutHandlers,
|
|
115
|
-
...fluentCommunityAdminHandlers
|
|
116
|
-
},
|
|
117
|
-
fluentcart: {
|
|
118
|
-
...fluentCartHandlers,
|
|
119
|
-
...fluentCartAnalyticsHandlers,
|
|
120
|
-
...fluentCartLicensingHandlers,
|
|
121
|
-
...fluentCartAdminHandlers
|
|
122
|
-
},
|
|
123
|
-
fluentcrm: {
|
|
124
|
-
...fluentCRMHandlers
|
|
125
|
-
},
|
|
126
|
-
// mlplugins - Only Fluent Affiliate (ML Image Editor & Media Hub handlers are in wordpress category)
|
|
127
|
-
mlplugins: {
|
|
128
|
-
...fluentAffiliateHandlers
|
|
129
|
-
},
|
|
130
|
-
pro: {
|
|
131
|
-
...fluentMcpProHandlers
|
|
132
|
-
},
|
|
133
|
-
debug: {
|
|
134
|
-
...debugHandlers
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
// Filter tools based on ENABLED_TOOLS environment variable
|
|
138
|
-
function getFilteredTools() {
|
|
139
|
-
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
140
|
-
// If specific category requested, honor it
|
|
141
|
-
if (enabledTools && enabledTools !== 'all') {
|
|
142
|
-
// Map user-friendly names to internal category names
|
|
143
|
-
const categoryMap = {
|
|
144
|
-
'wordpress': 'wordpress',
|
|
145
|
-
'fluent-community': 'fluentcommunity',
|
|
146
|
-
'fluentcommunity': 'fluentcommunity',
|
|
147
|
-
'fluentcommunity-core': 'fluentcommunity-core',
|
|
148
|
-
'fluent-community-core': 'fluentcommunity-core',
|
|
149
|
-
'fluentcommunity-learning': 'fluentcommunity-learning',
|
|
150
|
-
'fluent-community-learning': 'fluentcommunity-learning',
|
|
151
|
-
'fluent-cart': 'fluentcart',
|
|
152
|
-
'fluentcart': 'fluentcart',
|
|
153
|
-
'fluent-crm': 'fluentcrm',
|
|
154
|
-
'fluentcrm': 'fluentcrm',
|
|
155
|
-
'mlplugins': 'mlplugins',
|
|
156
|
-
'pro': 'pro',
|
|
157
|
-
'fluentmcp-pro': 'pro',
|
|
158
|
-
'fluent-mcp-pro': 'pro',
|
|
159
|
-
'debug': 'debug'
|
|
160
|
-
};
|
|
161
|
-
const category = categoryMap[enabledTools];
|
|
162
|
-
if (category && toolCategories[category]) {
|
|
163
|
-
console.error(`📦 Loading only: ${enabledTools} (${toolCategories[category].length} tools)`);
|
|
164
|
-
return toolCategories[category];
|
|
165
|
-
}
|
|
166
|
-
console.error(`⚠️ Unknown ENABLED_TOOLS value: ${enabledTools}. Loading all tools.`);
|
|
167
|
-
}
|
|
168
|
-
// ENABLED_TOOLS not set or 'all' - load all tools
|
|
169
|
-
// No plugin detection during startup to prevent Claude Desktop crashes
|
|
170
|
-
return [
|
|
171
|
-
...toolCategories.wordpress,
|
|
172
|
-
...toolCategories.fluentcommunity,
|
|
173
|
-
...toolCategories.fluentcart,
|
|
174
|
-
...toolCategories.fluentcrm,
|
|
175
|
-
...toolCategories.mlplugins,
|
|
176
|
-
...toolCategories.pro,
|
|
177
|
-
...toolCategories.debug
|
|
178
|
-
];
|
|
179
|
-
}
|
|
180
|
-
function getFilteredHandlers() {
|
|
181
|
-
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
182
|
-
if (!enabledTools || enabledTools === 'all') {
|
|
183
|
-
// No filter or 'all' - load all handlers
|
|
184
|
-
return {
|
|
185
|
-
...handlerCategories.wordpress,
|
|
186
|
-
...handlerCategories.fluentcommunity,
|
|
187
|
-
...handlerCategories.fluentcart,
|
|
188
|
-
...handlerCategories.fluentcrm,
|
|
189
|
-
...handlerCategories.mlplugins,
|
|
190
|
-
...handlerCategories.pro,
|
|
191
|
-
...handlerCategories.debug
|
|
192
|
-
};
|
|
193
|
-
}
|
|
194
|
-
// Map user-friendly names to internal category names
|
|
195
|
-
const categoryMap = {
|
|
196
|
-
'wordpress': 'wordpress',
|
|
197
|
-
'fluent-community': 'fluentcommunity',
|
|
198
|
-
'fluentcommunity': 'fluentcommunity',
|
|
199
|
-
'fluentcommunity-core': 'fluentcommunity-core',
|
|
200
|
-
'fluent-community-core': 'fluentcommunity-core',
|
|
201
|
-
'fluentcommunity-learning': 'fluentcommunity-learning',
|
|
202
|
-
'fluent-community-learning': 'fluentcommunity-learning',
|
|
203
|
-
'fluent-cart': 'fluentcart',
|
|
204
|
-
'fluentcart': 'fluentcart',
|
|
205
|
-
'fluent-crm': 'fluentcrm',
|
|
206
|
-
'fluentcrm': 'fluentcrm',
|
|
207
|
-
'mlplugins': 'mlplugins',
|
|
208
|
-
'pro': 'pro',
|
|
209
|
-
'fluentmcp-pro': 'pro',
|
|
210
|
-
'fluent-mcp-pro': 'pro',
|
|
211
|
-
'debug': 'debug'
|
|
212
|
-
};
|
|
213
|
-
const category = categoryMap[enabledTools];
|
|
214
|
-
if (category && handlerCategories[category]) {
|
|
215
|
-
return handlerCategories[category];
|
|
216
|
-
}
|
|
217
|
-
return {
|
|
218
|
-
...handlerCategories.wordpress,
|
|
219
|
-
...handlerCategories.fluentcommunity,
|
|
220
|
-
...handlerCategories.fluentcart,
|
|
221
|
-
...handlerCategories.fluentcrm,
|
|
222
|
-
...handlerCategories.mlplugins,
|
|
223
|
-
...handlerCategories.pro,
|
|
224
|
-
...handlerCategories.debug
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
// Export filtered tools and handlers
|
|
228
|
-
export const allTools = getFilteredTools();
|
|
229
|
-
export const toolHandlers = getFilteredHandlers();
|
|
104
|
+
console.error(`📦 Loaded ${allTools.length} tools`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wplaunchify/ml-mcp-server",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4",
|
|
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",
|