@velaro/mcp-server 2.0.30 → 2.0.31
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
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,28 @@
|
|
|
1
|
+
// velaro workflow versions|download|restore: last 5 prior versions of every workflow. Site comes from the credential.
|
|
2
|
+
// Parity module (CLI group "workflow" -> MCP tools workflow_versions / workflow_version_get / workflow_restore).
|
|
3
|
+
|
|
4
|
+
const pid = (v, n) => { const x = Number(v); if (!Number.isInteger(x) || x <= 0) throw new Error(n + ' must be a positive integer'); return x; };
|
|
5
|
+
|
|
6
|
+
export const tools = [
|
|
7
|
+
{
|
|
8
|
+
name: 'workflow_versions',
|
|
9
|
+
description: 'List the last 5 prior versions of a workflow (newest first): version id, who saved over it, source (editor, API, MCP, Moshky, restore), when, node count. Every change to a workflow keeps the state it replaced. Read-only.',
|
|
10
|
+
inputSchema: { type: 'object', properties: { workflowId: { type: 'integer', description: 'Workflow id' } }, required: ['workflowId'] },
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
name: 'workflow_version_get',
|
|
14
|
+
description: 'Download one prior workflow version as JSON (name, enabled, triggerType, nodes) so it can be compared with the current workflow or analyzed before a restore. Read-only.',
|
|
15
|
+
inputSchema: { type: 'object', properties: { workflowId: { type: 'integer', description: 'Workflow id' }, versionId: { type: 'integer', description: 'Version id from workflow_versions' } }, required: ['workflowId', 'versionId'] },
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'workflow_restore',
|
|
19
|
+
description: 'Restore a prior version of a workflow (nodes, name, trigger). The current state is saved as a new version first, so a restore can be undone, and the restore is audit-logged. The workflow enabled state is not changed.',
|
|
20
|
+
inputSchema: { type: 'object', properties: { workflowId: { type: 'integer', description: 'Workflow id' }, versionId: { type: 'integer', description: 'Version id from workflow_versions' } }, required: ['workflowId', 'versionId'] },
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export const handlers = {
|
|
25
|
+
workflow_versions: async (a, ctx) => ctx.messagingGet(`/Workflows/${pid(a.workflowId, 'workflowId')}/versions`),
|
|
26
|
+
workflow_version_get: async (a, ctx) => ctx.messagingGet(`/Workflows/${pid(a.workflowId, 'workflowId')}/versions/${pid(a.versionId, 'versionId')}`),
|
|
27
|
+
workflow_restore: async (a, ctx) => ctx.messagingPost(`/Workflows/${pid(a.workflowId, 'workflowId')}/versions/${pid(a.versionId, 'versionId')}/restore`, {}),
|
|
28
|
+
};
|