@wplaunchify/ml-mcp-server 2.7.4 → 2.7.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/build/tools/index.js +203 -76
- package/package.json +1 -1
package/build/tools/index.js
CHANGED
|
@@ -25,80 +25,207 @@ 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
|
-
|
|
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
|
-
|
|
83
|
-
|
|
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
|
|
28
|
+
// Tool categories for selective loading
|
|
29
|
+
const toolCategories = {
|
|
30
|
+
wordpress: [
|
|
31
|
+
...unifiedContentTools,
|
|
32
|
+
...unifiedTaxonomyTools,
|
|
33
|
+
...pluginTools,
|
|
34
|
+
...mediaTools,
|
|
35
|
+
...userTools,
|
|
36
|
+
...pluginRepositoryTools,
|
|
37
|
+
...commentTools,
|
|
38
|
+
...mlCanvasTools,
|
|
39
|
+
...mlSimpleSiteTools,
|
|
40
|
+
...mlImageEditorTools, // AI image generation via ML Image Editor
|
|
41
|
+
...mlMediaHubTools, // Image search & icon import via ML Media Hub P2P
|
|
42
|
+
...mlSocialTools, // Social media publishing via ML Social
|
|
43
|
+
...fluentMcpProTools // FluentMCP Pro (WooCommerce, file system, database, etc.)
|
|
44
|
+
],
|
|
45
|
+
// Full FluentCommunity (91 tools) - legacy support
|
|
46
|
+
fluentcommunity: [
|
|
47
|
+
...fluentCommunityTools,
|
|
48
|
+
...fluentCommunityDesignTools,
|
|
49
|
+
...fluentCommunityLayoutTools,
|
|
50
|
+
...fluentCommunityChatTools,
|
|
51
|
+
...fluentCommunityAdminTools
|
|
52
|
+
],
|
|
53
|
+
// COMM1 - Community Core (55 tools) - posts, spaces, members, engagement
|
|
54
|
+
'fluentcommunity-core': [
|
|
55
|
+
...fluentCommunityCoreTools,
|
|
56
|
+
...fluentCommunityChatTools // Chat is part of core community
|
|
57
|
+
],
|
|
58
|
+
// COMM2 - Learning & Admin (36 tools) - courses, lessons, settings
|
|
59
|
+
'fluentcommunity-learning': [
|
|
60
|
+
...fluentCommunityLearningTools,
|
|
61
|
+
...fluentCommunityDesignTools,
|
|
62
|
+
...fluentCommunityLayoutTools,
|
|
63
|
+
...fluentCommunityAdminTools
|
|
64
|
+
],
|
|
65
|
+
fluentcart: [
|
|
66
|
+
...fluentCartTools,
|
|
67
|
+
...fluentCartAnalyticsTools,
|
|
68
|
+
...fluentCartLicensingTools,
|
|
69
|
+
...fluentCartAdminTools
|
|
70
|
+
],
|
|
71
|
+
fluentcrm: [
|
|
72
|
+
...fluentCRMTools
|
|
73
|
+
],
|
|
74
|
+
// mlplugins - Only Fluent Affiliate (ML Image Editor & Media Hub are in wordpress category)
|
|
75
|
+
mlplugins: [
|
|
76
|
+
...fluentAffiliateTools
|
|
77
|
+
],
|
|
78
|
+
pro: [
|
|
79
|
+
...fluentMcpProTools
|
|
80
|
+
],
|
|
81
|
+
debug: [
|
|
82
|
+
...debugTools
|
|
83
|
+
]
|
|
103
84
|
};
|
|
104
|
-
|
|
85
|
+
const handlerCategories = {
|
|
86
|
+
// WP (ENABLED_TOOLS=wordpress) - 100+ tools (includes ML plugins + FluentMCP Pro)
|
|
87
|
+
wordpress: {
|
|
88
|
+
...unifiedContentHandlers,
|
|
89
|
+
...unifiedTaxonomyHandlers,
|
|
90
|
+
...pluginHandlers,
|
|
91
|
+
...mediaHandlers,
|
|
92
|
+
...userHandlers,
|
|
93
|
+
...pluginRepositoryHandlers,
|
|
94
|
+
...commentHandlers,
|
|
95
|
+
...mlCanvasHandlers, // ML Canvas Block tools
|
|
96
|
+
...mlSimpleSiteHandlers, // ML Simple Site tools
|
|
97
|
+
...mlImageEditorHandlers, // AI image generation
|
|
98
|
+
...mlMediaHubHandlers, // Image search & icon import
|
|
99
|
+
...mlSocialHandlers, // Social media publishing
|
|
100
|
+
...fluentMcpProHandlers // FluentMCP Pro (WooCommerce, file system, database, etc.)
|
|
101
|
+
},
|
|
102
|
+
fluentcommunity: {
|
|
103
|
+
...fluentCommunityHandlers,
|
|
104
|
+
...fluentCommunityDesignHandlers,
|
|
105
|
+
...fluentCommunityLayoutHandlers,
|
|
106
|
+
...fluentCommunityChatHandlers,
|
|
107
|
+
...fluentCommunityAdminHandlers
|
|
108
|
+
},
|
|
109
|
+
'fluentcommunity-core': {
|
|
110
|
+
...fluentCommunityCoreHandlers,
|
|
111
|
+
...fluentCommunityChatHandlers
|
|
112
|
+
},
|
|
113
|
+
'fluentcommunity-learning': {
|
|
114
|
+
...fluentCommunityLearningHandlers,
|
|
115
|
+
...fluentCommunityDesignHandlers,
|
|
116
|
+
...fluentCommunityLayoutHandlers,
|
|
117
|
+
...fluentCommunityAdminHandlers
|
|
118
|
+
},
|
|
119
|
+
fluentcart: {
|
|
120
|
+
...fluentCartHandlers,
|
|
121
|
+
...fluentCartAnalyticsHandlers,
|
|
122
|
+
...fluentCartLicensingHandlers,
|
|
123
|
+
...fluentCartAdminHandlers
|
|
124
|
+
},
|
|
125
|
+
fluentcrm: {
|
|
126
|
+
...fluentCRMHandlers
|
|
127
|
+
},
|
|
128
|
+
// mlplugins - Only Fluent Affiliate (ML Image Editor & Media Hub handlers are in wordpress category)
|
|
129
|
+
mlplugins: {
|
|
130
|
+
...fluentAffiliateHandlers
|
|
131
|
+
},
|
|
132
|
+
pro: {
|
|
133
|
+
...fluentMcpProHandlers
|
|
134
|
+
},
|
|
135
|
+
debug: {
|
|
136
|
+
...debugHandlers
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
// Filter tools based on ENABLED_TOOLS environment variable
|
|
140
|
+
function getFilteredTools() {
|
|
141
|
+
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
142
|
+
// If specific category requested, honor it
|
|
143
|
+
if (enabledTools && enabledTools !== 'all') {
|
|
144
|
+
// Map user-friendly names to internal category names
|
|
145
|
+
const categoryMap = {
|
|
146
|
+
'wordpress': 'wordpress',
|
|
147
|
+
'fluent-community': 'fluentcommunity',
|
|
148
|
+
'fluentcommunity': 'fluentcommunity',
|
|
149
|
+
'fluentcommunity-core': 'fluentcommunity-core',
|
|
150
|
+
'fluent-community-core': 'fluentcommunity-core',
|
|
151
|
+
'fluentcommunity-learning': 'fluentcommunity-learning',
|
|
152
|
+
'fluent-community-learning': 'fluentcommunity-learning',
|
|
153
|
+
'fluent-cart': 'fluentcart',
|
|
154
|
+
'fluentcart': 'fluentcart',
|
|
155
|
+
'fluent-crm': 'fluentcrm',
|
|
156
|
+
'fluentcrm': 'fluentcrm',
|
|
157
|
+
'mlplugins': 'mlplugins',
|
|
158
|
+
'pro': 'pro',
|
|
159
|
+
'fluentmcp-pro': 'pro',
|
|
160
|
+
'fluent-mcp-pro': 'pro',
|
|
161
|
+
'debug': 'debug'
|
|
162
|
+
};
|
|
163
|
+
const category = categoryMap[enabledTools];
|
|
164
|
+
if (category && toolCategories[category]) {
|
|
165
|
+
console.error(`📦 Loading only: ${enabledTools} (${toolCategories[category].length} tools)`);
|
|
166
|
+
return toolCategories[category];
|
|
167
|
+
}
|
|
168
|
+
console.error(`⚠️ Unknown ENABLED_TOOLS value: ${enabledTools}. Loading all tools.`);
|
|
169
|
+
}
|
|
170
|
+
// ENABLED_TOOLS not set or 'all' - load all tools
|
|
171
|
+
// No plugin detection during startup to prevent Claude Desktop crashes
|
|
172
|
+
return [
|
|
173
|
+
...toolCategories.wordpress,
|
|
174
|
+
...toolCategories.fluentcommunity,
|
|
175
|
+
...toolCategories.fluentcart,
|
|
176
|
+
...toolCategories.fluentcrm,
|
|
177
|
+
...toolCategories.mlplugins,
|
|
178
|
+
...toolCategories.pro,
|
|
179
|
+
...toolCategories.debug
|
|
180
|
+
];
|
|
181
|
+
}
|
|
182
|
+
function getFilteredHandlers() {
|
|
183
|
+
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
184
|
+
if (!enabledTools || enabledTools === 'all') {
|
|
185
|
+
// No filter or 'all' - load all handlers
|
|
186
|
+
return {
|
|
187
|
+
...handlerCategories.wordpress,
|
|
188
|
+
...handlerCategories.fluentcommunity,
|
|
189
|
+
...handlerCategories.fluentcart,
|
|
190
|
+
...handlerCategories.fluentcrm,
|
|
191
|
+
...handlerCategories.mlplugins,
|
|
192
|
+
...handlerCategories.pro,
|
|
193
|
+
...handlerCategories.debug
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
// Map user-friendly names to internal category names
|
|
197
|
+
const categoryMap = {
|
|
198
|
+
'wordpress': 'wordpress',
|
|
199
|
+
'fluent-community': 'fluentcommunity',
|
|
200
|
+
'fluentcommunity': 'fluentcommunity',
|
|
201
|
+
'fluentcommunity-core': 'fluentcommunity-core',
|
|
202
|
+
'fluent-community-core': 'fluentcommunity-core',
|
|
203
|
+
'fluentcommunity-learning': 'fluentcommunity-learning',
|
|
204
|
+
'fluent-community-learning': 'fluentcommunity-learning',
|
|
205
|
+
'fluent-cart': 'fluentcart',
|
|
206
|
+
'fluentcart': 'fluentcart',
|
|
207
|
+
'fluent-crm': 'fluentcrm',
|
|
208
|
+
'fluentcrm': 'fluentcrm',
|
|
209
|
+
'mlplugins': 'mlplugins',
|
|
210
|
+
'pro': 'pro',
|
|
211
|
+
'fluentmcp-pro': 'pro',
|
|
212
|
+
'fluent-mcp-pro': 'pro',
|
|
213
|
+
'debug': 'debug'
|
|
214
|
+
};
|
|
215
|
+
const category = categoryMap[enabledTools];
|
|
216
|
+
if (category && handlerCategories[category]) {
|
|
217
|
+
return handlerCategories[category];
|
|
218
|
+
}
|
|
219
|
+
return {
|
|
220
|
+
...handlerCategories.wordpress,
|
|
221
|
+
...handlerCategories.fluentcommunity,
|
|
222
|
+
...handlerCategories.fluentcart,
|
|
223
|
+
...handlerCategories.fluentcrm,
|
|
224
|
+
...handlerCategories.mlplugins,
|
|
225
|
+
...handlerCategories.pro,
|
|
226
|
+
...handlerCategories.debug
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
// Export filtered tools and handlers
|
|
230
|
+
export const allTools = getFilteredTools();
|
|
231
|
+
export const toolHandlers = getFilteredHandlers();
|
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.5",
|
|
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",
|