@velaro/mcp-server 2.0.48 → 2.0.50
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/package.json +1 -1
- package/server.js +46 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.50",
|
|
4
4
|
"description": "Velaro MCP server — connect Claude and other AI agents directly to your Velaro account: KB, workflows, bots, conversations, contacts, routing, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/server.js
CHANGED
|
@@ -4655,6 +4655,36 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
4655
4655
|
},
|
|
4656
4656
|
},
|
|
4657
4657
|
|
|
4658
|
+
// ── Booking defaults and presets ──────────────────────────────────────────────
|
|
4659
|
+
// Backend: server/Velaro.Messaging/Controllers/BookingDefaultsController.cs at /BookingDefaults.
|
|
4660
|
+
// SiteId derives from the caller's auth context, never a tool argument (IDOR).
|
|
4661
|
+
{
|
|
4662
|
+
name: 'booking_defaults_get',
|
|
4663
|
+
description: 'Get this site\'s booking defaults (default provider, preset, length, meeting type, location, time zone, which contact fields are pre-filled) and its booking presets ("Demo 30 min" style choices offered on every channel). A site with nothing saved returns the built-in defaults and an empty preset list.',
|
|
4664
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
4665
|
+
},
|
|
4666
|
+
{
|
|
4667
|
+
name: 'booking_defaults_update',
|
|
4668
|
+
description: 'Change this site\'s booking defaults. Only the fields you pass change; the rest keep their current value. Pass null to clear a nullable field. Presets are managed with the velaro CLI (velaro booking-defaults presets add|remove) or the admin UI.',
|
|
4669
|
+
inputSchema: {
|
|
4670
|
+
type: 'object',
|
|
4671
|
+
properties: {
|
|
4672
|
+
defaultProviderSlug: { type: ['string', 'null'], description: 'calendly | acuity | msbookings | outlook, or null for whichever provider is connected' },
|
|
4673
|
+
defaultPresetId: { type: ['number', 'null'], description: 'Preset id used when the customer does not pick one, or null' },
|
|
4674
|
+
defaultDurationMinutes: { type: ['number', 'null'], description: 'Default length in minutes (5 to 480), or null' },
|
|
4675
|
+
defaultMeetingType: { type: ['string', 'null'], description: 'phone | video | in_person | other, or null' },
|
|
4676
|
+
defaultLocation: { type: ['string', 'null'], description: 'Default location or meeting link (max 250 chars), or null' },
|
|
4677
|
+
timeZoneId: { type: ['string', 'null'], description: 'IANA time zone id such as America/Los_Angeles, or null for the site time zone' },
|
|
4678
|
+
prefillName: { type: 'boolean', description: 'Pre-fill the contact\'s known name in the booking flow' },
|
|
4679
|
+
prefillEmail: { type: 'boolean', description: 'Pre-fill the contact\'s known email' },
|
|
4680
|
+
prefillPhone: { type: 'boolean', description: 'Pre-fill the contact\'s known phone' },
|
|
4681
|
+
confirmPrefilled: { type: 'boolean', description: 'Have the bot confirm pre-filled values with the customer' },
|
|
4682
|
+
enabled: { type: 'boolean', description: 'Turn booking defaults on or off for the site' },
|
|
4683
|
+
},
|
|
4684
|
+
required: [],
|
|
4685
|
+
},
|
|
4686
|
+
},
|
|
4687
|
+
|
|
4658
4688
|
// ── Generic Booking Engine (Phase 1b) ─────────────────────────────────────────
|
|
4659
4689
|
// Backend: server/Velaro.Messaging/Controllers/{BookableResourcesController,
|
|
4660
4690
|
// BookableServicesController,ResourceAvailabilityRulesController}.cs, routed at
|
|
@@ -8986,6 +9016,22 @@ ${JSON.stringify(result, null, 2)}`;
|
|
|
8986
9016
|
return JSON.stringify(result, null, 2);
|
|
8987
9017
|
}
|
|
8988
9018
|
|
|
9019
|
+
// -- Booking defaults and presets --
|
|
9020
|
+
case 'booking_defaults_get': {
|
|
9021
|
+
const result = await messagingGet('/BookingDefaults');
|
|
9022
|
+
return JSON.stringify(result, null, 2);
|
|
9023
|
+
}
|
|
9024
|
+
|
|
9025
|
+
case 'booking_defaults_update': {
|
|
9026
|
+
// The messaging PUT replaces the row, so start from the current values and override only what was passed.
|
|
9027
|
+
const current = (await messagingGet('/BookingDefaults'))?.defaults ?? {};
|
|
9028
|
+
const keys = ['defaultProviderSlug', 'defaultPresetId', 'defaultDurationMinutes', 'defaultMeetingType', 'defaultLocation', 'timeZoneId', 'prefillName', 'prefillEmail', 'prefillPhone', 'confirmPrefilled', 'enabled'];
|
|
9029
|
+
const body = {};
|
|
9030
|
+
for (const k of keys) body[k] = args[k] !== undefined ? args[k] : (current[k] ?? null);
|
|
9031
|
+
const result = await messagingPut('/BookingDefaults', body);
|
|
9032
|
+
return JSON.stringify(result, null, 2);
|
|
9033
|
+
}
|
|
9034
|
+
|
|
8989
9035
|
// -- Generic Booking Engine (Phase 1b) --
|
|
8990
9036
|
case 'booking_list_resources': {
|
|
8991
9037
|
const result = await messagingGet('/BookableResources');
|