@wplaunchify/ml-mcp-server 1.0.10 → 1.0.11

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.
@@ -12,6 +12,7 @@ import { fluentCartTools, fluentCartHandlers } from './fluent-cart.js';
12
12
  import { fluentCRMTools, fluentCRMHandlers } from './fluent-crm.js';
13
13
  import { mlCanvasTools, mlCanvasHandlers } from './ml-canvas.js';
14
14
  import { mlImageEditorTools, mlImageEditorHandlers } from './ml-image-editor.js';
15
+ import { fluentAffiliateTools, fluentAffiliateHandlers } from './fluent-affiliate.js';
15
16
  import { mlMediaHubTools, mlMediaHubHandlers } from './ml-media-hub.js';
16
17
  import { debugTools, debugHandlers } from './debug.js';
17
18
  import { fluentCartAnalyticsTools, fluentCartAnalyticsHandlers } from './fluent-cart-analytics.js';
@@ -19,51 +20,136 @@ import { fluentCartLicensingTools, fluentCartLicensingHandlers } from './fluent-
19
20
  import { fluentCartAdminTools, fluentCartAdminHandlers } from './fluent-cart-admin.js';
20
21
  import { fluentCommunityChatTools, fluentCommunityChatHandlers } from './fluent-community-chat.js';
21
22
  import { fluentCommunityAdminTools, fluentCommunityAdminHandlers } from './fluent-community-admin.js';
22
- // Combine all tools - WordPress + FluentCommunity + FluentCRM + FluentCart + ML Plugins
23
- export const allTools = [
24
- ...unifiedContentTools, // WordPress Core: unified content management
25
- ...unifiedTaxonomyTools, // WordPress Core: unified taxonomy management
26
- ...pluginTools, // WordPress Core: plugin management
27
- ...mediaTools, // WordPress Core: media library
28
- ...userTools, // WordPress Core: user management
29
- ...pluginRepositoryTools, // WordPress Core: WordPress.org plugin repository
30
- ...commentTools, // WordPress Core: comments
31
- ...fluentCommunityTools, // FluentCommunity: spaces, posts, members
32
- ...fluentCommunityDesignTools, // FluentCommunity: colors, branding, CSS
33
- ...fluentCommunityLayoutTools, // FluentCommunity: layout control
34
- ...fluentCommunityChatTools, // FluentCommunity: chat threads, messages
35
- ...fluentCommunityAdminTools, // FluentCommunity: cleanup, terms
36
- ...fluentCRMTools, // FluentCRM: contacts, lists, campaigns
37
- ...fluentCartTools, // FluentCart: products, orders, customers, subscriptions
38
- ...fluentCartAnalyticsTools, // FluentCart: reports, stats, analytics
39
- ...fluentCartLicensingTools, // FluentCart: licensing charts, summary
40
- ...fluentCartAdminTools, // FluentCart: files, categories, notifications, settings
41
- ...mlCanvasTools, // ML Canvas Block: surgical HTML editing
42
- ...mlImageEditorTools, // ML Image Editor: AI generation/editing
43
- ...mlMediaHubTools, // ML Media Hub: image/icon search and filters
44
- ...debugTools // Debug: diagnostic tools
45
- ];
46
- // Combine all handlers
47
- export const toolHandlers = {
48
- ...unifiedContentHandlers,
49
- ...unifiedTaxonomyHandlers,
50
- ...pluginHandlers,
51
- ...mediaHandlers,
52
- ...userHandlers,
53
- ...pluginRepositoryHandlers,
54
- ...commentHandlers,
55
- ...fluentCommunityHandlers,
56
- ...fluentCommunityDesignHandlers,
57
- ...fluentCommunityLayoutHandlers,
58
- ...fluentCommunityChatHandlers,
59
- ...fluentCommunityAdminHandlers,
60
- ...fluentCRMHandlers,
61
- ...fluentCartHandlers,
62
- ...fluentCartAnalyticsHandlers,
63
- ...fluentCartLicensingHandlers,
64
- ...fluentCartAdminHandlers,
65
- ...mlCanvasHandlers,
66
- ...mlImageEditorHandlers,
67
- ...mlMediaHubHandlers,
68
- ...debugHandlers
23
+ // Tool categories for selective loading
24
+ const toolCategories = {
25
+ wordpress: [
26
+ ...unifiedContentTools,
27
+ ...unifiedTaxonomyTools,
28
+ ...pluginTools,
29
+ ...mediaTools,
30
+ ...userTools,
31
+ ...pluginRepositoryTools,
32
+ ...commentTools
33
+ ],
34
+ fluentcommunity: [
35
+ ...fluentCommunityTools,
36
+ ...fluentCommunityDesignTools,
37
+ ...fluentCommunityLayoutTools,
38
+ ...fluentCommunityChatTools,
39
+ ...fluentCommunityAdminTools
40
+ ],
41
+ fluentcart: [
42
+ ...fluentCartTools,
43
+ ...fluentCartAnalyticsTools,
44
+ ...fluentCartLicensingTools,
45
+ ...fluentCartAdminTools
46
+ ],
47
+ fluentcrm: [
48
+ ...fluentCRMTools
49
+ ],
50
+ mlplugins: [
51
+ ...mlCanvasTools,
52
+ ...mlImageEditorTools,
53
+ ...mlMediaHubTools,
54
+ ...fluentAffiliateTools
55
+ ],
56
+ debug: [
57
+ ...debugTools
58
+ ]
69
59
  };
60
+ const handlerCategories = {
61
+ wordpress: {
62
+ ...unifiedContentHandlers,
63
+ ...unifiedTaxonomyHandlers,
64
+ ...pluginHandlers,
65
+ ...mediaHandlers,
66
+ ...userHandlers,
67
+ ...pluginRepositoryHandlers,
68
+ ...commentHandlers
69
+ },
70
+ fluentcommunity: {
71
+ ...fluentCommunityHandlers,
72
+ ...fluentCommunityDesignHandlers,
73
+ ...fluentCommunityLayoutHandlers,
74
+ ...fluentCommunityChatHandlers,
75
+ ...fluentCommunityAdminHandlers
76
+ },
77
+ fluentcart: {
78
+ ...fluentCartHandlers,
79
+ ...fluentCartAnalyticsHandlers,
80
+ ...fluentCartLicensingHandlers,
81
+ ...fluentCartAdminHandlers
82
+ },
83
+ fluentcrm: {
84
+ ...fluentCRMHandlers
85
+ },
86
+ mlplugins: {
87
+ ...mlCanvasHandlers,
88
+ ...mlImageEditorHandlers,
89
+ ...mlMediaHubHandlers,
90
+ ...fluentAffiliateHandlers
91
+ },
92
+ debug: {
93
+ ...debugHandlers
94
+ }
95
+ };
96
+ // Filter tools based on LOAD_ONLY environment variable
97
+ function getFilteredTools() {
98
+ const loadOnly = process.env.LOAD_ONLY?.toLowerCase();
99
+ if (!loadOnly) {
100
+ // No filter - load all tools
101
+ return [
102
+ ...toolCategories.wordpress,
103
+ ...toolCategories.fluentcommunity,
104
+ ...toolCategories.fluentcart,
105
+ ...toolCategories.fluentcrm,
106
+ ...toolCategories.mlplugins,
107
+ ...toolCategories.debug
108
+ ];
109
+ }
110
+ // Load specific category
111
+ const category = loadOnly;
112
+ if (toolCategories[category]) {
113
+ console.error(`📦 Loading only: ${loadOnly}`);
114
+ return toolCategories[category];
115
+ }
116
+ console.error(`⚠️ Unknown LOAD_ONLY value: ${loadOnly}. Loading all tools.`);
117
+ return [
118
+ ...toolCategories.wordpress,
119
+ ...toolCategories.fluentcommunity,
120
+ ...toolCategories.fluentcart,
121
+ ...toolCategories.fluentcrm,
122
+ ...toolCategories.mlplugins,
123
+ ...toolCategories.debug
124
+ ];
125
+ }
126
+ function getFilteredHandlers() {
127
+ const loadOnly = process.env.LOAD_ONLY?.toLowerCase();
128
+ if (!loadOnly) {
129
+ // No filter - load all handlers
130
+ return {
131
+ ...handlerCategories.wordpress,
132
+ ...handlerCategories.fluentcommunity,
133
+ ...handlerCategories.fluentcart,
134
+ ...handlerCategories.fluentcrm,
135
+ ...handlerCategories.mlplugins,
136
+ ...handlerCategories.debug
137
+ };
138
+ }
139
+ // Load specific category
140
+ const category = loadOnly;
141
+ if (handlerCategories[category]) {
142
+ return handlerCategories[category];
143
+ }
144
+ return {
145
+ ...handlerCategories.wordpress,
146
+ ...handlerCategories.fluentcommunity,
147
+ ...handlerCategories.fluentcart,
148
+ ...handlerCategories.fluentcrm,
149
+ ...handlerCategories.mlplugins,
150
+ ...handlerCategories.debug
151
+ };
152
+ }
153
+ // Export filtered tools and handlers
154
+ export const allTools = getFilteredTools();
155
+ export const toolHandlers = getFilteredHandlers();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wplaunchify/ml-mcp-server",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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",