@wplaunchify/ml-mcp-server 1.0.0

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.
Files changed (49) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +220 -0
  3. package/build/cli.d.ts +2 -0
  4. package/build/cli.js +52 -0
  5. package/build/server.d.ts +2 -0
  6. package/build/server.js +97 -0
  7. package/build/tools/comments.d.ts +212 -0
  8. package/build/tools/comments.js +181 -0
  9. package/build/tools/fluent-affiliate.d.ts +2 -0
  10. package/build/tools/fluent-affiliate.js +3 -0
  11. package/build/tools/fluent-cart.d.ts +706 -0
  12. package/build/tools/fluent-cart.js +642 -0
  13. package/build/tools/fluent-community-BACKUP.d.ts +364 -0
  14. package/build/tools/fluent-community-BACKUP.js +883 -0
  15. package/build/tools/fluent-community-MINIMAL.d.ts +69 -0
  16. package/build/tools/fluent-community-MINIMAL.js +92 -0
  17. package/build/tools/fluent-community-design.d.ts +3 -0
  18. package/build/tools/fluent-community-design.js +150 -0
  19. package/build/tools/fluent-community-layout.d.ts +119 -0
  20. package/build/tools/fluent-community-layout.js +88 -0
  21. package/build/tools/fluent-community.d.ts +364 -0
  22. package/build/tools/fluent-community.js +528 -0
  23. package/build/tools/fluent-crm.d.ts +3 -0
  24. package/build/tools/fluent-crm.js +392 -0
  25. package/build/tools/index.d.ts +2205 -0
  26. package/build/tools/index.js +54 -0
  27. package/build/tools/media.d.ts +135 -0
  28. package/build/tools/media.js +168 -0
  29. package/build/tools/ml-canvas.d.ts +91 -0
  30. package/build/tools/ml-canvas.js +109 -0
  31. package/build/tools/ml-image-editor.d.ts +230 -0
  32. package/build/tools/ml-image-editor.js +270 -0
  33. package/build/tools/ml-media-hub.d.ts +575 -0
  34. package/build/tools/ml-media-hub.js +714 -0
  35. package/build/tools/plugin-repository.d.ts +62 -0
  36. package/build/tools/plugin-repository.js +149 -0
  37. package/build/tools/plugins.d.ts +129 -0
  38. package/build/tools/plugins.js +148 -0
  39. package/build/tools/unified-content.d.ts +313 -0
  40. package/build/tools/unified-content.js +615 -0
  41. package/build/tools/unified-taxonomies.d.ts +229 -0
  42. package/build/tools/unified-taxonomies.js +479 -0
  43. package/build/tools/users.d.ts +227 -0
  44. package/build/tools/users.js +182 -0
  45. package/build/types/wordpress-types.d.ts +151 -0
  46. package/build/types/wordpress-types.js +2 -0
  47. package/build/wordpress.d.ts +26 -0
  48. package/build/wordpress.js +223 -0
  49. package/package.json +67 -0
@@ -0,0 +1,575 @@
1
+ /**
2
+ * ML Media Hub P2P Tools
3
+ *
4
+ * Provides 10 tools for image search, icon import, and media management:
5
+ * - Google Images search via SERP API
6
+ * - Noun Project icon search and import
7
+ * - Media library management with custom categories
8
+ * - Hotlink support for fast imports
9
+ *
10
+ * API Namespace: /mediahub/v1/
11
+ * Plugin Version: 3.8.0+
12
+ */
13
+ import { z } from 'zod';
14
+ export declare const mlMediaHubTools: ({
15
+ name: string;
16
+ description: string;
17
+ inputSchema: {
18
+ type: "object";
19
+ properties: {
20
+ query: z.ZodString;
21
+ num: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
22
+ size: z.ZodOptional<z.ZodEnum<["large", "medium", "icon"]>>;
23
+ types: z.ZodOptional<z.ZodEnum<["photo", "clipart", "lineart", "animated"]>>;
24
+ license: z.ZodOptional<z.ZodEnum<["creative_commons", "public_domain"]>>;
25
+ };
26
+ };
27
+ } | {
28
+ name: string;
29
+ description: string;
30
+ inputSchema: {
31
+ type: "object";
32
+ properties: {
33
+ images: z.ZodArray<z.ZodObject<{
34
+ url: z.ZodString;
35
+ title: z.ZodString;
36
+ source: z.ZodOptional<z.ZodString>;
37
+ thumbnail: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ url: string;
40
+ title: string;
41
+ source?: string | undefined;
42
+ thumbnail?: string | undefined;
43
+ }, {
44
+ url: string;
45
+ title: string;
46
+ source?: string | undefined;
47
+ thumbnail?: string | undefined;
48
+ }>, "many">;
49
+ category_id: z.ZodOptional<z.ZodNumber>;
50
+ search_term: z.ZodOptional<z.ZodString>;
51
+ is_hotlink: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
52
+ };
53
+ };
54
+ } | {
55
+ name: string;
56
+ description: string;
57
+ inputSchema: {
58
+ type: "object";
59
+ properties: {
60
+ query: z.ZodString;
61
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
62
+ filters: z.ZodOptional<z.ZodObject<{
63
+ public_domain_only: z.ZodOptional<z.ZodBoolean>;
64
+ license: z.ZodOptional<z.ZodString>;
65
+ styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
+ sort: z.ZodOptional<z.ZodEnum<["relevance", "popularity", "newest"]>>;
67
+ }, "strip", z.ZodTypeAny, {
68
+ sort?: "relevance" | "popularity" | "newest" | undefined;
69
+ license?: string | undefined;
70
+ public_domain_only?: boolean | undefined;
71
+ styles?: string[] | undefined;
72
+ }, {
73
+ sort?: "relevance" | "popularity" | "newest" | undefined;
74
+ license?: string | undefined;
75
+ public_domain_only?: boolean | undefined;
76
+ styles?: string[] | undefined;
77
+ }>>;
78
+ };
79
+ };
80
+ } | {
81
+ name: string;
82
+ description: string;
83
+ inputSchema: {
84
+ type: "object";
85
+ properties: {
86
+ icon_id: z.ZodString;
87
+ icon_url: z.ZodString;
88
+ icon_name: z.ZodString;
89
+ attribution: z.ZodOptional<z.ZodString>;
90
+ category_id: z.ZodOptional<z.ZodNumber>;
91
+ };
92
+ };
93
+ } | {
94
+ name: string;
95
+ description: string;
96
+ inputSchema: {
97
+ type: "object";
98
+ properties: {
99
+ per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
100
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
101
+ category_id: z.ZodOptional<z.ZodNumber>;
102
+ search: z.ZodOptional<z.ZodString>;
103
+ };
104
+ };
105
+ } | {
106
+ name: string;
107
+ description: string;
108
+ inputSchema: {
109
+ type: "object";
110
+ properties: {};
111
+ };
112
+ } | {
113
+ name: string;
114
+ description: string;
115
+ inputSchema: {
116
+ type: "object";
117
+ properties: {
118
+ serpapi_key: z.ZodOptional<z.ZodString>;
119
+ noun_api_key: z.ZodOptional<z.ZodString>;
120
+ noun_api_secret: z.ZodOptional<z.ZodString>;
121
+ };
122
+ };
123
+ } | {
124
+ name: string;
125
+ description: string;
126
+ inputSchema: {
127
+ type: "object";
128
+ properties: {
129
+ query: z.ZodString;
130
+ num: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
131
+ filters: z.ZodOptional<z.ZodObject<{
132
+ size: z.ZodOptional<z.ZodEnum<["large", "medium", "icon", "exact"]>>;
133
+ exact_width: z.ZodOptional<z.ZodNumber>;
134
+ exact_height: z.ZodOptional<z.ZodNumber>;
135
+ color_type: z.ZodOptional<z.ZodEnum<["color", "grayscale", "transparent"]>>;
136
+ dominant_color: z.ZodOptional<z.ZodEnum<["red", "orange", "yellow", "green", "blue", "purple", "pink", "white", "gray", "black", "brown"]>>;
137
+ type: z.ZodOptional<z.ZodEnum<["photo", "clipart", "lineart", "animated", "face", "news"]>>;
138
+ license: z.ZodOptional<z.ZodEnum<["creative_commons", "public_domain", "commercial", "modify"]>>;
139
+ date_range: z.ZodOptional<z.ZodEnum<["day", "week", "month", "year"]>>;
140
+ site: z.ZodOptional<z.ZodString>;
141
+ exclude_sites: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
142
+ file_type: z.ZodOptional<z.ZodEnum<["jpg", "png", "gif", "svg", "bmp", "webp"]>>;
143
+ aspect_ratio: z.ZodOptional<z.ZodEnum<["tall", "square", "wide", "panoramic"]>>;
144
+ safe_search: z.ZodOptional<z.ZodEnum<["strict", "moderate", "off"]>>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ type?: "photo" | "clipart" | "lineart" | "animated" | "face" | "news" | undefined;
147
+ size?: "exact" | "icon" | "large" | "medium" | undefined;
148
+ license?: "creative_commons" | "public_domain" | "commercial" | "modify" | undefined;
149
+ exact_width?: number | undefined;
150
+ exact_height?: number | undefined;
151
+ color_type?: "color" | "grayscale" | "transparent" | undefined;
152
+ dominant_color?: "red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "white" | "gray" | "black" | "brown" | undefined;
153
+ date_range?: "day" | "week" | "month" | "year" | undefined;
154
+ site?: string | undefined;
155
+ exclude_sites?: string[] | undefined;
156
+ file_type?: "jpg" | "png" | "gif" | "svg" | "bmp" | "webp" | undefined;
157
+ aspect_ratio?: "tall" | "square" | "wide" | "panoramic" | undefined;
158
+ safe_search?: "strict" | "moderate" | "off" | undefined;
159
+ }, {
160
+ type?: "photo" | "clipart" | "lineart" | "animated" | "face" | "news" | undefined;
161
+ size?: "exact" | "icon" | "large" | "medium" | undefined;
162
+ license?: "creative_commons" | "public_domain" | "commercial" | "modify" | undefined;
163
+ exact_width?: number | undefined;
164
+ exact_height?: number | undefined;
165
+ color_type?: "color" | "grayscale" | "transparent" | undefined;
166
+ dominant_color?: "red" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "white" | "gray" | "black" | "brown" | undefined;
167
+ date_range?: "day" | "week" | "month" | "year" | undefined;
168
+ site?: string | undefined;
169
+ exclude_sites?: string[] | undefined;
170
+ file_type?: "jpg" | "png" | "gif" | "svg" | "bmp" | "webp" | undefined;
171
+ aspect_ratio?: "tall" | "square" | "wide" | "panoramic" | undefined;
172
+ safe_search?: "strict" | "moderate" | "off" | undefined;
173
+ }>>;
174
+ };
175
+ };
176
+ } | {
177
+ name: string;
178
+ description: string;
179
+ inputSchema: {
180
+ type: "object";
181
+ properties: {
182
+ query: z.ZodString;
183
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
184
+ filters: z.ZodOptional<z.ZodObject<{
185
+ style: z.ZodOptional<z.ZodEnum<["outline", "filled", "glyph", "hand-drawn", "flat", "3d"]>>;
186
+ license: z.ZodOptional<z.ZodEnum<["public_domain", "creative_commons", "royalty_free"]>>;
187
+ format: z.ZodOptional<z.ZodEnum<["svg", "png"]>>;
188
+ color: z.ZodOptional<z.ZodString>;
189
+ background: z.ZodOptional<z.ZodString>;
190
+ size: z.ZodOptional<z.ZodNumber>;
191
+ collection_id: z.ZodOptional<z.ZodNumber>;
192
+ creator: z.ZodOptional<z.ZodString>;
193
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
+ exclude_tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
195
+ sort_by: z.ZodOptional<z.ZodEnum<["relevance", "popularity", "recent"]>>;
196
+ min_downloads: z.ZodOptional<z.ZodNumber>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ tags?: string[] | undefined;
199
+ format?: "png" | "svg" | undefined;
200
+ size?: number | undefined;
201
+ license?: "creative_commons" | "public_domain" | "royalty_free" | undefined;
202
+ color?: string | undefined;
203
+ style?: "flat" | "outline" | "filled" | "glyph" | "hand-drawn" | "3d" | undefined;
204
+ background?: string | undefined;
205
+ collection_id?: number | undefined;
206
+ creator?: string | undefined;
207
+ exclude_tags?: string[] | undefined;
208
+ sort_by?: "relevance" | "popularity" | "recent" | undefined;
209
+ min_downloads?: number | undefined;
210
+ }, {
211
+ tags?: string[] | undefined;
212
+ format?: "png" | "svg" | undefined;
213
+ size?: number | undefined;
214
+ license?: "creative_commons" | "public_domain" | "royalty_free" | undefined;
215
+ color?: string | undefined;
216
+ style?: "flat" | "outline" | "filled" | "glyph" | "hand-drawn" | "3d" | undefined;
217
+ background?: string | undefined;
218
+ collection_id?: number | undefined;
219
+ creator?: string | undefined;
220
+ exclude_tags?: string[] | undefined;
221
+ sort_by?: "relevance" | "popularity" | "recent" | undefined;
222
+ min_downloads?: number | undefined;
223
+ }>>;
224
+ };
225
+ };
226
+ } | {
227
+ name: string;
228
+ description: string;
229
+ inputSchema: {
230
+ type: "object";
231
+ properties: {
232
+ type: z.ZodDefault<z.ZodOptional<z.ZodEnum<["images", "icons", "all"]>>>;
233
+ };
234
+ };
235
+ } | {
236
+ name: string;
237
+ description: string;
238
+ inputSchema: {
239
+ type: "object";
240
+ properties: {
241
+ name: z.ZodString;
242
+ };
243
+ };
244
+ } | {
245
+ name: string;
246
+ description: string;
247
+ inputSchema: {
248
+ type: "object";
249
+ properties: {
250
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
251
+ per_page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
252
+ search: z.ZodOptional<z.ZodString>;
253
+ sort: z.ZodOptional<z.ZodEnum<["popular", "recent", "name"]>>;
254
+ };
255
+ };
256
+ } | {
257
+ name: string;
258
+ description: string;
259
+ inputSchema: {
260
+ type: "object";
261
+ properties: {
262
+ collection_id: z.ZodNumber;
263
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
264
+ format: z.ZodOptional<z.ZodEnum<["svg", "png"]>>;
265
+ };
266
+ };
267
+ })[];
268
+ export declare const mlMediaHubHandlers: {
269
+ mlmh_search_images: (args: any) => Promise<{
270
+ toolResult: {
271
+ content: {
272
+ type: string;
273
+ text: string;
274
+ }[];
275
+ isError?: undefined;
276
+ };
277
+ } | {
278
+ toolResult: {
279
+ isError: boolean;
280
+ content: {
281
+ type: string;
282
+ text: string;
283
+ }[];
284
+ };
285
+ }>;
286
+ mlmh_import_images: (args: any) => Promise<{
287
+ toolResult: {
288
+ content: {
289
+ type: string;
290
+ text: string;
291
+ }[];
292
+ isError?: undefined;
293
+ };
294
+ } | {
295
+ toolResult: {
296
+ isError: boolean;
297
+ content: {
298
+ type: string;
299
+ text: string;
300
+ }[];
301
+ };
302
+ }>;
303
+ mlmh_search_icons: (args: any) => Promise<{
304
+ toolResult: {
305
+ content: {
306
+ type: string;
307
+ text: string;
308
+ }[];
309
+ isError?: undefined;
310
+ };
311
+ } | {
312
+ toolResult: {
313
+ isError: boolean;
314
+ content: {
315
+ type: string;
316
+ text: string;
317
+ }[];
318
+ };
319
+ }>;
320
+ mlmh_import_icon: (args: any) => Promise<{
321
+ toolResult: {
322
+ content: {
323
+ type: string;
324
+ text: string;
325
+ }[];
326
+ isError?: undefined;
327
+ };
328
+ } | {
329
+ toolResult: {
330
+ isError: boolean;
331
+ content: {
332
+ type: string;
333
+ text: string;
334
+ }[];
335
+ };
336
+ }>;
337
+ mlmh_list_media: (args: any) => Promise<{
338
+ toolResult: {
339
+ content: {
340
+ type: string;
341
+ text: string;
342
+ }[];
343
+ isError?: undefined;
344
+ };
345
+ } | {
346
+ toolResult: {
347
+ isError: boolean;
348
+ content: {
349
+ type: string;
350
+ text: string;
351
+ }[];
352
+ };
353
+ }>;
354
+ mlmh_list_categories: (args: any) => Promise<{
355
+ toolResult: {
356
+ content: {
357
+ type: string;
358
+ text: string;
359
+ }[];
360
+ isError?: undefined;
361
+ };
362
+ } | {
363
+ toolResult: {
364
+ isError: boolean;
365
+ content: {
366
+ type: string;
367
+ text: string;
368
+ }[];
369
+ };
370
+ }>;
371
+ mlmh_create_category: (args: any) => Promise<{
372
+ toolResult: {
373
+ content: {
374
+ type: string;
375
+ text: string;
376
+ }[];
377
+ isError?: undefined;
378
+ };
379
+ } | {
380
+ toolResult: {
381
+ isError: boolean;
382
+ content: {
383
+ type: string;
384
+ text: string;
385
+ }[];
386
+ };
387
+ }>;
388
+ mlmh_get_settings: (args: any) => Promise<{
389
+ toolResult: {
390
+ content: {
391
+ type: string;
392
+ text: string;
393
+ }[];
394
+ isError?: undefined;
395
+ };
396
+ } | {
397
+ toolResult: {
398
+ isError: boolean;
399
+ content: {
400
+ type: string;
401
+ text: string;
402
+ }[];
403
+ };
404
+ }>;
405
+ mlmh_update_settings: (args: any) => Promise<{
406
+ toolResult: {
407
+ content: {
408
+ type: string;
409
+ text: string;
410
+ }[];
411
+ isError?: undefined;
412
+ };
413
+ } | {
414
+ toolResult: {
415
+ isError: boolean;
416
+ content: {
417
+ type: string;
418
+ text: string;
419
+ }[];
420
+ };
421
+ }>;
422
+ mlmh_get_info: (args: any) => Promise<{
423
+ toolResult: {
424
+ content: {
425
+ type: string;
426
+ text: string;
427
+ }[];
428
+ isError?: undefined;
429
+ };
430
+ } | {
431
+ toolResult: {
432
+ isError: boolean;
433
+ content: {
434
+ type: string;
435
+ text: string;
436
+ }[];
437
+ };
438
+ }>;
439
+ mlmh_advanced_image_search: (args: any) => Promise<{
440
+ toolResult: {
441
+ content: {
442
+ type: string;
443
+ text: string;
444
+ }[];
445
+ isError?: undefined;
446
+ };
447
+ } | {
448
+ toolResult: {
449
+ isError: boolean;
450
+ content: {
451
+ type: string;
452
+ text: string;
453
+ }[];
454
+ };
455
+ }>;
456
+ mlmh_advanced_icon_search: (args: any) => Promise<{
457
+ toolResult: {
458
+ content: {
459
+ type: string;
460
+ text: string;
461
+ }[];
462
+ isError?: undefined;
463
+ };
464
+ } | {
465
+ toolResult: {
466
+ isError: boolean;
467
+ content: {
468
+ type: string;
469
+ text: string;
470
+ }[];
471
+ };
472
+ }>;
473
+ mlmh_save_search_preset: (args: any) => Promise<{
474
+ toolResult: {
475
+ content: {
476
+ type: string;
477
+ text: string;
478
+ }[];
479
+ isError?: undefined;
480
+ };
481
+ } | {
482
+ toolResult: {
483
+ isError: boolean;
484
+ content: {
485
+ type: string;
486
+ text: string;
487
+ }[];
488
+ };
489
+ }>;
490
+ mlmh_load_search_preset: (args: any) => Promise<{
491
+ toolResult: {
492
+ content: {
493
+ type: string;
494
+ text: string;
495
+ }[];
496
+ isError?: undefined;
497
+ };
498
+ } | {
499
+ toolResult: {
500
+ isError: boolean;
501
+ content: {
502
+ type: string;
503
+ text: string;
504
+ }[];
505
+ };
506
+ }>;
507
+ mlmh_list_search_presets: (args: any) => Promise<{
508
+ toolResult: {
509
+ content: {
510
+ type: string;
511
+ text: string;
512
+ }[];
513
+ isError?: undefined;
514
+ };
515
+ } | {
516
+ toolResult: {
517
+ isError: boolean;
518
+ content: {
519
+ type: string;
520
+ text: string;
521
+ }[];
522
+ };
523
+ }>;
524
+ mlmh_delete_search_preset: (args: any) => Promise<{
525
+ toolResult: {
526
+ content: {
527
+ type: string;
528
+ text: string;
529
+ }[];
530
+ isError?: undefined;
531
+ };
532
+ } | {
533
+ toolResult: {
534
+ isError: boolean;
535
+ content: {
536
+ type: string;
537
+ text: string;
538
+ }[];
539
+ };
540
+ }>;
541
+ mlmh_browse_icon_collections: (args: any) => Promise<{
542
+ toolResult: {
543
+ content: {
544
+ type: string;
545
+ text: string;
546
+ }[];
547
+ isError?: undefined;
548
+ };
549
+ } | {
550
+ toolResult: {
551
+ isError: boolean;
552
+ content: {
553
+ type: string;
554
+ text: string;
555
+ }[];
556
+ };
557
+ }>;
558
+ mlmh_get_collection_icons: (args: any) => Promise<{
559
+ toolResult: {
560
+ content: {
561
+ type: string;
562
+ text: string;
563
+ }[];
564
+ isError?: undefined;
565
+ };
566
+ } | {
567
+ toolResult: {
568
+ isError: boolean;
569
+ content: {
570
+ type: string;
571
+ text: string;
572
+ }[];
573
+ };
574
+ }>;
575
+ };