@velaro/mcp-server 2.0.77 → 2.0.79

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 +32 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.77",
3
+ "version": "2.0.79",
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
@@ -4485,6 +4485,11 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4485
4485
  description: 'Manually trigger a Recruiting Bot job-feed sync for this site (the same code path the hourly scheduled sync uses, idempotent upsert by ExternalId). Requires the EnableRecruitingBot entitlement. Returns { success, error, added, updated, total }.',
4486
4486
  inputSchema: { type: 'object', properties: {}, required: [] },
4487
4487
  },
4488
+ {
4489
+ name: 'workforce_get_settings',
4490
+ description: 'Read-only: list the work schedules of this site with their Workforce Management settings (daily break allowance minutes, enforce availability, after-hours new-chat action). Requires the EnableWorkforceManagement entitlement to take effect. Writes are UI-only (Settings > Schedules) because the schedules save replaces the whole schedule set.',
4491
+ inputSchema: { type: 'object', properties: {}, required: [] },
4492
+ },
4488
4493
  {
4489
4494
  name: 'recruiting_get_config',
4490
4495
  description: 'Get this site\'s Recruiting Bot configuration (jobs feed URL, feed type, recruiter email, company name/description, enabled state).',
@@ -5025,6 +5030,17 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
5025
5030
  required: ['serviceId'],
5026
5031
  },
5027
5032
  },
5033
+ {
5034
+ name: 'booking_create_link',
5035
+ description: 'Issue a signed public booking link slug (needed by the public slots and bookings endpoints and the messenger booking link). Optionally scoped to one resource and/or service. Site managers only; requires the booking engine entitlement.',
5036
+ inputSchema: {
5037
+ type: 'object',
5038
+ properties: {
5039
+ resourceId: { type: 'number', description: 'Limit the link to one bookable resource.' },
5040
+ serviceId: { type: 'number', description: 'Limit the link to one bookable service.' },
5041
+ },
5042
+ },
5043
+ },
5028
5044
  {
5029
5045
  name: 'booking_delete_service',
5030
5046
  description: 'Delete a bookable service. 404 if it isn\'t found on this site.',
@@ -9123,6 +9139,17 @@ ${JSON.stringify(result, null, 2)}`;
9123
9139
  return JSON.stringify(result, null, 2);
9124
9140
  }
9125
9141
 
9142
+ case 'workforce_get_settings': {
9143
+ const rows = await messagingGet('/WorkSchedules');
9144
+ const list = Array.isArray(rows) ? rows : (rows?.schedules ?? []);
9145
+ return JSON.stringify(list.map(x => ({
9146
+ id: x.id, name: x.name, enabled: x.enabled,
9147
+ dailyBreakAllowanceMinutes: x.dailyBreakAllowanceMinutes ?? 0,
9148
+ enforceAvailability: x.enforceAvailability ?? false,
9149
+ afterHoursAction: x.afterHoursAction ?? 'None',
9150
+ })), null, 2);
9151
+ }
9152
+
9126
9153
  case 'recruiting_get_config': {
9127
9154
  const config = await messagingGet('/Recruiting/Config');
9128
9155
  return JSON.stringify(config, null, 2);
@@ -9565,6 +9592,11 @@ ${JSON.stringify(result, null, 2)}`;
9565
9592
  return JSON.stringify(result, null, 2);
9566
9593
  }
9567
9594
 
9595
+ case 'booking_create_link': {
9596
+ const result = await messagingPost('/Bookings/Slug', { resourceId: args.resourceId, serviceId: args.serviceId });
9597
+ return JSON.stringify(result, null, 2);
9598
+ }
9599
+
9568
9600
  case 'booking_delete_service': {
9569
9601
  if (args.serviceId == null) return 'serviceId is required.';
9570
9602
  const result = await messagingDel(`/BookableServices/${encodeURIComponent(args.serviceId)}`);