@velaro/mcp-server 2.0.125 → 2.0.127
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/server.js +42 -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.127",
|
|
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
|
@@ -895,6 +895,36 @@ const TOOLS = [
|
|
|
895
895
|
description: 'List notes on a conversation (REST: GET /api/v1/conversations/{id}/notes). Requires read:conversations.',
|
|
896
896
|
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' } }, required: ['conversationId'] },
|
|
897
897
|
},
|
|
898
|
+
{
|
|
899
|
+
name: 'conversation_action_transfer',
|
|
900
|
+
description: 'Transfer a conversation to a team and/or agent (REST: POST /api/v1/conversations/{id}/transfer). Requires write:conversations.',
|
|
901
|
+
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' }, teamId: { type: 'number' }, agentId: { type: 'number' } }, required: ['conversationId'] },
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
name: 'conversation_action_tags',
|
|
905
|
+
description: 'List tags on a conversation (REST: GET /api/v1/conversations/{id}/tags). Requires read:conversations.',
|
|
906
|
+
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' } }, required: ['conversationId'] },
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
name: 'conversation_action_add_tag',
|
|
910
|
+
description: 'Add a tag to a conversation by tagId or name (REST: POST /api/v1/conversations/{id}/tags). Requires write:conversations.',
|
|
911
|
+
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' }, tagId: { type: 'number' }, name: { type: 'string' } }, required: ['conversationId'] },
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
name: 'conversation_action_remove_tag',
|
|
915
|
+
description: 'Remove a tag from a conversation (REST: DELETE /api/v1/conversations/{id}/tags/{tagId}). Requires write:conversations.',
|
|
916
|
+
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' }, tagId: { type: 'number' } }, required: ['conversationId', 'tagId'] },
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
name: 'conversation_action_transcript',
|
|
920
|
+
description: 'Get the transcript of a conversation (REST: GET /api/v1/conversations/{id}/transcript). Requires read:conversations.',
|
|
921
|
+
inputSchema: { type: 'object', properties: { conversationId: { type: 'number' } }, required: ['conversationId'] },
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
name: 'contact_merge',
|
|
925
|
+
description: 'Merge one contact into another (REST: POST /api/v1/contacts/merge). The source is soft-deleted, its history moves to the target. Requires write:contacts.',
|
|
926
|
+
inputSchema: { type: 'object', properties: { sourceId: { type: 'number' }, targetId: { type: 'number' } }, required: ['sourceId', 'targetId'] },
|
|
927
|
+
},
|
|
898
928
|
{
|
|
899
929
|
name: 'conversation_list',
|
|
900
930
|
description: 'List recent conversations. Returns id, status, phoneNumber, assignedUserId, teamId, createdAt.',
|
|
@@ -6036,6 +6066,18 @@ async function handleTool(name, args) {
|
|
|
6036
6066
|
return JSON.stringify(await api('POST', `/api/v1/conversations/${Number(args.conversationId)}/assign`, { agentId: args.agentId }));
|
|
6037
6067
|
case 'conversation_action_notes':
|
|
6038
6068
|
return JSON.stringify(await api('GET', `/api/v1/conversations/${Number(args.conversationId)}/notes`));
|
|
6069
|
+
case 'conversation_action_transfer':
|
|
6070
|
+
return JSON.stringify(await api('POST', `/api/v1/conversations/${Number(args.conversationId)}/transfer`, { teamId: args.teamId, agentId: args.agentId }));
|
|
6071
|
+
case 'conversation_action_tags':
|
|
6072
|
+
return JSON.stringify(await api('GET', `/api/v1/conversations/${Number(args.conversationId)}/tags`));
|
|
6073
|
+
case 'conversation_action_add_tag':
|
|
6074
|
+
return JSON.stringify(await api('POST', `/api/v1/conversations/${Number(args.conversationId)}/tags`, { tagId: args.tagId, name: args.name }));
|
|
6075
|
+
case 'conversation_action_remove_tag':
|
|
6076
|
+
return JSON.stringify(await api('DELETE', `/api/v1/conversations/${Number(args.conversationId)}/tags/${Number(args.tagId)}`));
|
|
6077
|
+
case 'conversation_action_transcript':
|
|
6078
|
+
return JSON.stringify(await api('GET', `/api/v1/conversations/${Number(args.conversationId)}/transcript`));
|
|
6079
|
+
case 'contact_merge':
|
|
6080
|
+
return JSON.stringify(await api('POST', '/api/v1/contacts/merge', { sourceId: args.sourceId, targetId: args.targetId }));
|
|
6039
6081
|
case 'conversation_get':
|
|
6040
6082
|
return await rpc('conversation_get', args);
|
|
6041
6083
|
|