@avallon-labs/mcp 17.1.0-staging.399 → 17.2.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.
package/dist/index.js CHANGED
@@ -54,5 +54,5 @@ function setupFetch() {
54
54
 
55
55
  // src/index.ts
56
56
  setupFetch();
57
- await import("./server-3BAXGSWA.js");
57
+ await import("./server-AK737M4G.js");
58
58
  //# sourceMappingURL=index.js.map
@@ -68,6 +68,24 @@ var getVoiceAgent = async (voiceAgentId, options) => {
68
68
  headers: res.headers
69
69
  };
70
70
  };
71
+ var getUpdateVoiceAgentUrl = (voiceAgentId) => {
72
+ return `/v1/voice-agents/${voiceAgentId}`;
73
+ };
74
+ var updateVoiceAgent = async (voiceAgentId, updateVoiceAgentBody, options) => {
75
+ const res = await fetch(getUpdateVoiceAgentUrl(voiceAgentId), {
76
+ ...options,
77
+ method: "PATCH",
78
+ headers: { "Content-Type": "application/json", ...options?.headers },
79
+ body: JSON.stringify(updateVoiceAgentBody)
80
+ });
81
+ const body = [204, 205, 304].includes(res.status) ? null : await res.text();
82
+ const data = body ? JSON.parse(body) : {};
83
+ return {
84
+ data,
85
+ status: res.status,
86
+ headers: res.headers
87
+ };
88
+ };
71
89
  var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
72
90
  return `/v1/voice-agents/${voiceAgentId}/tools`;
73
91
  };
@@ -1648,6 +1666,20 @@ var getVoiceAgentHandler = async (args) => {
1648
1666
  ]
1649
1667
  };
1650
1668
  };
1669
+ var updateVoiceAgentHandler = async (args) => {
1670
+ const res = await updateVoiceAgent(
1671
+ args.pathParams.voiceAgentId,
1672
+ args.bodyParams
1673
+ );
1674
+ return {
1675
+ content: [
1676
+ {
1677
+ type: "text",
1678
+ text: JSON.stringify(res)
1679
+ }
1680
+ ]
1681
+ };
1682
+ };
1651
1683
  var addToolsToVoiceAgentHandler = async (args) => {
1652
1684
  const res = await addToolsToVoiceAgent(
1653
1685
  args.pathParams.voiceAgentId,
@@ -2574,6 +2606,11 @@ var ListVoiceAgentsResponse = zod.object({
2574
2606
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2575
2607
  ]),
2576
2608
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
2609
+ call_processor_id: zod.union([zod.string(), zod.null()]),
2610
+ call_processor_type: zod.union([
2611
+ zod.enum(["extractor", "worker"]),
2612
+ zod.null()
2613
+ ]),
2577
2614
  background_sounds: zod.enum(["enabled", "disabled"]),
2578
2615
  created_at: zod.string().datetime({}),
2579
2616
  updated_at: zod.string().datetime({}),
@@ -2640,7 +2677,9 @@ var CreateVoiceAgentBody = zod.object({
2640
2677
  phone_number_id: zod.string().optional().describe("ID of phone number to assign to agent"),
2641
2678
  language: zod.enum(["en-US", "de-DE"]).describe("Language for the agent"),
2642
2679
  dial_pad: zod.boolean().optional().describe("Whether the agent supports DTMF dial pad input"),
2643
- end_call: zod.boolean().optional().describe("Whether the agent can end the call")
2680
+ end_call: zod.boolean().optional().describe("Whether the agent can end the call"),
2681
+ call_processor_id: zod.union([zod.string(), zod.null()]).optional().describe("ID of extractor or worker to run after call"),
2682
+ call_processor_type: zod.enum(["extractor", "worker"]).optional().describe("Type of processor: extractor or worker")
2644
2683
  });
2645
2684
  var GetVoiceAgentParams = zod.object({
2646
2685
  voiceAgentId: zod.string().min(1).describe("Voice Agent ID")
@@ -2685,6 +2724,72 @@ var GetVoiceAgentResponse = zod.object({
2685
2724
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2686
2725
  ]),
2687
2726
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
2727
+ call_processor_id: zod.union([zod.string(), zod.null()]),
2728
+ call_processor_type: zod.union([
2729
+ zod.enum(["extractor", "worker"]),
2730
+ zod.null()
2731
+ ]),
2732
+ background_sounds: zod.enum(["enabled", "disabled"]),
2733
+ created_at: zod.string().datetime({}),
2734
+ updated_at: zod.string().datetime({}),
2735
+ phone_number: zod.union([zod.string(), zod.null()]),
2736
+ dial_pad: zod.boolean(),
2737
+ end_call: zod.boolean()
2738
+ })
2739
+ });
2740
+ var UpdateVoiceAgentParams = zod.object({
2741
+ voiceAgentId: zod.string().uuid()
2742
+ });
2743
+ var UpdateVoiceAgentBody = zod.object({
2744
+ name: zod.string().min(1).optional(),
2745
+ call_processor_id: zod.union([zod.string(), zod.null()]).optional(),
2746
+ call_processor_type: zod.enum(["extractor", "worker"]).optional()
2747
+ });
2748
+ var UpdateVoiceAgentResponse = zod.object({
2749
+ agent: zod.object({
2750
+ id: zod.string(),
2751
+ tenant_id: zod.string(),
2752
+ agent_name: zod.string(),
2753
+ direction: zod.enum(["INBOUND", "OUTBOUND"]),
2754
+ llm_model: zod.enum([
2755
+ "GPT4.1",
2756
+ "AZURE-GPT4o",
2757
+ "AZURE-GPT4.1",
2758
+ "GPT-5",
2759
+ "GPT-5-low",
2760
+ "GPT-5-high",
2761
+ "GPT-5.1-chat-latest",
2762
+ "GPT-5.1-no-reasoning",
2763
+ "GEMINI-1.5-flash",
2764
+ "GEMINI-2.5-flash",
2765
+ "GEMINI-2.5-flash-lite",
2766
+ "GEMINI-3-flash",
2767
+ "CLAUDE-sonnet-4.6",
2768
+ "CLAUDE-haiku-4.5",
2769
+ "GPT-5.4-mini"
2770
+ ]),
2771
+ tts_provider: zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
2772
+ tts_model: zod.enum([
2773
+ "eleven_flash_v2_5",
2774
+ "eleven_turbo_v2_5",
2775
+ "sonic-3",
2776
+ "chirp_3",
2777
+ "polly-neural"
2778
+ ]),
2779
+ language: zod.enum(["en-US", "de-DE"]),
2780
+ tts_voice_id: zod.string().describe("Voice ID from the TTS provider"),
2781
+ stt_model: zod.enum([
2782
+ "DEEPGRAM-NOVA-2-GENERAL",
2783
+ "DEEPGRAM-NOVA-3-GENERAL",
2784
+ "AWS-TRANSCRIBE",
2785
+ "ELEVENLABS-SCRIBE-V2-REALTIME"
2786
+ ]),
2787
+ transfer_phone_number: zod.union([zod.string(), zod.null()]),
2788
+ call_processor_id: zod.union([zod.string(), zod.null()]),
2789
+ call_processor_type: zod.union([
2790
+ zod.enum(["extractor", "worker"]),
2791
+ zod.null()
2792
+ ]),
2688
2793
  background_sounds: zod.enum(["enabled", "disabled"]),
2689
2794
  created_at: zod.string().datetime({}),
2690
2795
  updated_at: zod.string().datetime({}),
@@ -2739,6 +2844,11 @@ var AddToolsToVoiceAgentResponse = zod.object({
2739
2844
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2740
2845
  ]),
2741
2846
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
2847
+ call_processor_id: zod.union([zod.string(), zod.null()]),
2848
+ call_processor_type: zod.union([
2849
+ zod.enum(["extractor", "worker"]),
2850
+ zod.null()
2851
+ ]),
2742
2852
  background_sounds: zod.enum(["enabled", "disabled"]),
2743
2853
  created_at: zod.string().datetime({}),
2744
2854
  updated_at: zod.string().datetime({}),
@@ -2793,6 +2903,11 @@ var DeleteToolsFromVoiceAgentResponse = zod.object({
2793
2903
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2794
2904
  ]),
2795
2905
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
2906
+ call_processor_id: zod.union([zod.string(), zod.null()]),
2907
+ call_processor_type: zod.union([
2908
+ zod.enum(["extractor", "worker"]),
2909
+ zod.null()
2910
+ ]),
2796
2911
  background_sounds: zod.enum(["enabled", "disabled"]),
2797
2912
  created_at: zod.string().datetime({}),
2798
2913
  updated_at: zod.string().datetime({}),
@@ -2902,6 +3017,11 @@ var UpdateVoiceAgentModelsResponse = zod.object({
2902
3017
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2903
3018
  ]),
2904
3019
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
3020
+ call_processor_id: zod.union([zod.string(), zod.null()]),
3021
+ call_processor_type: zod.union([
3022
+ zod.enum(["extractor", "worker"]),
3023
+ zod.null()
3024
+ ]),
2905
3025
  background_sounds: zod.enum(["enabled", "disabled"]),
2906
3026
  created_at: zod.string().datetime({}),
2907
3027
  updated_at: zod.string().datetime({}),
@@ -2958,6 +3078,11 @@ var UpdateCallControlsResponse = zod.object({
2958
3078
  "ELEVENLABS-SCRIBE-V2-REALTIME"
2959
3079
  ]),
2960
3080
  transfer_phone_number: zod.union([zod.string(), zod.null()]),
3081
+ call_processor_id: zod.union([zod.string(), zod.null()]),
3082
+ call_processor_type: zod.union([
3083
+ zod.enum(["extractor", "worker"]),
3084
+ zod.null()
3085
+ ]),
2961
3086
  background_sounds: zod.enum(["enabled", "disabled"]),
2962
3087
  created_at: zod.string().datetime({}),
2963
3088
  updated_at: zod.string().datetime({}),
@@ -4591,6 +4716,15 @@ server.tool(
4591
4716
  },
4592
4717
  getVoiceAgentHandler
4593
4718
  );
4719
+ server.tool(
4720
+ "updateVoiceAgent",
4721
+ "Update voice agent",
4722
+ {
4723
+ pathParams: UpdateVoiceAgentParams,
4724
+ bodyParams: UpdateVoiceAgentBody
4725
+ },
4726
+ updateVoiceAgentHandler
4727
+ );
4594
4728
  server.tool(
4595
4729
  "addToolsToVoiceAgent",
4596
4730
  "Add tools to voice agent",
@@ -5218,4 +5352,4 @@ var transport = new StdioServerTransport();
5218
5352
  server.connect(transport).then(() => {
5219
5353
  console.error("MCP server running on stdio");
5220
5354
  }).catch(console.error);
5221
- //# sourceMappingURL=server-3BAXGSWA.js.map
5355
+ //# sourceMappingURL=server-AK737M4G.js.map