@wplaunchify/ml-mcp-server 2.4.11 → 2.5.2
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/fluent-crm.js +24 -48
- package/build/tools/fluent-mcp-pro.d.ts +854 -0
- package/build/tools/fluent-mcp-pro.js +1663 -0
- package/build/tools/index.js +17 -0
- package/package.json +4 -2
|
@@ -240,8 +240,7 @@ export const fluentCRMHandlers = {
|
|
|
240
240
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
241
241
|
}
|
|
242
242
|
catch (error) {
|
|
243
|
-
|
|
244
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
243
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
245
244
|
}
|
|
246
245
|
},
|
|
247
246
|
fcrm_get_contact: async (args) => {
|
|
@@ -250,8 +249,7 @@ export const fluentCRMHandlers = {
|
|
|
250
249
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
251
250
|
}
|
|
252
251
|
catch (error) {
|
|
253
|
-
|
|
254
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
252
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
255
253
|
}
|
|
256
254
|
},
|
|
257
255
|
fcrm_create_contact: async (args) => {
|
|
@@ -260,8 +258,7 @@ export const fluentCRMHandlers = {
|
|
|
260
258
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
261
259
|
}
|
|
262
260
|
catch (error) {
|
|
263
|
-
|
|
264
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
261
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
265
262
|
}
|
|
266
263
|
},
|
|
267
264
|
fcrm_update_contact: async (args) => {
|
|
@@ -271,8 +268,7 @@ export const fluentCRMHandlers = {
|
|
|
271
268
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
272
269
|
}
|
|
273
270
|
catch (error) {
|
|
274
|
-
|
|
275
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
271
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
276
272
|
}
|
|
277
273
|
},
|
|
278
274
|
fcrm_delete_contact: async (args) => {
|
|
@@ -281,8 +277,7 @@ export const fluentCRMHandlers = {
|
|
|
281
277
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
282
278
|
}
|
|
283
279
|
catch (error) {
|
|
284
|
-
|
|
285
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
280
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
286
281
|
}
|
|
287
282
|
},
|
|
288
283
|
// List handlers
|
|
@@ -299,8 +294,7 @@ export const fluentCRMHandlers = {
|
|
|
299
294
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
300
295
|
}
|
|
301
296
|
catch (error) {
|
|
302
|
-
|
|
303
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
297
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
304
298
|
}
|
|
305
299
|
},
|
|
306
300
|
fcrm_get_list: async (args) => {
|
|
@@ -309,8 +303,7 @@ export const fluentCRMHandlers = {
|
|
|
309
303
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
310
304
|
}
|
|
311
305
|
catch (error) {
|
|
312
|
-
|
|
313
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
306
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
314
307
|
}
|
|
315
308
|
},
|
|
316
309
|
fcrm_create_list: async (args) => {
|
|
@@ -319,8 +312,7 @@ export const fluentCRMHandlers = {
|
|
|
319
312
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
320
313
|
}
|
|
321
314
|
catch (error) {
|
|
322
|
-
|
|
323
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
315
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
324
316
|
}
|
|
325
317
|
},
|
|
326
318
|
fcrm_update_list: async (args) => {
|
|
@@ -330,8 +322,7 @@ export const fluentCRMHandlers = {
|
|
|
330
322
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
331
323
|
}
|
|
332
324
|
catch (error) {
|
|
333
|
-
|
|
334
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
325
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
335
326
|
}
|
|
336
327
|
},
|
|
337
328
|
fcrm_delete_list: async (args) => {
|
|
@@ -340,8 +331,7 @@ export const fluentCRMHandlers = {
|
|
|
340
331
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
341
332
|
}
|
|
342
333
|
catch (error) {
|
|
343
|
-
|
|
344
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
334
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
345
335
|
}
|
|
346
336
|
},
|
|
347
337
|
// Tag handlers
|
|
@@ -358,8 +348,7 @@ export const fluentCRMHandlers = {
|
|
|
358
348
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
359
349
|
}
|
|
360
350
|
catch (error) {
|
|
361
|
-
|
|
362
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
351
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
363
352
|
}
|
|
364
353
|
},
|
|
365
354
|
fcrm_get_tag: async (args) => {
|
|
@@ -368,8 +357,7 @@ export const fluentCRMHandlers = {
|
|
|
368
357
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
369
358
|
}
|
|
370
359
|
catch (error) {
|
|
371
|
-
|
|
372
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
360
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
373
361
|
}
|
|
374
362
|
},
|
|
375
363
|
fcrm_create_tag: async (args) => {
|
|
@@ -378,8 +366,7 @@ export const fluentCRMHandlers = {
|
|
|
378
366
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
379
367
|
}
|
|
380
368
|
catch (error) {
|
|
381
|
-
|
|
382
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
369
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
383
370
|
}
|
|
384
371
|
},
|
|
385
372
|
fcrm_update_tag: async (args) => {
|
|
@@ -389,8 +376,7 @@ export const fluentCRMHandlers = {
|
|
|
389
376
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
390
377
|
}
|
|
391
378
|
catch (error) {
|
|
392
|
-
|
|
393
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
379
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
394
380
|
}
|
|
395
381
|
},
|
|
396
382
|
fcrm_delete_tag: async (args) => {
|
|
@@ -399,8 +385,7 @@ export const fluentCRMHandlers = {
|
|
|
399
385
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
400
386
|
}
|
|
401
387
|
catch (error) {
|
|
402
|
-
|
|
403
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
388
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
404
389
|
}
|
|
405
390
|
},
|
|
406
391
|
// Campaign handlers
|
|
@@ -417,8 +402,7 @@ export const fluentCRMHandlers = {
|
|
|
417
402
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
418
403
|
}
|
|
419
404
|
catch (error) {
|
|
420
|
-
|
|
421
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
405
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
422
406
|
}
|
|
423
407
|
},
|
|
424
408
|
fcrm_get_campaign: async (args) => {
|
|
@@ -427,8 +411,7 @@ export const fluentCRMHandlers = {
|
|
|
427
411
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
428
412
|
}
|
|
429
413
|
catch (error) {
|
|
430
|
-
|
|
431
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
414
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
432
415
|
}
|
|
433
416
|
},
|
|
434
417
|
fcrm_create_campaign: async (args) => {
|
|
@@ -437,8 +420,7 @@ export const fluentCRMHandlers = {
|
|
|
437
420
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
438
421
|
}
|
|
439
422
|
catch (error) {
|
|
440
|
-
|
|
441
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
423
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
442
424
|
}
|
|
443
425
|
},
|
|
444
426
|
fcrm_send_campaign: async (args) => {
|
|
@@ -448,8 +430,7 @@ export const fluentCRMHandlers = {
|
|
|
448
430
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
449
431
|
}
|
|
450
432
|
catch (error) {
|
|
451
|
-
|
|
452
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
433
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
453
434
|
}
|
|
454
435
|
},
|
|
455
436
|
// Template handlers
|
|
@@ -466,8 +447,7 @@ export const fluentCRMHandlers = {
|
|
|
466
447
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
467
448
|
}
|
|
468
449
|
catch (error) {
|
|
469
|
-
|
|
470
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
450
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
471
451
|
}
|
|
472
452
|
},
|
|
473
453
|
fcrm_get_template: async (args) => {
|
|
@@ -476,8 +456,7 @@ export const fluentCRMHandlers = {
|
|
|
476
456
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
477
457
|
}
|
|
478
458
|
catch (error) {
|
|
479
|
-
|
|
480
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
459
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
481
460
|
}
|
|
482
461
|
},
|
|
483
462
|
fcrm_create_template: async (args) => {
|
|
@@ -486,8 +465,7 @@ export const fluentCRMHandlers = {
|
|
|
486
465
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
487
466
|
}
|
|
488
467
|
catch (error) {
|
|
489
|
-
|
|
490
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
468
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
491
469
|
}
|
|
492
470
|
},
|
|
493
471
|
fcrm_update_template: async (args) => {
|
|
@@ -497,8 +475,7 @@ export const fluentCRMHandlers = {
|
|
|
497
475
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
498
476
|
}
|
|
499
477
|
catch (error) {
|
|
500
|
-
|
|
501
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
478
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
502
479
|
}
|
|
503
480
|
},
|
|
504
481
|
fcrm_delete_template: async (args) => {
|
|
@@ -507,8 +484,7 @@ export const fluentCRMHandlers = {
|
|
|
507
484
|
return { toolResult: { content: [{ type: 'text', text: JSON.stringify(response, null, 2) }] } };
|
|
508
485
|
}
|
|
509
486
|
catch (error) {
|
|
510
|
-
|
|
511
|
-
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${errorMessage}` }] } };
|
|
487
|
+
return { toolResult: { isError: true, content: [{ type: 'text', text: `Error: ${error.message}` }] } };
|
|
512
488
|
}
|
|
513
489
|
},
|
|
514
490
|
};
|