@velaro/mcp-server 2.0.139 → 2.0.140

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 +63 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.139",
3
+ "version": "2.0.140",
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
@@ -5103,6 +5103,48 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
5103
5103
  },
5104
5104
  },
5105
5105
 
5106
+ // ── Reservation backup and export ─────────────────────────────────────────────
5107
+ // Backend: velaro-messaging ReservationExportController at /ReservationExport. Site derives from the caller's auth context.
5108
+ {
5109
+ name: 'reservation_backup_get',
5110
+ description: 'Get this site\'s emailed reservations backup settings (on/off, daily or weekly, recipients, days ahead) and when it last sent with its result, including the failure reason when the last send failed.',
5111
+ inputSchema: { type: 'object', properties: {}, required: [] },
5112
+ },
5113
+ {
5114
+ name: 'reservation_backup_update',
5115
+ description: 'Change the emailed reservations backup. Only fields passed change. Enabling requires at least one recipient.',
5116
+ inputSchema: {
5117
+ type: 'object',
5118
+ properties: {
5119
+ enabled: { type: 'boolean', description: 'Turn the emailed backup on or off' },
5120
+ frequency: { type: 'string', description: 'daily | weekly' },
5121
+ recipients: { type: 'string', description: 'Email addresses separated by semicolons or commas' },
5122
+ lookaheadDays: { type: 'number', description: 'Days ahead to include, 1 to 366' },
5123
+ },
5124
+ required: [],
5125
+ },
5126
+ },
5127
+ {
5128
+ name: 'reservation_backup_send_now',
5129
+ description: 'Email the reservations backup to the saved recipients right now. Returns the real result; a failure returns the HTTP status and reason.',
5130
+ inputSchema: { type: 'object', properties: {}, required: [] },
5131
+ },
5132
+ {
5133
+ name: 'reservation_export_csv',
5134
+ description: 'Return the reservations as CSV text, optionally filtered by date range, status, provider or resource id.',
5135
+ inputSchema: {
5136
+ type: 'object',
5137
+ properties: {
5138
+ from: { type: 'string', description: 'ISO date-time, start of range' },
5139
+ to: { type: 'string', description: 'ISO date-time, end of range' },
5140
+ status: { type: 'string' },
5141
+ provider: { type: 'string' },
5142
+ resourceId: { type: 'number' },
5143
+ },
5144
+ required: [],
5145
+ },
5146
+ },
5147
+
5106
5148
  // ── Booking defaults and presets ──────────────────────────────────────────────
5107
5149
  // Backend: server/Velaro.Messaging/Controllers/BookingDefaultsController.cs at /BookingDefaults.
5108
5150
  // SiteId derives from the caller's auth context, never a tool argument (IDOR).
@@ -10124,6 +10166,27 @@ ${JSON.stringify(result, null, 2)}`;
10124
10166
  return JSON.stringify(result, null, 2);
10125
10167
  }
10126
10168
 
10169
+ // -- Reservation backup and export --
10170
+ case 'reservation_backup_get': {
10171
+ return JSON.stringify(await messagingGet('/ReservationExport/Settings'), null, 2);
10172
+ }
10173
+
10174
+ case 'reservation_backup_update': {
10175
+ const body = {};
10176
+ for (const k of ['enabled', 'frequency', 'recipients', 'lookaheadDays']) if (args[k] !== undefined) body[k] = args[k];
10177
+ return JSON.stringify(await messagingPut('/ReservationExport/Settings', body), null, 2);
10178
+ }
10179
+
10180
+ case 'reservation_backup_send_now': {
10181
+ return JSON.stringify(await messagingPost('/ReservationExport/SendNow', {}), null, 2);
10182
+ }
10183
+
10184
+ case 'reservation_export_csv': {
10185
+ const q = new URLSearchParams();
10186
+ for (const k of ['from', 'to', 'status', 'provider', 'resourceId']) if (args[k] !== undefined && args[k] !== '') q.set(k, String(args[k]));
10187
+ return await messagingText(`/ReservationExport/Csv${q.toString() ? '?' + q : ''}`);
10188
+ }
10189
+
10127
10190
  // -- Booking defaults and presets --
10128
10191
  case 'scheduler_selection_get': {
10129
10192
  return JSON.stringify(await messagingGet('/Appointments/Settings'), null, 2);