@apex-inc/mcp-server 0.2.0 → 0.3.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/README.md +13 -119
- package/dist/api-client.d.ts +25 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +64 -4
- package/dist/api-client.js.map +1 -1
- package/dist/index.js +15 -4
- package/dist/index.js.map +1 -1
- package/dist/resources.d.ts +26 -0
- package/dist/resources.d.ts.map +1 -1
- package/dist/resources.js +113 -3
- package/dist/resources.js.map +1 -1
- package/dist/tools.d.ts +247 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +309 -33
- package/dist/tools.js.map +1 -1
- package/package.json +3 -7
- package/skills/apex-communications/SKILL.md +87 -0
- package/skills/apex-growth-intelligence/SKILL.md +116 -0
- package/skills/apex-integration-cookbook/SKILL.md +214 -0
package/dist/tools.d.ts
CHANGED
|
@@ -310,6 +310,24 @@ export declare const toolDefinitions: {
|
|
|
310
310
|
}[];
|
|
311
311
|
}>;
|
|
312
312
|
};
|
|
313
|
+
graduate_experiment: {
|
|
314
|
+
description: string;
|
|
315
|
+
schema: z.ZodObject<{
|
|
316
|
+
experimentId: z.ZodString;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
experimentId: string;
|
|
319
|
+
}, {
|
|
320
|
+
experimentId: string;
|
|
321
|
+
}>;
|
|
322
|
+
handler: ({ experimentId }: {
|
|
323
|
+
experimentId: string;
|
|
324
|
+
}) => Promise<{
|
|
325
|
+
content: {
|
|
326
|
+
type: "text";
|
|
327
|
+
text: string;
|
|
328
|
+
}[];
|
|
329
|
+
}>;
|
|
330
|
+
};
|
|
313
331
|
record_outcome: {
|
|
314
332
|
description: string;
|
|
315
333
|
schema: z.ZodObject<{
|
|
@@ -502,5 +520,234 @@ export declare const toolDefinitions: {
|
|
|
502
520
|
}[];
|
|
503
521
|
}>;
|
|
504
522
|
};
|
|
523
|
+
list_orgs: {
|
|
524
|
+
description: string;
|
|
525
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
526
|
+
handler: () => Promise<{
|
|
527
|
+
content: {
|
|
528
|
+
type: "text";
|
|
529
|
+
text: string;
|
|
530
|
+
}[];
|
|
531
|
+
}>;
|
|
532
|
+
};
|
|
533
|
+
switch_org: {
|
|
534
|
+
description: string;
|
|
535
|
+
schema: z.ZodObject<{
|
|
536
|
+
orgId: z.ZodString;
|
|
537
|
+
}, "strip", z.ZodTypeAny, {
|
|
538
|
+
orgId: string;
|
|
539
|
+
}, {
|
|
540
|
+
orgId: string;
|
|
541
|
+
}>;
|
|
542
|
+
handler: (args: {
|
|
543
|
+
orgId: string;
|
|
544
|
+
}) => Promise<{
|
|
545
|
+
content: {
|
|
546
|
+
type: "text";
|
|
547
|
+
text: string;
|
|
548
|
+
}[];
|
|
549
|
+
isError: boolean;
|
|
550
|
+
} | {
|
|
551
|
+
content: {
|
|
552
|
+
type: "text";
|
|
553
|
+
text: string;
|
|
554
|
+
}[];
|
|
555
|
+
isError?: undefined;
|
|
556
|
+
}>;
|
|
557
|
+
};
|
|
558
|
+
recommend_communications: {
|
|
559
|
+
description: string;
|
|
560
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
561
|
+
handler: () => Promise<{
|
|
562
|
+
content: {
|
|
563
|
+
type: "text";
|
|
564
|
+
text: string;
|
|
565
|
+
}[];
|
|
566
|
+
}>;
|
|
567
|
+
};
|
|
568
|
+
generate_communications: {
|
|
569
|
+
description: string;
|
|
570
|
+
schema: z.ZodObject<{
|
|
571
|
+
catalogEntryIds: z.ZodArray<z.ZodString, "many">;
|
|
572
|
+
}, "strip", z.ZodTypeAny, {
|
|
573
|
+
catalogEntryIds: string[];
|
|
574
|
+
}, {
|
|
575
|
+
catalogEntryIds: string[];
|
|
576
|
+
}>;
|
|
577
|
+
handler: (args: {
|
|
578
|
+
catalogEntryIds: string[];
|
|
579
|
+
}) => Promise<{
|
|
580
|
+
content: {
|
|
581
|
+
type: "text";
|
|
582
|
+
text: string;
|
|
583
|
+
}[];
|
|
584
|
+
}>;
|
|
585
|
+
};
|
|
586
|
+
list_communications: {
|
|
587
|
+
description: string;
|
|
588
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
589
|
+
handler: () => Promise<{
|
|
590
|
+
content: {
|
|
591
|
+
type: "text";
|
|
592
|
+
text: string;
|
|
593
|
+
}[];
|
|
594
|
+
}>;
|
|
595
|
+
};
|
|
596
|
+
edit_communication: {
|
|
597
|
+
description: string;
|
|
598
|
+
schema: z.ZodObject<{
|
|
599
|
+
communicationId: z.ZodString;
|
|
600
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
601
|
+
slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
602
|
+
channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
603
|
+
status: z.ZodOptional<z.ZodEnum<["draft", "active", "paused"]>>;
|
|
604
|
+
}, "strip", z.ZodTypeAny, {
|
|
605
|
+
communicationId: string;
|
|
606
|
+
status?: "draft" | "paused" | "active" | undefined;
|
|
607
|
+
subject?: string | undefined;
|
|
608
|
+
slots?: Record<string, string> | undefined;
|
|
609
|
+
channels?: string[] | undefined;
|
|
610
|
+
}, {
|
|
611
|
+
communicationId: string;
|
|
612
|
+
status?: "draft" | "paused" | "active" | undefined;
|
|
613
|
+
subject?: string | undefined;
|
|
614
|
+
slots?: Record<string, string> | undefined;
|
|
615
|
+
channels?: string[] | undefined;
|
|
616
|
+
}>;
|
|
617
|
+
handler: (args: {
|
|
618
|
+
communicationId: string;
|
|
619
|
+
subject?: string;
|
|
620
|
+
slots?: Record<string, string>;
|
|
621
|
+
channels?: string[];
|
|
622
|
+
status?: string;
|
|
623
|
+
}) => Promise<{
|
|
624
|
+
content: {
|
|
625
|
+
type: "text";
|
|
626
|
+
text: string;
|
|
627
|
+
}[];
|
|
628
|
+
}>;
|
|
629
|
+
};
|
|
630
|
+
preview_communication: {
|
|
631
|
+
description: string;
|
|
632
|
+
schema: z.ZodObject<{
|
|
633
|
+
communicationId: z.ZodString;
|
|
634
|
+
}, "strip", z.ZodTypeAny, {
|
|
635
|
+
communicationId: string;
|
|
636
|
+
}, {
|
|
637
|
+
communicationId: string;
|
|
638
|
+
}>;
|
|
639
|
+
handler: (args: {
|
|
640
|
+
communicationId: string;
|
|
641
|
+
}) => Promise<{
|
|
642
|
+
content: {
|
|
643
|
+
type: "text";
|
|
644
|
+
text: string;
|
|
645
|
+
}[];
|
|
646
|
+
}>;
|
|
647
|
+
};
|
|
648
|
+
send_test_communication: {
|
|
649
|
+
description: string;
|
|
650
|
+
schema: z.ZodObject<{
|
|
651
|
+
communicationId: z.ZodString;
|
|
652
|
+
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
communicationId: string;
|
|
654
|
+
}, {
|
|
655
|
+
communicationId: string;
|
|
656
|
+
}>;
|
|
657
|
+
handler: (args: {
|
|
658
|
+
communicationId: string;
|
|
659
|
+
}) => Promise<{
|
|
660
|
+
content: {
|
|
661
|
+
type: "text";
|
|
662
|
+
text: string;
|
|
663
|
+
}[];
|
|
664
|
+
}>;
|
|
665
|
+
};
|
|
666
|
+
trigger_communication: {
|
|
667
|
+
description: string;
|
|
668
|
+
schema: z.ZodObject<{
|
|
669
|
+
communicationId: z.ZodString;
|
|
670
|
+
recipientEmail: z.ZodString;
|
|
671
|
+
mergeData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
672
|
+
}, "strip", z.ZodTypeAny, {
|
|
673
|
+
communicationId: string;
|
|
674
|
+
recipientEmail: string;
|
|
675
|
+
mergeData?: Record<string, string> | undefined;
|
|
676
|
+
}, {
|
|
677
|
+
communicationId: string;
|
|
678
|
+
recipientEmail: string;
|
|
679
|
+
mergeData?: Record<string, string> | undefined;
|
|
680
|
+
}>;
|
|
681
|
+
handler: (args: {
|
|
682
|
+
communicationId: string;
|
|
683
|
+
recipientEmail: string;
|
|
684
|
+
mergeData?: Record<string, string>;
|
|
685
|
+
}) => Promise<{
|
|
686
|
+
content: {
|
|
687
|
+
type: "text";
|
|
688
|
+
text: string;
|
|
689
|
+
}[];
|
|
690
|
+
}>;
|
|
691
|
+
};
|
|
692
|
+
create_comm_experiment: {
|
|
693
|
+
description: string;
|
|
694
|
+
schema: z.ZodObject<{
|
|
695
|
+
communicationId: z.ZodString;
|
|
696
|
+
splitLevel: z.ZodEnum<["subject", "body", "cta", "full"]>;
|
|
697
|
+
funnelGoal: z.ZodString;
|
|
698
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
699
|
+
name: z.ZodString;
|
|
700
|
+
bodyOverrides: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
701
|
+
subjectOverride: z.ZodOptional<z.ZodString>;
|
|
702
|
+
}, "strip", z.ZodTypeAny, {
|
|
703
|
+
name: string;
|
|
704
|
+
bodyOverrides?: Record<string, string> | undefined;
|
|
705
|
+
subjectOverride?: string | undefined;
|
|
706
|
+
}, {
|
|
707
|
+
name: string;
|
|
708
|
+
bodyOverrides?: Record<string, string> | undefined;
|
|
709
|
+
subjectOverride?: string | undefined;
|
|
710
|
+
}>, "many">;
|
|
711
|
+
}, "strip", z.ZodTypeAny, {
|
|
712
|
+
communicationId: string;
|
|
713
|
+
splitLevel: "subject" | "body" | "cta" | "full";
|
|
714
|
+
funnelGoal: string;
|
|
715
|
+
variants: {
|
|
716
|
+
name: string;
|
|
717
|
+
bodyOverrides?: Record<string, string> | undefined;
|
|
718
|
+
subjectOverride?: string | undefined;
|
|
719
|
+
}[];
|
|
720
|
+
}, {
|
|
721
|
+
communicationId: string;
|
|
722
|
+
splitLevel: "subject" | "body" | "cta" | "full";
|
|
723
|
+
funnelGoal: string;
|
|
724
|
+
variants: {
|
|
725
|
+
name: string;
|
|
726
|
+
bodyOverrides?: Record<string, string> | undefined;
|
|
727
|
+
subjectOverride?: string | undefined;
|
|
728
|
+
}[];
|
|
729
|
+
}>;
|
|
730
|
+
handler: (args: {
|
|
731
|
+
communicationId: string;
|
|
732
|
+
splitLevel: string;
|
|
733
|
+
funnelGoal: string;
|
|
734
|
+
variants: unknown[];
|
|
735
|
+
}) => Promise<{
|
|
736
|
+
content: {
|
|
737
|
+
type: "text";
|
|
738
|
+
text: string;
|
|
739
|
+
}[];
|
|
740
|
+
}>;
|
|
741
|
+
};
|
|
742
|
+
get_event_taxonomy: {
|
|
743
|
+
description: string;
|
|
744
|
+
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
745
|
+
handler: () => Promise<{
|
|
746
|
+
content: {
|
|
747
|
+
type: "text";
|
|
748
|
+
text: string;
|
|
749
|
+
}[];
|
|
750
|
+
}>;
|
|
751
|
+
};
|
|
505
752
|
};
|
|
506
753
|
//# sourceMappingURL=tools.d.ts.map
|
package/dist/tools.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqGxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;uCAQa;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,SAAS,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;oDAqFvB;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;6DA6C/C;YAAE,SAAS,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,cAAc,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;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