@velaro/mcp-server 2.0.71 → 2.0.73

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 +37 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.71",
3
+ "version": "2.0.73",
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
@@ -625,6 +625,11 @@ const TOOLS = [
625
625
  required: ['id'],
626
626
  },
627
627
  },
628
+ {
629
+ name: 'get_api_usage',
630
+ description: 'Show the current site API usage against its plan limits: API calls today and this month, API keys and active webhook endpoints (used, limit, percent; limit 0 = no cap). Read-only. Limits come from the plan; to raise them use Billing.',
631
+ inputSchema: { type: 'object', properties: {} },
632
+ },
628
633
  {
629
634
  name: 'kb_get_settings',
630
635
  description: 'Get the current site\'s Knowledge Base settings: branding (theme color/preset, logo, header text), domain, layout preferences, and SEO/analytics config (meta description, GA4 measurement ID).',
@@ -1475,6 +1480,16 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
1475
1480
  },
1476
1481
 
1477
1482
  // ── Monday.com field mapping / CRM search ────────────────────────────────
1483
+ {
1484
+ name: 'make_get_payload_fields',
1485
+ description: 'Show the Payload Fields declared for the Make integration. Declared fields are the required keys the AI sends in the data object; the AI is told the exact keys and a call with other keys is returned to it so it can retry. Empty means the AI chooses its own keys.',
1486
+ inputSchema: { type: 'object', properties: {}, required: [] },
1487
+ },
1488
+ {
1489
+ name: 'make_set_payload_fields',
1490
+ description: 'Replace the Make integration Payload Fields (complete list; empty array clears). Names: letters, numbers, underscore, hyphen, max 100 chars.',
1491
+ inputSchema: { type: 'object', properties: { fields: { type: 'array', items: { type: 'string' }, description: 'Complete list of payload field names.' } }, required: ['fields'] },
1492
+ },
1478
1493
  {
1479
1494
  name: 'monday_get_board_columns',
1480
1495
  description: 'List a Monday.com board\'s real custom columns (status, people, dropdown, date, numbers, text, etc.) with type and parsed options (status/dropdown label sets). Use this before monday_set_field_mapping to see what columns exist to map to.',
@@ -5423,6 +5438,14 @@ async function handleTool(name, args) {
5423
5438
  return `${updateResult?.message || 'Updated article'} [${args.id}] "${args.title}".`;
5424
5439
  }
5425
5440
 
5441
+ case 'get_api_usage': {
5442
+ const d = await api('GET', '/ApiKeys');
5443
+ return JSON.stringify({
5444
+ apiAccessEnabled: d.enableApiAccess, callsPerMinuteLimit: d.rateLimitPerMinute, usage: d.usage,
5445
+ note: 'A limit of 0 means no cap applies to that metric.',
5446
+ }, null, 2);
5447
+ }
5448
+
5426
5449
  case 'kb_get_settings': {
5427
5450
  const s = await api('GET', '/api/kb/settings');
5428
5451
  return JSON.stringify(s, null, 2);
@@ -6097,6 +6120,20 @@ reply: ${r?.reply}`;
6097
6120
  return [`=== Field mapping (board ${result.boardId}) ===`, ...entries.map(([k, v]) => ` ${k} -> ${v}`)].join('\n');
6098
6121
  }
6099
6122
 
6123
+ case 'make_get_payload_fields': {
6124
+ const r = await api('GET', '/Make/attribute-allowlist?kind=data');
6125
+ const keys = Array.isArray(r?.allowedKeys) ? r.allowedKeys : [];
6126
+ return keys.length ? `Make Payload Fields (${keys.length}): ${keys.join(', ')}` : 'No Payload Fields declared: the AI chooses its own keys.';
6127
+ }
6128
+
6129
+ case 'make_set_payload_fields': {
6130
+ if (!Array.isArray(args.fields)) return 'fields is required: an array of field names.';
6131
+ const bad = args.fields.find(k => typeof k !== 'string' || !/^[A-Za-z0-9_-]{1,100}$/.test(k.trim()));
6132
+ if (bad !== undefined) return `Invalid field name "${bad}": letters, numbers, underscore and hyphen only (max 100).`;
6133
+ await api('PUT', '/Make/attribute-allowlist?kind=data', { allowedKeys: args.fields.map(k => k.trim()) });
6134
+ return `Saved ${args.fields.length} Make Payload Field(s).`;
6135
+ }
6136
+
6100
6137
  case 'monday_set_field_mapping': {
6101
6138
  if (!args.mapping || typeof args.mapping !== 'object') return 'mapping is required — an object of Velaro field -> Monday column id.';
6102
6139
  const result = await api('PUT', '/Monday/FieldMapping', { mapping: args.mapping });