@wplaunchify/ml-mcp-server 2.0.0 → 2.0.1
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 +37 -15
- package/package.json +1 -1
package/build/tools/index.js
CHANGED
|
@@ -93,11 +93,11 @@ const handlerCategories = {
|
|
|
93
93
|
...debugHandlers
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
|
-
// Filter tools based on
|
|
96
|
+
// Filter tools based on ENABLED_TOOLS environment variable
|
|
97
97
|
function getFilteredTools() {
|
|
98
|
-
const
|
|
99
|
-
if (!
|
|
100
|
-
// No filter - load all tools
|
|
98
|
+
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
99
|
+
if (!enabledTools || enabledTools === 'all') {
|
|
100
|
+
// No filter or 'all' - load all tools
|
|
101
101
|
return [
|
|
102
102
|
...toolCategories.wordpress,
|
|
103
103
|
...toolCategories.fluentcommunity,
|
|
@@ -107,13 +107,24 @@ function getFilteredTools() {
|
|
|
107
107
|
...toolCategories.debug
|
|
108
108
|
];
|
|
109
109
|
}
|
|
110
|
-
//
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
// Map user-friendly names to internal category names
|
|
111
|
+
const categoryMap = {
|
|
112
|
+
'wordpress': 'wordpress',
|
|
113
|
+
'fluent-community': 'fluentcommunity',
|
|
114
|
+
'fluentcommunity': 'fluentcommunity',
|
|
115
|
+
'fluent-cart': 'fluentcart',
|
|
116
|
+
'fluentcart': 'fluentcart',
|
|
117
|
+
'fluent-crm': 'fluentcrm',
|
|
118
|
+
'fluentcrm': 'fluentcrm',
|
|
119
|
+
'mlplugins': 'mlplugins',
|
|
120
|
+
'debug': 'debug'
|
|
121
|
+
};
|
|
122
|
+
const category = categoryMap[enabledTools];
|
|
123
|
+
if (category && toolCategories[category]) {
|
|
124
|
+
console.error(`📦 Loading only: ${enabledTools} (${toolCategories[category].length} tools)`);
|
|
114
125
|
return toolCategories[category];
|
|
115
126
|
}
|
|
116
|
-
console.error(`⚠️ Unknown
|
|
127
|
+
console.error(`⚠️ Unknown ENABLED_TOOLS value: ${enabledTools}. Loading all tools.`);
|
|
117
128
|
return [
|
|
118
129
|
...toolCategories.wordpress,
|
|
119
130
|
...toolCategories.fluentcommunity,
|
|
@@ -124,9 +135,9 @@ function getFilteredTools() {
|
|
|
124
135
|
];
|
|
125
136
|
}
|
|
126
137
|
function getFilteredHandlers() {
|
|
127
|
-
const
|
|
128
|
-
if (!
|
|
129
|
-
// No filter - load all handlers
|
|
138
|
+
const enabledTools = process.env.ENABLED_TOOLS?.toLowerCase();
|
|
139
|
+
if (!enabledTools || enabledTools === 'all') {
|
|
140
|
+
// No filter or 'all' - load all handlers
|
|
130
141
|
return {
|
|
131
142
|
...handlerCategories.wordpress,
|
|
132
143
|
...handlerCategories.fluentcommunity,
|
|
@@ -136,9 +147,20 @@ function getFilteredHandlers() {
|
|
|
136
147
|
...handlerCategories.debug
|
|
137
148
|
};
|
|
138
149
|
}
|
|
139
|
-
//
|
|
140
|
-
const
|
|
141
|
-
|
|
150
|
+
// Map user-friendly names to internal category names
|
|
151
|
+
const categoryMap = {
|
|
152
|
+
'wordpress': 'wordpress',
|
|
153
|
+
'fluent-community': 'fluentcommunity',
|
|
154
|
+
'fluentcommunity': 'fluentcommunity',
|
|
155
|
+
'fluent-cart': 'fluentcart',
|
|
156
|
+
'fluentcart': 'fluentcart',
|
|
157
|
+
'fluent-crm': 'fluentcrm',
|
|
158
|
+
'fluentcrm': 'fluentcrm',
|
|
159
|
+
'mlplugins': 'mlplugins',
|
|
160
|
+
'debug': 'debug'
|
|
161
|
+
};
|
|
162
|
+
const category = categoryMap[enabledTools];
|
|
163
|
+
if (category && handlerCategories[category]) {
|
|
142
164
|
return handlerCategories[category];
|
|
143
165
|
}
|
|
144
166
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wplaunchify/ml-mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Universal MCP Server for WordPress + Fluent Suite (Community, CRM, Cart) + MinuteLaunch Plugins. Comprehensive tools for AI-powered WordPress management via Claude, Cursor, and other MCP clients.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/server.js",
|