@velaro/mcp-server 2.0.73 → 2.0.74

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 +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.73",
3
+ "version": "2.0.74",
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
@@ -1595,6 +1595,19 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
1595
1595
  required: ['email'],
1596
1596
  },
1597
1597
  },
1598
+ {
1599
+ name: 'contact_update',
1600
+ description: "Partially update one contact by id (PATCH /api/v1/contacts/{id}, scope write:contacts). Only the fields sent change; 404 if the contact is not on this site, 409 if the new email belongs to another contact.",
1601
+ inputSchema: {
1602
+ type: 'object',
1603
+ properties: {
1604
+ contactId: { type: 'number' }, email: { type: 'string' }, firstName: { type: 'string' }, lastName: { type: 'string' },
1605
+ phone: { type: 'string' }, mobile: { type: 'string' }, company: { type: 'string' }, jobTitle: { type: 'string' },
1606
+ tags: { type: 'array', items: { type: 'string' } },
1607
+ },
1608
+ required: ['contactId'],
1609
+ },
1610
+ },
1598
1611
  {
1599
1612
  name: 'contact_tag',
1600
1613
  description: "Tag a contact by email (or contactId); the tag is created if new (POST /api/v1/contacts/tag).",
@@ -6191,6 +6204,14 @@ reply: ${r?.reply}`;
6191
6204
  return `${r.created ? 'Created' : 'Updated'} contact #${r.id} (${r.email})${r.tags?.length ? ' tags: ' + r.tags.join(', ') : ''}`;
6192
6205
  }
6193
6206
 
6207
+ // PATCH api/v1/contacts/{id} -> PublicApiController.PatchContact
6208
+ case 'contact_update': {
6209
+ const { contactId, ...body } = args || {};
6210
+ if (!contactId) return 'Error: contactId is required.';
6211
+ const r = await api('PATCH', `/api/v1/contacts/${encodeURIComponent(contactId)}`, body);
6212
+ return `Updated contact #${r.id} (${r.email})${r.tags?.length ? ' tags: ' + r.tags.join(', ') : ''}`;
6213
+ }
6214
+
6194
6215
  // POST api/v1/contacts/tag -> PublicApiController.TagContact
6195
6216
  case 'contact_tag': {
6196
6217
  const r = await api('POST', '/api/v1/contacts/tag', args);