@velaro/mcp-server 2.0.76 → 2.0.78

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 +40 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.76",
3
+ "version": "2.0.78",
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
@@ -4428,6 +4428,15 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4428
4428
  required: [],
4429
4429
  },
4430
4430
  },
4431
+ // -- Velaro Sign (ContractSignersController, route api/Contract) --
4432
+ {
4433
+ name: 'sign_verify_file',
4434
+ description: 'Verify a file (base64 content) against the original and final signed SHA-256 of all contracts. Returns { match, sha256, contractId, title, status, matched: original|final }.',
4435
+ inputSchema: { type: 'object', properties: {
4436
+ contentBase64: { type: 'string', description: 'Base64-encoded file bytes' },
4437
+ fileName: { type: 'string', description: 'Optional file name (default document.pdf)' },
4438
+ }, required: ['contentBase64'] },
4439
+ },
4431
4440
  {
4432
4441
  name: 'pickup_update_config',
4433
4442
  description: 'Create or update this site\'s Pickup & Reminder Texting configuration. Apply-if-present semantics -- omit any field to leave it unchanged. Pass id to update an existing config (from pickup_get_config); omit id to create the site\'s first config.',
@@ -4476,6 +4485,11 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4476
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 }.',
4477
4486
  inputSchema: { type: 'object', properties: {}, required: [] },
4478
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
+ },
4479
4493
  {
4480
4494
  name: 'recruiting_get_config',
4481
4495
  description: 'Get this site\'s Recruiting Bot configuration (jobs feed URL, feed type, recruiter email, company name/description, enabled state).',
@@ -9093,12 +9107,38 @@ ${JSON.stringify(result, null, 2)}`;
9093
9107
  return JSON.stringify(result, null, 2);
9094
9108
  }
9095
9109
 
9110
+ // -- Velaro Sign --
9111
+ case 'sign_verify_file': {
9112
+ const form = new FormData();
9113
+ form.append('file', new Blob([Buffer.from(args.contentBase64, 'base64')]), args.fileName || 'document.pdf');
9114
+ const res = await fetch(`${API_BASE}/api/Contract/verify`, {
9115
+ method: 'POST',
9116
+ headers: { Authorization: authHeader() },
9117
+ body: form,
9118
+ signal: AbortSignal.timeout(60000),
9119
+ });
9120
+ const text = await res.text();
9121
+ if (!res.ok) throw new Error(`Velaro API POST /api/Contract/verify -> ${res.status}: ${text.slice(0, 300)}`);
9122
+ return text;
9123
+ }
9124
+
9096
9125
  // -- Recruiting Bot --
9097
9126
  case 'recruiting_sync_jobs': {
9098
9127
  const result = await messagingPost('/Recruiting/Sync', {});
9099
9128
  return JSON.stringify(result, null, 2);
9100
9129
  }
9101
9130
 
9131
+ case 'workforce_get_settings': {
9132
+ const rows = await messagingGet('/WorkSchedules');
9133
+ const list = Array.isArray(rows) ? rows : (rows?.schedules ?? []);
9134
+ return JSON.stringify(list.map(x => ({
9135
+ id: x.id, name: x.name, enabled: x.enabled,
9136
+ dailyBreakAllowanceMinutes: x.dailyBreakAllowanceMinutes ?? 0,
9137
+ enforceAvailability: x.enforceAvailability ?? false,
9138
+ afterHoursAction: x.afterHoursAction ?? 'None',
9139
+ })), null, 2);
9140
+ }
9141
+
9102
9142
  case 'recruiting_get_config': {
9103
9143
  const config = await messagingGet('/Recruiting/Config');
9104
9144
  return JSON.stringify(config, null, 2);