@velaro/mcp-server 2.0.139 → 2.0.141

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 +81 -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.141",
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
@@ -4137,6 +4137,12 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4137
4137
  },
4138
4138
  },
4139
4139
 
4140
+ // -- Security settings catalog (v27) --
4141
+ {
4142
+ name: 'security_catalog_get',
4143
+ description: 'Security and Compliance & privacy settings catalog: every setting grouped by page, its level (basic = included for everyone, standard = Professional, enterprise = Enterprise), and the default retention per level. Read-only.',
4144
+ inputSchema: { type: 'object', properties: {} },
4145
+ },
4140
4146
  // ── Compliance document signing ───────────────────────────────────────────────
4141
4147
  {
4142
4148
  name: 'compliance_status',
@@ -5103,6 +5109,48 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
5103
5109
  },
5104
5110
  },
5105
5111
 
5112
+ // ── Reservation backup and export ─────────────────────────────────────────────
5113
+ // Backend: velaro-messaging ReservationExportController at /ReservationExport. Site derives from the caller's auth context.
5114
+ {
5115
+ name: 'reservation_backup_get',
5116
+ 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.',
5117
+ inputSchema: { type: 'object', properties: {}, required: [] },
5118
+ },
5119
+ {
5120
+ name: 'reservation_backup_update',
5121
+ description: 'Change the emailed reservations backup. Only fields passed change. Enabling requires at least one recipient.',
5122
+ inputSchema: {
5123
+ type: 'object',
5124
+ properties: {
5125
+ enabled: { type: 'boolean', description: 'Turn the emailed backup on or off' },
5126
+ frequency: { type: 'string', description: 'daily | weekly' },
5127
+ recipients: { type: 'string', description: 'Email addresses separated by semicolons or commas' },
5128
+ lookaheadDays: { type: 'number', description: 'Days ahead to include, 1 to 366' },
5129
+ },
5130
+ required: [],
5131
+ },
5132
+ },
5133
+ {
5134
+ name: 'reservation_backup_send_now',
5135
+ description: 'Email the reservations backup to the saved recipients right now. Returns the real result; a failure returns the HTTP status and reason.',
5136
+ inputSchema: { type: 'object', properties: {}, required: [] },
5137
+ },
5138
+ {
5139
+ name: 'reservation_export_csv',
5140
+ description: 'Return the reservations as CSV text, optionally filtered by date range, status, provider or resource id.',
5141
+ inputSchema: {
5142
+ type: 'object',
5143
+ properties: {
5144
+ from: { type: 'string', description: 'ISO date-time, start of range' },
5145
+ to: { type: 'string', description: 'ISO date-time, end of range' },
5146
+ status: { type: 'string' },
5147
+ provider: { type: 'string' },
5148
+ resourceId: { type: 'number' },
5149
+ },
5150
+ required: [],
5151
+ },
5152
+ },
5153
+
5106
5154
  // ── Booking defaults and presets ──────────────────────────────────────────────
5107
5155
  // Backend: server/Velaro.Messaging/Controllers/BookingDefaultsController.cs at /BookingDefaults.
5108
5156
  // SiteId derives from the caller's auth context, never a tool argument (IDOR).
@@ -9338,6 +9386,18 @@ ${JSON.stringify(result, null, 2)}`;
9338
9386
  }
9339
9387
 
9340
9388
  // ── Compliance document signing ───────────────────────────────────────────────
9389
+ case 'security_catalog_get': {
9390
+ const c = await api('GET', '/Entitlements/security-catalog');
9391
+ if (!c || !Array.isArray(c.items)) return 'Failed to load the security catalog.';
9392
+ const lines = ['Security catalog'];
9393
+ for (const g of (c.groups || [])) {
9394
+ lines.push('\n' + g.label + ' (' + g.page + ')');
9395
+ for (const i of c.items.filter(x => x.group === g.id)) lines.push(' [' + i.level + '] ' + i.label);
9396
+ }
9397
+ lines.push('\nDefault retention (days, basic/standard/enterprise)');
9398
+ for (const r of (c.retentionDefaults || [])) lines.push(' ' + r.label + ': ' + (r.basicDays ?? 'you choose') + ' / ' + (r.standardDays ?? 'you choose') + ' / ' + (r.enterpriseDays ?? 'you choose'));
9399
+ return lines.join('\n');
9400
+ }
9341
9401
  case 'compliance_status': {
9342
9402
  const docs = await api('GET', '/Compliance/documents');
9343
9403
  if (!Array.isArray(docs) || !docs.length) return 'No compliance documents found.';
@@ -10124,6 +10184,27 @@ ${JSON.stringify(result, null, 2)}`;
10124
10184
  return JSON.stringify(result, null, 2);
10125
10185
  }
10126
10186
 
10187
+ // -- Reservation backup and export --
10188
+ case 'reservation_backup_get': {
10189
+ return JSON.stringify(await messagingGet('/ReservationExport/Settings'), null, 2);
10190
+ }
10191
+
10192
+ case 'reservation_backup_update': {
10193
+ const body = {};
10194
+ for (const k of ['enabled', 'frequency', 'recipients', 'lookaheadDays']) if (args[k] !== undefined) body[k] = args[k];
10195
+ return JSON.stringify(await messagingPut('/ReservationExport/Settings', body), null, 2);
10196
+ }
10197
+
10198
+ case 'reservation_backup_send_now': {
10199
+ return JSON.stringify(await messagingPost('/ReservationExport/SendNow', {}), null, 2);
10200
+ }
10201
+
10202
+ case 'reservation_export_csv': {
10203
+ const q = new URLSearchParams();
10204
+ for (const k of ['from', 'to', 'status', 'provider', 'resourceId']) if (args[k] !== undefined && args[k] !== '') q.set(k, String(args[k]));
10205
+ return await messagingText(`/ReservationExport/Csv${q.toString() ? '?' + q : ''}`);
10206
+ }
10207
+
10127
10208
  // -- Booking defaults and presets --
10128
10209
  case 'scheduler_selection_get': {
10129
10210
  return JSON.stringify(await messagingGet('/Appointments/Settings'), null, 2);