@velaro/mcp-server 2.0.141 → 2.0.142
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 +21 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.142",
|
|
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
|
@@ -1889,6 +1889,16 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
1889
1889
|
description: 'List the Teams destinations (channels and chats) the Velaro Bot can post this site alerts into, with type, team and channel name, which one is pinned and which one is in use. Use a refId with teams_push_settings_update pinnedConversationRefId.',
|
|
1890
1890
|
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
1891
1891
|
},
|
|
1892
|
+
{
|
|
1893
|
+
name: 'teams_channels_list',
|
|
1894
|
+
description: 'List ALL channels of the Teams tenant connected to this site via Microsoft Graph. When the tenant admin has not approved channel listing it returns source "contacted" (only channels the bot was used in) with consentRequired, consentUrl and a message. Use teams_channel_adopt to make a listed channel a destination.',
|
|
1895
|
+
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
name: 'teams_channel_adopt',
|
|
1899
|
+
description: 'Make a channel from teams_channels_list a push destination and return its refId (use it in teams_push_settings_update eventDestinations).',
|
|
1900
|
+
inputSchema: { type: 'object', properties: { teamId: { type: 'string' }, channelId: { type: 'string' } }, required: ['teamId', 'channelId'] },
|
|
1901
|
+
},
|
|
1892
1902
|
{
|
|
1893
1903
|
name: 'teams_push_settings_update',
|
|
1894
1904
|
description: 'Change the Velaro Bot proactive-alert settings for this site. Only fields you pass are changed; omitted fields keep their value. Set resetDailyPushCap=true to clear the per-site cap and use the platform default.',
|
|
@@ -1909,6 +1919,10 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
1909
1919
|
statusAlertQueue: { type: 'number', description: 'Post a status as soon as this many chats are waiting (0 = no limit)' },
|
|
1910
1920
|
statusAlertWaitMinutes: { type: 'number', description: 'Post a status as soon as the longest wait reaches this many minutes (0 = no limit)' },
|
|
1911
1921
|
clearStatusThresholds: { type: 'boolean', description: 'Remove both status limits' },
|
|
1922
|
+
channelMode: { type: 'string', enum: ['mention', 'all'], description: 'Team channels and group chats: mention = bot answers only when @mentioned (default); all = also messages asking about the queue, agents or a ticket' },
|
|
1923
|
+
personalFreeText: { type: 'boolean', description: 'In a 1:1 chat the bot answers free text (true, default) or commands only (false)' },
|
|
1924
|
+
eventDestinations: { type: 'object', description: 'Route an event to a destination, for example {"new_chat": 12}. Values are refIds from teams_push_targets_list. Merged into existing routes.', additionalProperties: { type: 'number' } },
|
|
1925
|
+
clearEventDestinations: { type: 'array', items: { type: 'string' }, description: 'Event keys whose route should go back to the default destination' },
|
|
1912
1926
|
},
|
|
1913
1927
|
required: [],
|
|
1914
1928
|
},
|
|
@@ -6989,12 +7003,18 @@ reply: ${r?.reply}`;
|
|
|
6989
7003
|
case 'teams_push_settings_get':
|
|
6990
7004
|
return await api('GET', '/TeamsBot/PushSettings');
|
|
6991
7005
|
|
|
7006
|
+
case 'teams_channels_list':
|
|
7007
|
+
return await api('GET', '/TeamsBot/PushTargets/Channels');
|
|
7008
|
+
|
|
7009
|
+
case 'teams_channel_adopt':
|
|
7010
|
+
return await api('POST', '/TeamsBot/PushTargets/AdoptChannel', { teamId: args.teamId, channelId: args.channelId });
|
|
7011
|
+
|
|
6992
7012
|
case 'teams_push_targets_list':
|
|
6993
7013
|
return await api('GET', '/TeamsBot/PushTargets');
|
|
6994
7014
|
|
|
6995
7015
|
case 'teams_push_settings_update': {
|
|
6996
7016
|
const body = {};
|
|
6997
|
-
for (const k of ['pinnedConversationRefId','clearPinnedConversation','pushNewChat','pushMissed','pushTicketCreated','pushTicketAssigned','pushDailyDigest','dailyPushCap','resetDailyPushCap','statusPostMinutes','clearStatusPost','statusAlertQueue','statusAlertWaitMinutes','clearStatusThresholds'])
|
|
7017
|
+
for (const k of ['pinnedConversationRefId','clearPinnedConversation','pushNewChat','pushMissed','pushTicketCreated','pushTicketAssigned','pushDailyDigest','dailyPushCap','resetDailyPushCap','statusPostMinutes','clearStatusPost','statusAlertQueue','statusAlertWaitMinutes','clearStatusThresholds','channelMode','personalFreeText','eventDestinations','clearEventDestinations'])
|
|
6998
7018
|
if (args[k] !== undefined) body[k] = args[k];
|
|
6999
7019
|
return await api('PUT', '/TeamsBot/PushSettings', body);
|
|
7000
7020
|
}
|