@velaro/mcp-server 2.0.103 → 2.0.104
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 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.104",
|
|
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
|
@@ -604,6 +604,16 @@ const TOOLS = [
|
|
|
604
604
|
description: 'Restore a deleted KB topic.',
|
|
605
605
|
inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Topic ID' } }, required: ['id'] },
|
|
606
606
|
},
|
|
607
|
+
{
|
|
608
|
+
name: 'contact_notes_list',
|
|
609
|
+
description: 'List notes on a contact (newest first, paged).',
|
|
610
|
+
inputSchema: { type: 'object', properties: { id: { type: 'number' }, page: { type: 'number' }, pageSize: { type: 'number' } }, required: ['id'] },
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: 'contact_tag_remove',
|
|
614
|
+
description: 'Remove a tag from a contact.',
|
|
615
|
+
inputSchema: { type: 'object', properties: { id: { type: 'number' }, tagId: { type: 'number' } }, required: ['id', 'tagId'] },
|
|
616
|
+
},
|
|
607
617
|
{
|
|
608
618
|
name: 'contactsegment_list_deleted',
|
|
609
619
|
description: 'List recently deleted contact segments (restorable for 30 days).',
|
|
@@ -1641,6 +1651,9 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
1641
1651
|
contactId: { type: 'number' }, email: { type: 'string' }, firstName: { type: 'string' }, lastName: { type: 'string' },
|
|
1642
1652
|
phone: { type: 'string' }, mobile: { type: 'string' }, company: { type: 'string' }, jobTitle: { type: 'string' },
|
|
1643
1653
|
tags: { type: 'array', items: { type: 'string' } },
|
|
1654
|
+
customFields: { type: 'object', description: 'Custom field values {name: value}. Unknown or invalid keys return an error naming the key; nothing is silently dropped.' },
|
|
1655
|
+
id: { type: 'number', description: 'Alias for contactId' },
|
|
1656
|
+
fields: { type: 'object', description: 'Optional object of core fields merged into the update' },
|
|
1644
1657
|
},
|
|
1645
1658
|
required: ['contactId'],
|
|
1646
1659
|
},
|
|
@@ -5671,6 +5684,14 @@ async function handleTool(name, args) {
|
|
|
5671
5684
|
return rows.map(r => `#${r.id} ${r.name} (deleted ${r.deletedAt}, purges in ${r.daysUntilPurge} day(s))`).join('\n');
|
|
5672
5685
|
}
|
|
5673
5686
|
|
|
5687
|
+
case 'contact_notes_list': {
|
|
5688
|
+
const r = await api('GET', `/api/v1/contacts/${args.id}/notes?page=${args.page || 1}&pageSize=${args.pageSize || 50}`);
|
|
5689
|
+
return JSON.stringify(r, null, 2);
|
|
5690
|
+
}
|
|
5691
|
+
case 'contact_tag_remove': {
|
|
5692
|
+
await api('DELETE', `/api/v1/contacts/${args.id}/tags/${args.tagId}`);
|
|
5693
|
+
return `Removed tag #${args.tagId} from contact #${args.id}.`;
|
|
5694
|
+
}
|
|
5674
5695
|
case 'contactsegment_restore': {
|
|
5675
5696
|
await api('POST', `/ContactSegments/${args.id}/restore`);
|
|
5676
5697
|
return `Restored #${args.id}.`;
|
|
@@ -6378,7 +6399,9 @@ reply: ${r?.reply}`;
|
|
|
6378
6399
|
|
|
6379
6400
|
// PATCH api/v1/contacts/{id} -> PublicApiController.PatchContact
|
|
6380
6401
|
case 'contact_update': {
|
|
6381
|
-
const { contactId, ...
|
|
6402
|
+
const { contactId: cid, id: legacyId, fields, ...rest } = args || {};
|
|
6403
|
+
const contactId = cid ?? legacyId;
|
|
6404
|
+
const body = { ...(fields || {}), ...rest };
|
|
6382
6405
|
if (!contactId) return 'Error: contactId is required.';
|
|
6383
6406
|
const r = await api('PATCH', `/api/v1/contacts/${encodeURIComponent(contactId)}`, body);
|
|
6384
6407
|
return `Updated contact #${r.id} (${r.email})${r.tags?.length ? ' tags: ' + r.tags.join(', ') : ''}`;
|