@velaro/mcp-server 2.0.76 → 2.0.77
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.
- package/package.json +1 -1
- package/server.js +24 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.77",
|
|
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.',
|
|
@@ -9093,6 +9102,21 @@ ${JSON.stringify(result, null, 2)}`;
|
|
|
9093
9102
|
return JSON.stringify(result, null, 2);
|
|
9094
9103
|
}
|
|
9095
9104
|
|
|
9105
|
+
// -- Velaro Sign --
|
|
9106
|
+
case 'sign_verify_file': {
|
|
9107
|
+
const form = new FormData();
|
|
9108
|
+
form.append('file', new Blob([Buffer.from(args.contentBase64, 'base64')]), args.fileName || 'document.pdf');
|
|
9109
|
+
const res = await fetch(`${API_BASE}/api/Contract/verify`, {
|
|
9110
|
+
method: 'POST',
|
|
9111
|
+
headers: { Authorization: authHeader() },
|
|
9112
|
+
body: form,
|
|
9113
|
+
signal: AbortSignal.timeout(60000),
|
|
9114
|
+
});
|
|
9115
|
+
const text = await res.text();
|
|
9116
|
+
if (!res.ok) throw new Error(`Velaro API POST /api/Contract/verify -> ${res.status}: ${text.slice(0, 300)}`);
|
|
9117
|
+
return text;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9096
9120
|
// -- Recruiting Bot --
|
|
9097
9121
|
case 'recruiting_sync_jobs': {
|
|
9098
9122
|
const result = await messagingPost('/Recruiting/Sync', {});
|