@velaro/mcp-server 2.0.117 → 2.0.118

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 +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.117",
3
+ "version": "2.0.118",
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
@@ -2268,6 +2268,16 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
2268
2268
  description: 'Mark one safety event as reviewed. Wraps POST SafetyEvents/{id}/acknowledge.',
2269
2269
  inputSchema: { type: 'object', properties: { id: { type: 'string' } }, required: ['id'] },
2270
2270
  },
2271
+ {
2272
+ name: 'safety_event_source',
2273
+ description: 'Where a safety event came from: component, visitor, IP, browser, exact text, blocked or let through, repeat count. Administrators and managers only; the site comes from your login. Wraps GET SafetyEvents/{id}/detail.',
2274
+ inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Event id' } }, required: ['id'] },
2275
+ },
2276
+ {
2277
+ name: 'safety_event_block',
2278
+ description: 'Block the IP or the visitor behind a safety event. Writes an audit row (who, when). Administrators and managers only. Wraps POST SafetyEvents/{id}/block-ip and block-visitor.',
2279
+ inputSchema: { type: 'object', properties: { id: { type: 'string' }, target: { type: 'string', enum: ['ip', 'visitor'] } }, required: ['id', 'target'] },
2280
+ },
2271
2281
  {
2272
2282
  name: 'safety_settings_get',
2273
2283
  description: 'Get the safety alert settings: enabled, emailRecipients, smsRecipients, immediateTypes, digest (off|daily|weekly), threshold {count, windowMinutes}. Wraps GET SafetyEvents/settings.',
@@ -7270,6 +7280,10 @@ reply: ${r?.reply}`;
7270
7280
  return JSON.stringify(await messagingGet(`/SafetyEvents/summary?days=${Number(args.days) || 7}`), null, 2);
7271
7281
  case 'safety_event_ack':
7272
7282
  return JSON.stringify(await messagingPost(`/SafetyEvents/${encodeURIComponent(args.id)}/acknowledge`), null, 2);
7283
+ case 'safety_event_source':
7284
+ return JSON.stringify(await messagingGet('/SafetyEvents/' + encodeURIComponent(args.id) + '/detail'), null, 2);
7285
+ case 'safety_event_block':
7286
+ return JSON.stringify(await messagingPost('/SafetyEvents/' + encodeURIComponent(args.id) + (args.target === 'visitor' ? '/block-visitor' : '/block-ip')), null, 2);
7273
7287
  case 'safety_settings_get':
7274
7288
  return JSON.stringify(await messagingGet('/SafetyEvents/settings'), null, 2);
7275
7289
  case 'safety_settings_set': {