@velaro/mcp-server 2.0.74 → 2.0.75

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 +19 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.74",
3
+ "version": "2.0.75",
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
@@ -4886,6 +4886,15 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4886
4886
  // /BookableResources, /BookableServices, /ResourceAvailabilityRules. SiteId always
4887
4887
  // derives server-side from the caller's auth context, never a tool argument (IDOR).
4888
4888
  // See velaro-admin memory project_2026_09_06_generic_booking_engine_schema_plan.md.
4889
+ {
4890
+ name: 'booking_list_upcoming',
4891
+ description: 'List upcoming appointments (default next 7 days, at most 62 days). Optional scope me|team|group and teamId.',
4892
+ inputSchema: { type: 'object', properties: {
4893
+ scope: { type: 'string', description: 'me, team or group' },
4894
+ teamId: { type: 'number' },
4895
+ fromUtc: { type: 'string', description: 'ISO 8601 UTC start' },
4896
+ toUtc: { type: 'string', description: 'ISO 8601 UTC end' } }, required: [] },
4897
+ },
4889
4898
  {
4890
4899
  name: 'booking_list_resources',
4891
4900
  description: 'List bookable resources (staff / room / equipment / virtual) for this site.',
@@ -9410,6 +9419,16 @@ ${JSON.stringify(result, null, 2)}`;
9410
9419
  }
9411
9420
 
9412
9421
  // -- Generic Booking Engine (Phase 1b) --
9422
+ case 'booking_list_upcoming': {
9423
+ const q = new URLSearchParams();
9424
+ if (args.scope) q.set('scope', String(args.scope));
9425
+ if (args.teamId != null) q.set('teamId', String(args.teamId));
9426
+ if (args.fromUtc) q.set('fromUtc', String(args.fromUtc));
9427
+ if (args.toUtc) q.set('toUtc', String(args.toUtc));
9428
+ const result = await messagingGet(`/Appointments${q.toString() ? '?' + q : ''}`);
9429
+ return JSON.stringify(result, null, 2);
9430
+ }
9431
+
9413
9432
  case 'booking_list_resources': {
9414
9433
  const result = await messagingGet('/BookableResources');
9415
9434
  return JSON.stringify(result, null, 2);