@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.
@@ -93,11 +93,11 @@ const handlerCategories = {
93
93
  ...debugHandlers
94
94
  }
95
95
  };
96
- // Filter tools based on LOAD_ONLY environment variable
96
+ // Filter tools based on ENABLED_TOOLS environment variable
97
97
  function getFilteredTools() {
98
- const loadOnly = process.env.LOAD_ONLY?.toLowerCase();
99
- if (!loadOnly) {
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
- // Load specific category
111
- const category = loadOnly;
112
- if (toolCategories[category]) {
113
- console.error(`📦 Loading only: ${loadOnly}`);
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 LOAD_ONLY value: ${loadOnly}. Loading all tools.`);
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 loadOnly = process.env.LOAD_ONLY?.toLowerCase();
128
- if (!loadOnly) {
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
- // Load specific category
140
- const category = loadOnly;
141
- if (handlerCategories[category]) {
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.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",