@velaro/mcp-server 2.0.72 → 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 +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.72",
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).',
@@ -5433,6 +5438,14 @@ async function handleTool(name, args) {
5433
5438
  return `${updateResult?.message || 'Updated article'} [${args.id}] "${args.title}".`;
5434
5439
  }
5435
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
+
5436
5449
  case 'kb_get_settings': {
5437
5450
  const s = await api('GET', '/api/kb/settings');
5438
5451
  return JSON.stringify(s, null, 2);