@velaro/mcp-server 2.0.129 → 2.0.130

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +157 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.129",
3
+ "version": "2.0.130",
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
@@ -5343,6 +5343,116 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
5343
5343
  required: ['ruleId'],
5344
5344
  },
5345
5345
  },
5346
+ {
5347
+ name: 'scheduler_intake_question_list',
5348
+ description: 'List the intake questions customers answer when booking a service. Optionally filter to one service.',
5349
+ inputSchema: { type: 'object', properties: { serviceId: { type: 'number', description: 'Only this service' } }, required: [] },
5350
+ },
5351
+ {
5352
+ name: 'scheduler_intake_question_get',
5353
+ description: 'Get one intake question by id.',
5354
+ inputSchema: { type: 'object', properties: { questionId: { type: 'number', description: 'Question ID. Required.' } }, required: ['questionId'] },
5355
+ },
5356
+ {
5357
+ name: 'scheduler_intake_question_create',
5358
+ description: 'Add an intake question to a bookable service. Answers appear on the booking and in the confirmation email.',
5359
+ inputSchema: {
5360
+ type: 'object',
5361
+ properties: {
5362
+ bookableServiceId: { type: 'number', description: 'Service ID. Required.' },
5363
+ label: { type: 'string', description: 'Question text. Required.' },
5364
+ questionType: { type: 'string', enum: ['text', 'textarea', 'select', 'checkbox'], description: 'Answer type. Required.' },
5365
+ options: { type: 'array', items: { type: 'string' }, description: 'Choices, for select questions only.' },
5366
+ isRequired: { type: 'boolean', description: 'Customer must answer. Defaults to false.' },
5367
+ sortOrder: { type: 'number', description: 'Display order, lowest first.' },
5368
+ isActive: { type: 'boolean', description: 'Defaults to true.' },
5369
+ },
5370
+ required: ['bookableServiceId', 'label', 'questionType'],
5371
+ },
5372
+ },
5373
+ {
5374
+ name: 'scheduler_intake_question_update',
5375
+ description: 'Update an intake question. Only supplied fields change.',
5376
+ inputSchema: {
5377
+ type: 'object',
5378
+ properties: {
5379
+ questionId: { type: 'number', description: 'Question ID. Required.' },
5380
+ label: { type: 'string' },
5381
+ questionType: { type: 'string', enum: ['text', 'textarea', 'select', 'checkbox'] },
5382
+ options: { type: 'array', items: { type: 'string' } },
5383
+ isRequired: { type: 'boolean' },
5384
+ sortOrder: { type: 'number' },
5385
+ isActive: { type: 'boolean' },
5386
+ },
5387
+ required: ['questionId'],
5388
+ },
5389
+ },
5390
+ {
5391
+ name: 'scheduler_intake_question_delete',
5392
+ description: 'Delete an intake question. 404 if it is not found on this site.',
5393
+ inputSchema: { type: 'object', properties: { questionId: { type: 'number', description: 'Question ID. Required.' } }, required: ['questionId'] },
5394
+ },
5395
+ {
5396
+ name: 'scheduler_date_override_list',
5397
+ description: 'List time off and special hours (date overrides). A null resourceId means the whole business.',
5398
+ inputSchema: {
5399
+ type: 'object',
5400
+ properties: {
5401
+ resourceId: { type: 'number', description: 'Only this resource' },
5402
+ fromDate: { type: 'string', description: 'Only entries from this date, yyyy-MM-dd' },
5403
+ },
5404
+ required: [],
5405
+ },
5406
+ },
5407
+ {
5408
+ name: 'scheduler_date_override_get',
5409
+ description: 'Get one time off / special hours entry by id.',
5410
+ inputSchema: { type: 'object', properties: { overrideId: { type: 'number', description: 'Override ID. Required.' } }, required: ['overrideId'] },
5411
+ },
5412
+ {
5413
+ name: 'scheduler_date_override_create',
5414
+ description: 'Add time off (isClosed true) or custom hours (isClosed false, with startLocal/endLocal) for a date range. Omit resourceId for the whole business.',
5415
+ inputSchema: {
5416
+ type: 'object',
5417
+ properties: {
5418
+ resourceId: { type: 'number', description: 'Resource ID. Omit for the whole business.' },
5419
+ startDate: { type: 'string', description: 'yyyy-MM-dd. Required.' },
5420
+ endDate: { type: 'string', description: 'yyyy-MM-dd, inclusive. Required.' },
5421
+ isClosed: { type: 'boolean', description: 'true = time off. Required.' },
5422
+ startLocal: { type: 'string', description: 'HH:mm, custom hours when isClosed is false.' },
5423
+ endLocal: { type: 'string', description: 'HH:mm, custom hours when isClosed is false.' },
5424
+ reason: { type: 'string' },
5425
+ ianaTimeZone: { type: 'string', description: 'IANA timezone id, e.g. America/Los_Angeles.' },
5426
+ isActive: { type: 'boolean', description: 'Defaults to true.' },
5427
+ },
5428
+ required: ['startDate', 'endDate', 'isClosed'],
5429
+ },
5430
+ },
5431
+ {
5432
+ name: 'scheduler_date_override_update',
5433
+ description: 'Update a time off / special hours entry. Only supplied fields change.',
5434
+ inputSchema: {
5435
+ type: 'object',
5436
+ properties: {
5437
+ overrideId: { type: 'number', description: 'Override ID. Required.' },
5438
+ resourceId: { type: 'number' },
5439
+ startDate: { type: 'string' },
5440
+ endDate: { type: 'string' },
5441
+ isClosed: { type: 'boolean' },
5442
+ startLocal: { type: 'string' },
5443
+ endLocal: { type: 'string' },
5444
+ reason: { type: 'string' },
5445
+ ianaTimeZone: { type: 'string' },
5446
+ isActive: { type: 'boolean' },
5447
+ },
5448
+ required: ['overrideId'],
5449
+ },
5450
+ },
5451
+ {
5452
+ name: 'scheduler_date_override_delete',
5453
+ description: 'Delete a time off / special hours entry. 404 if it is not found on this site.',
5454
+ inputSchema: { type: 'object', properties: { overrideId: { type: 'number', description: 'Override ID. Required.' } }, required: ['overrideId'] },
5455
+ },
5346
5456
  {
5347
5457
  name: 'booking_list_appointments',
5348
5458
  description: 'List actual bookings (Phase 1c) made against the booking engine for this site, optionally filtered by date range or service.',
@@ -10157,6 +10267,53 @@ ${JSON.stringify(result, null, 2)}`;
10157
10267
  return JSON.stringify(result, null, 2);
10158
10268
  }
10159
10269
 
10270
+ case 'scheduler_intake_question_list': {
10271
+ const qs = args.serviceId != null ? `?serviceId=${encodeURIComponent(args.serviceId)}` : '';
10272
+ return JSON.stringify(await messagingGet(`/BookableServiceIntakeQuestions${qs}`), null, 2);
10273
+ }
10274
+ case 'scheduler_intake_question_get': {
10275
+ if (args.questionId == null) return 'questionId is required.';
10276
+ return JSON.stringify(await messagingGet(`/BookableServiceIntakeQuestions/${encodeURIComponent(args.questionId)}`), null, 2);
10277
+ }
10278
+ case 'scheduler_intake_question_create': {
10279
+ if (args.bookableServiceId == null || !args.label || !args.questionType) return 'bookableServiceId, label, and questionType are required.';
10280
+ const { bookableServiceId, label, questionType, options, isRequired, sortOrder, isActive } = args;
10281
+ return JSON.stringify(await messagingPost('/BookableServiceIntakeQuestions', { bookableServiceId, label, questionType, options, isRequired, sortOrder, isActive }), null, 2);
10282
+ }
10283
+ case 'scheduler_intake_question_update': {
10284
+ if (args.questionId == null) return 'questionId is required.';
10285
+ const { label, questionType, options, isRequired, sortOrder, isActive } = args;
10286
+ return JSON.stringify(await messagingPut(`/BookableServiceIntakeQuestions/${encodeURIComponent(args.questionId)}`, { label, questionType, options, isRequired, sortOrder, isActive }), null, 2);
10287
+ }
10288
+ case 'scheduler_intake_question_delete': {
10289
+ if (args.questionId == null) return 'questionId is required.';
10290
+ return JSON.stringify(await messagingDel(`/BookableServiceIntakeQuestions/${encodeURIComponent(args.questionId)}`), null, 2);
10291
+ }
10292
+ case 'scheduler_date_override_list': {
10293
+ const params = [];
10294
+ if (args.resourceId != null) params.push(`resourceId=${encodeURIComponent(args.resourceId)}`);
10295
+ if (args.fromDate != null) params.push(`fromDate=${encodeURIComponent(args.fromDate)}`);
10296
+ return JSON.stringify(await messagingGet(`/BookingDateOverrides${params.length ? '?' + params.join('&') : ''}`), null, 2);
10297
+ }
10298
+ case 'scheduler_date_override_get': {
10299
+ if (args.overrideId == null) return 'overrideId is required.';
10300
+ return JSON.stringify(await messagingGet(`/BookingDateOverrides/${encodeURIComponent(args.overrideId)}`), null, 2);
10301
+ }
10302
+ case 'scheduler_date_override_create': {
10303
+ if (!args.startDate || !args.endDate || args.isClosed == null) return 'startDate, endDate, and isClosed are required.';
10304
+ const { resourceId, startDate, endDate, isClosed, startLocal, endLocal, reason, ianaTimeZone, isActive } = args;
10305
+ return JSON.stringify(await messagingPost('/BookingDateOverrides', { resourceId, startDate, endDate, isClosed, startLocal, endLocal, reason, ianaTimeZone, isActive }), null, 2);
10306
+ }
10307
+ case 'scheduler_date_override_update': {
10308
+ if (args.overrideId == null) return 'overrideId is required.';
10309
+ const { resourceId, startDate, endDate, isClosed, startLocal, endLocal, reason, ianaTimeZone, isActive } = args;
10310
+ return JSON.stringify(await messagingPut(`/BookingDateOverrides/${encodeURIComponent(args.overrideId)}`, { resourceId, startDate, endDate, isClosed, startLocal, endLocal, reason, ianaTimeZone, isActive }), null, 2);
10311
+ }
10312
+ case 'scheduler_date_override_delete': {
10313
+ if (args.overrideId == null) return 'overrideId is required.';
10314
+ return JSON.stringify(await messagingDel(`/BookingDateOverrides/${encodeURIComponent(args.overrideId)}`), null, 2);
10315
+ }
10316
+
10160
10317
  case 'booking_list_appointments': {
10161
10318
  const params = [];
10162
10319
  if (args.fromUtc != null) params.push(`fromUtc=${encodeURIComponent(args.fromUtc)}`);