@avallon-labs/mcp 47.2.0 → 47.3.0-staging.1080

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
@@ -46,5 +46,5 @@ function setupFetch() {
46
46
 
47
47
  // src/index.ts
48
48
  setupFetch();
49
- await import("./server-T75LBZGR.js");
49
+ await import("./server-LVGTJWXP.js");
50
50
  //# sourceMappingURL=index.js.map
@@ -187,42 +187,6 @@ var getVoiceAgentVersionChangeSummary = async (voiceAgentId, version, options) =
187
187
  headers: res.headers
188
188
  };
189
189
  };
190
- var getAddToolsToVoiceAgentUrl = (voiceAgentId) => {
191
- return `/v1/voice-agents/${voiceAgentId}/tools`;
192
- };
193
- var addToolsToVoiceAgent = async (voiceAgentId, addToolsToVoiceAgentBody, options) => {
194
- const res = await fetch(getAddToolsToVoiceAgentUrl(voiceAgentId), {
195
- ...options,
196
- method: "POST",
197
- headers: { "Content-Type": "application/json", ...options?.headers },
198
- body: JSON.stringify(addToolsToVoiceAgentBody)
199
- });
200
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
201
- const data = body ? JSON.parse(body) : {};
202
- return {
203
- data,
204
- status: res.status,
205
- headers: res.headers
206
- };
207
- };
208
- var getDeleteToolsFromVoiceAgentUrl = (voiceAgentId) => {
209
- return `/v1/voice-agents/${voiceAgentId}/tools`;
210
- };
211
- var deleteToolsFromVoiceAgent = async (voiceAgentId, deleteToolsFromVoiceAgentBody, options) => {
212
- const res = await fetch(getDeleteToolsFromVoiceAgentUrl(voiceAgentId), {
213
- ...options,
214
- method: "DELETE",
215
- headers: { "Content-Type": "application/json", ...options?.headers },
216
- body: JSON.stringify(deleteToolsFromVoiceAgentBody)
217
- });
218
- const body = [204, 205, 304].includes(res.status) ? null : await res.text();
219
- const data = body ? JSON.parse(body) : {};
220
- return {
221
- data,
222
- status: res.status,
223
- headers: res.headers
224
- };
225
- };
226
190
  var getGetVoiceAgentPlaceholdersUrl = (voiceAgentId) => {
227
191
  return `/v1/voice-agents/${voiceAgentId}/placeholders`;
228
192
  };
@@ -3221,34 +3185,6 @@ var getVoiceAgentVersionChangeSummaryHandler = async (args) => {
3221
3185
  ]
3222
3186
  };
3223
3187
  };
3224
- var addToolsToVoiceAgentHandler = async (args) => {
3225
- const res = await addToolsToVoiceAgent(
3226
- args.pathParams.voiceAgentId,
3227
- args.bodyParams
3228
- );
3229
- return {
3230
- content: [
3231
- {
3232
- type: "text",
3233
- text: JSON.stringify(res)
3234
- }
3235
- ]
3236
- };
3237
- };
3238
- var deleteToolsFromVoiceAgentHandler = async (args) => {
3239
- const res = await deleteToolsFromVoiceAgent(
3240
- args.pathParams.voiceAgentId,
3241
- args.bodyParams
3242
- );
3243
- return {
3244
- content: [
3245
- {
3246
- type: "text",
3247
- text: JSON.stringify(res)
3248
- }
3249
- ]
3250
- };
3251
- };
3252
3188
  var getVoiceAgentPlaceholdersHandler = async (args) => {
3253
3189
  const res = await getVoiceAgentPlaceholders(args.pathParams.voiceAgentId);
3254
3190
  return {
@@ -5561,266 +5497,6 @@ var GetVoiceAgentVersionChangeSummaryResponse = zod.object({
5561
5497
  }),
5562
5498
  message: zod.string()
5563
5499
  });
5564
- var AddToolsToVoiceAgentParams = zod.object({
5565
- voiceAgentId: zod.string().uuid()
5566
- });
5567
- var AddToolsToVoiceAgentBody = zod.object({
5568
- tool_ids: zod.array(zod.string().uuid())
5569
- });
5570
- var addToolsToVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMin = -9007199254740991;
5571
- var addToolsToVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMax = 9007199254740991;
5572
- var AddToolsToVoiceAgentResponse = zod.object({
5573
- data: zod.object({
5574
- agent: zod.object({
5575
- id: zod.string(),
5576
- tenant_id: zod.string(),
5577
- agent_name: zod.string(),
5578
- direction: zod.enum(["INBOUND", "OUTBOUND"]),
5579
- phone_number: zod.union([zod.string(), zod.null()]),
5580
- created_at: zod.string().datetime({}),
5581
- updated_at: zod.string().datetime({}),
5582
- llm_model: zod.enum([
5583
- "GPT4.1",
5584
- "AZURE-GPT4o",
5585
- "AZURE-GPT4.1",
5586
- "GPT-5",
5587
- "GPT-5-low",
5588
- "GPT-5-high",
5589
- "GPT-5.1-chat-latest",
5590
- "GPT-5.1-no-reasoning",
5591
- "GEMINI-1.5-flash",
5592
- "GEMINI-2.5-flash",
5593
- "GEMINI-2.5-flash-lite",
5594
- "GEMINI-3-flash",
5595
- "CLAUDE-sonnet-4.6",
5596
- "CLAUDE-haiku-4.5",
5597
- "GPT-5.4-mini"
5598
- ]),
5599
- tts_provider: zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
5600
- tts_model: zod.enum([
5601
- "eleven_flash_v2_5",
5602
- "eleven_turbo_v2_5",
5603
- "sonic-3",
5604
- "sonic-3.5",
5605
- "sonic-3.6",
5606
- "chirp_3",
5607
- "polly-neural"
5608
- ]),
5609
- language: zod.enum(["en-US", "de-DE"]),
5610
- tts_voice_id: zod.string().describe("Voice ID from the TTS provider"),
5611
- stt_model: zod.enum([
5612
- "DEEPGRAM-NOVA-2-GENERAL",
5613
- "DEEPGRAM-NOVA-3-GENERAL",
5614
- "AWS-TRANSCRIBE",
5615
- "ELEVENLABS-SCRIBE-V2-REALTIME",
5616
- "CARTESIA-INK-2"
5617
- ]),
5618
- background_sounds: zod.enum(["enabled", "disabled"]),
5619
- noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
5620
- voice_mail_detection: zod.boolean(),
5621
- dial_pad: zod.boolean(),
5622
- end_call: zod.boolean(),
5623
- transfer_phone_number: zod.union([zod.string(), zod.null()]),
5624
- call_processor_id: zod.union([zod.string(), zod.null()]),
5625
- call_processor_type: zod.union([
5626
- zod.enum(["extractor", "worker"]),
5627
- zod.null()
5628
- ]),
5629
- evaluator_slug: zod.union([zod.string(), zod.null()]),
5630
- lk_cloud_routing_pct: zod.number(),
5631
- fallback_llm_model: zod.union([
5632
- zod.enum([
5633
- "GPT4.1",
5634
- "AZURE-GPT4o",
5635
- "AZURE-GPT4.1",
5636
- "GPT-5",
5637
- "GPT-5-low",
5638
- "GPT-5-high",
5639
- "GPT-5.1-chat-latest",
5640
- "GPT-5.1-no-reasoning",
5641
- "GEMINI-1.5-flash",
5642
- "GEMINI-2.5-flash",
5643
- "GEMINI-2.5-flash-lite",
5644
- "GEMINI-3-flash",
5645
- "CLAUDE-sonnet-4.6",
5646
- "CLAUDE-haiku-4.5",
5647
- "GPT-5.4-mini"
5648
- ]),
5649
- zod.null()
5650
- ]),
5651
- fallback_tts_provider: zod.union([
5652
- zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
5653
- zod.null()
5654
- ]),
5655
- fallback_tts_model: zod.union([
5656
- zod.enum([
5657
- "eleven_flash_v2_5",
5658
- "eleven_turbo_v2_5",
5659
- "sonic-3",
5660
- "sonic-3.5",
5661
- "sonic-3.6",
5662
- "chirp_3",
5663
- "polly-neural"
5664
- ]),
5665
- zod.null()
5666
- ]),
5667
- fallback_tts_voice_id: zod.union([zod.string(), zod.null()]),
5668
- fallback_stt_model: zod.union([
5669
- zod.enum([
5670
- "DEEPGRAM-NOVA-2-GENERAL",
5671
- "DEEPGRAM-NOVA-3-GENERAL",
5672
- "AWS-TRANSCRIBE",
5673
- "ELEVENLABS-SCRIBE-V2-REALTIME",
5674
- "CARTESIA-INK-2"
5675
- ]),
5676
- zod.null()
5677
- ]),
5678
- greeting: zod.union([zod.string(), zod.null()]),
5679
- inactivity_timeout_seconds: zod.union([
5680
- zod.number().min(
5681
- addToolsToVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMin
5682
- ).max(
5683
- addToolsToVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMax
5684
- ),
5685
- zod.null()
5686
- ]).describe("Inactivity timeout in seconds. null disables the feature."),
5687
- tool_ids: zod.array(zod.string()).describe(
5688
- "Tools the agent can call. Part of the versioned config: each version captures its own set, and a rollback restores it."
5689
- )
5690
- })
5691
- }),
5692
- message: zod.string()
5693
- });
5694
- var DeleteToolsFromVoiceAgentParams = zod.object({
5695
- voiceAgentId: zod.string().uuid()
5696
- });
5697
- var DeleteToolsFromVoiceAgentBody = zod.object({
5698
- tool_ids: zod.array(zod.string().uuid())
5699
- });
5700
- var deleteToolsFromVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMin = -9007199254740991;
5701
- var deleteToolsFromVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMax = 9007199254740991;
5702
- var DeleteToolsFromVoiceAgentResponse = zod.object({
5703
- data: zod.object({
5704
- agent: zod.object({
5705
- id: zod.string(),
5706
- tenant_id: zod.string(),
5707
- agent_name: zod.string(),
5708
- direction: zod.enum(["INBOUND", "OUTBOUND"]),
5709
- phone_number: zod.union([zod.string(), zod.null()]),
5710
- created_at: zod.string().datetime({}),
5711
- updated_at: zod.string().datetime({}),
5712
- llm_model: zod.enum([
5713
- "GPT4.1",
5714
- "AZURE-GPT4o",
5715
- "AZURE-GPT4.1",
5716
- "GPT-5",
5717
- "GPT-5-low",
5718
- "GPT-5-high",
5719
- "GPT-5.1-chat-latest",
5720
- "GPT-5.1-no-reasoning",
5721
- "GEMINI-1.5-flash",
5722
- "GEMINI-2.5-flash",
5723
- "GEMINI-2.5-flash-lite",
5724
- "GEMINI-3-flash",
5725
- "CLAUDE-sonnet-4.6",
5726
- "CLAUDE-haiku-4.5",
5727
- "GPT-5.4-mini"
5728
- ]),
5729
- tts_provider: zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
5730
- tts_model: zod.enum([
5731
- "eleven_flash_v2_5",
5732
- "eleven_turbo_v2_5",
5733
- "sonic-3",
5734
- "sonic-3.5",
5735
- "sonic-3.6",
5736
- "chirp_3",
5737
- "polly-neural"
5738
- ]),
5739
- language: zod.enum(["en-US", "de-DE"]),
5740
- tts_voice_id: zod.string().describe("Voice ID from the TTS provider"),
5741
- stt_model: zod.enum([
5742
- "DEEPGRAM-NOVA-2-GENERAL",
5743
- "DEEPGRAM-NOVA-3-GENERAL",
5744
- "AWS-TRANSCRIBE",
5745
- "ELEVENLABS-SCRIBE-V2-REALTIME",
5746
- "CARTESIA-INK-2"
5747
- ]),
5748
- background_sounds: zod.enum(["enabled", "disabled"]),
5749
- noise_cancellation: zod.enum(["NONE", "NC", "BVC", "BVC_TELEPHONY"]),
5750
- voice_mail_detection: zod.boolean(),
5751
- dial_pad: zod.boolean(),
5752
- end_call: zod.boolean(),
5753
- transfer_phone_number: zod.union([zod.string(), zod.null()]),
5754
- call_processor_id: zod.union([zod.string(), zod.null()]),
5755
- call_processor_type: zod.union([
5756
- zod.enum(["extractor", "worker"]),
5757
- zod.null()
5758
- ]),
5759
- evaluator_slug: zod.union([zod.string(), zod.null()]),
5760
- lk_cloud_routing_pct: zod.number(),
5761
- fallback_llm_model: zod.union([
5762
- zod.enum([
5763
- "GPT4.1",
5764
- "AZURE-GPT4o",
5765
- "AZURE-GPT4.1",
5766
- "GPT-5",
5767
- "GPT-5-low",
5768
- "GPT-5-high",
5769
- "GPT-5.1-chat-latest",
5770
- "GPT-5.1-no-reasoning",
5771
- "GEMINI-1.5-flash",
5772
- "GEMINI-2.5-flash",
5773
- "GEMINI-2.5-flash-lite",
5774
- "GEMINI-3-flash",
5775
- "CLAUDE-sonnet-4.6",
5776
- "CLAUDE-haiku-4.5",
5777
- "GPT-5.4-mini"
5778
- ]),
5779
- zod.null()
5780
- ]),
5781
- fallback_tts_provider: zod.union([
5782
- zod.enum(["elevenlabs", "cartesia", "google", "aws-polly"]),
5783
- zod.null()
5784
- ]),
5785
- fallback_tts_model: zod.union([
5786
- zod.enum([
5787
- "eleven_flash_v2_5",
5788
- "eleven_turbo_v2_5",
5789
- "sonic-3",
5790
- "sonic-3.5",
5791
- "sonic-3.6",
5792
- "chirp_3",
5793
- "polly-neural"
5794
- ]),
5795
- zod.null()
5796
- ]),
5797
- fallback_tts_voice_id: zod.union([zod.string(), zod.null()]),
5798
- fallback_stt_model: zod.union([
5799
- zod.enum([
5800
- "DEEPGRAM-NOVA-2-GENERAL",
5801
- "DEEPGRAM-NOVA-3-GENERAL",
5802
- "AWS-TRANSCRIBE",
5803
- "ELEVENLABS-SCRIBE-V2-REALTIME",
5804
- "CARTESIA-INK-2"
5805
- ]),
5806
- zod.null()
5807
- ]),
5808
- greeting: zod.union([zod.string(), zod.null()]),
5809
- inactivity_timeout_seconds: zod.union([
5810
- zod.number().min(
5811
- deleteToolsFromVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMin
5812
- ).max(
5813
- deleteToolsFromVoiceAgentResponseDataAgentInactivityTimeoutSecondsOneMax
5814
- ),
5815
- zod.null()
5816
- ]).describe("Inactivity timeout in seconds. null disables the feature."),
5817
- tool_ids: zod.array(zod.string()).describe(
5818
- "Tools the agent can call. Part of the versioned config: each version captures its own set, and a rollback restores it."
5819
- )
5820
- })
5821
- }),
5822
- message: zod.string()
5823
- });
5824
5500
  var GetVoiceAgentPlaceholdersParams = zod.object({
5825
5501
  voiceAgentId: zod.string().uuid()
5826
5502
  });
@@ -9579,10 +9255,7 @@ var listToolsQuerySortByDefault = `created_at`;
9579
9255
  var listToolsQuerySortOrderDefault = `desc`;
9580
9256
  var ListToolsQueryParams = zod.object({
9581
9257
  sort_by: zod.enum(["created_at", "updated_at", "name"]).default(listToolsQuerySortByDefault),
9582
- sort_order: zod.enum(["asc", "desc"]).default(listToolsQuerySortOrderDefault),
9583
- call_agent_id: zod.string().uuid().optional().describe(
9584
- "Deprecated. Read `tool_ids` off the voice agent instead \u2014 it reports the set for the agent's newest config version, which is what this filter resolves."
9585
- )
9258
+ sort_order: zod.enum(["asc", "desc"]).default(listToolsQuerySortOrderDefault)
9586
9259
  });
9587
9260
  var ListToolsResponse = zod.object({
9588
9261
  data: zod.object({
@@ -9674,10 +9347,7 @@ var workerListToolsQuerySortByDefault = `created_at`;
9674
9347
  var workerListToolsQuerySortOrderDefault = `desc`;
9675
9348
  var WorkerListToolsQueryParams = zod.object({
9676
9349
  sort_by: zod.enum(["created_at", "updated_at", "name"]).default(workerListToolsQuerySortByDefault),
9677
- sort_order: zod.enum(["asc", "desc"]).default(workerListToolsQuerySortOrderDefault),
9678
- call_agent_id: zod.string().uuid().optional().describe(
9679
- "Deprecated. Read `tool_ids` off the voice agent instead \u2014 it reports the set for the agent's newest config version, which is what this filter resolves."
9680
- )
9350
+ sort_order: zod.enum(["asc", "desc"]).default(workerListToolsQuerySortOrderDefault)
9681
9351
  });
9682
9352
  var WorkerListToolsResponse = zod.object({
9683
9353
  data: zod.object({
@@ -10225,24 +9895,6 @@ server.tool(
10225
9895
  },
10226
9896
  getVoiceAgentVersionChangeSummaryHandler
10227
9897
  );
10228
- server.tool(
10229
- "addToolsToVoiceAgent",
10230
- "Add tools to voice agent (deprecated)",
10231
- {
10232
- pathParams: AddToolsToVoiceAgentParams,
10233
- bodyParams: AddToolsToVoiceAgentBody
10234
- },
10235
- addToolsToVoiceAgentHandler
10236
- );
10237
- server.tool(
10238
- "deleteToolsFromVoiceAgent",
10239
- "Remove tools from voice agent (deprecated)",
10240
- {
10241
- pathParams: DeleteToolsFromVoiceAgentParams,
10242
- bodyParams: DeleteToolsFromVoiceAgentBody
10243
- },
10244
- deleteToolsFromVoiceAgentHandler
10245
- );
10246
9898
  server.tool(
10247
9899
  "getVoiceAgentPlaceholders",
10248
9900
  "Get voice agent placeholders",
@@ -11398,4 +11050,4 @@ var transport = new StdioServerTransport();
11398
11050
  server.connect(transport).then(() => {
11399
11051
  console.error("MCP server running on stdio");
11400
11052
  }).catch(console.error);
11401
- //# sourceMappingURL=server-T75LBZGR.js.map
11053
+ //# sourceMappingURL=server-LVGTJWXP.js.map