@velaro/mcp-server 2.0.106 → 2.0.108
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/parity/automation-addon.customer.js +23 -0
- package/server.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.108",
|
|
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": {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// velaro automation-addon (customer): status, limits and usage of the Automation and API add-on, and pause / resume.
|
|
2
|
+
// Parity module (CLI group -> MCP tools). The site comes from the credential; pausing needs a site administrator and keeps all configuration.
|
|
3
|
+
|
|
4
|
+
export const tools = [
|
|
5
|
+
{
|
|
6
|
+
name: 'automation_addon_get',
|
|
7
|
+
description: 'Show whether the Automation and API add-on (API keys, webhooks, Zapier, n8n, Make, Power Automate and workflow triggers) is active, paused or not added for your site, with its limits and current usage.',
|
|
8
|
+
inputSchema: { type: 'object', properties: {} },
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: 'automation_addon_set',
|
|
12
|
+
description: 'Pause (enabled=false) or resume (enabled=true) the Automation and API add-on on your site. Site administrators only. Pausing keeps every API key, webhook and setting; resuming restores them. 404 when your site does not have the add-on.',
|
|
13
|
+
inputSchema: { type: 'object', properties: { enabled: { type: 'boolean', description: 'false to pause, true to resume' } }, required: ['enabled'] },
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export const handlers = {
|
|
18
|
+
automation_addon_get: async (_a, ctx) => ctx.api('GET', '/AutomationAddon'),
|
|
19
|
+
automation_addon_set: async (a, ctx) => {
|
|
20
|
+
if (typeof a.enabled !== 'boolean') throw new Error('enabled must be true or false');
|
|
21
|
+
return ctx.api('PUT', '/AutomationAddon', { enabled: a.enabled });
|
|
22
|
+
},
|
|
23
|
+
};
|
package/server.js
CHANGED
|
@@ -489,6 +489,16 @@ const TOOLS = [
|
|
|
489
489
|
description: 'Restore a saved version of the signature policy (site administrators only). The restored settings are saved as a NEW version. Use signature_policy_history to find the versionId.',
|
|
490
490
|
inputSchema: { type: 'object', properties: { versionId: { type: 'integer' } }, required: ['versionId'] },
|
|
491
491
|
},
|
|
492
|
+
{
|
|
493
|
+
name: 'apollo_status',
|
|
494
|
+
description: 'Apollo prospecting connection state for this site: connected or not, masked key, usage counters and terms acceptance. Read only.',
|
|
495
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
name: 'apollo_presets',
|
|
499
|
+
description: 'List the Apollo prospecting search presets available to this site. Read only.',
|
|
500
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
501
|
+
},
|
|
492
502
|
{
|
|
493
503
|
name: 'kb_list_topics',
|
|
494
504
|
description: 'List all KB topics. Call this first to find the topicId needed for creating articles.',
|
|
@@ -5572,6 +5582,12 @@ async function handleTool(name, args) {
|
|
|
5572
5582
|
return JSON.stringify(await messagingPost(`/Signatures/policy/rollback/${args.versionId}`, {}), null, 2);
|
|
5573
5583
|
}
|
|
5574
5584
|
|
|
5585
|
+
case 'apollo_status':
|
|
5586
|
+
return JSON.stringify(await api('GET', '/Apollo/Status'), null, 2);
|
|
5587
|
+
|
|
5588
|
+
case 'apollo_presets':
|
|
5589
|
+
return JSON.stringify(await api('GET', '/Apollo/Presets'), null, 2);
|
|
5590
|
+
|
|
5575
5591
|
case 'kb_list_topics': {
|
|
5576
5592
|
const data = await api('GET', '/api/kb/topics');
|
|
5577
5593
|
const topics = data?.topics ?? [];
|