@velaro/mcp-server 2.0.140 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/server.js +39 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velaro/mcp-server",
3
- "version": "2.0.140",
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
  },
@@ -4137,6 +4151,12 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
4137
4151
  },
4138
4152
  },
4139
4153
 
4154
+ // -- Security settings catalog (v27) --
4155
+ {
4156
+ name: 'security_catalog_get',
4157
+ description: 'Security and Compliance & privacy settings catalog: every setting grouped by page, its level (basic = included for everyone, standard = Professional, enterprise = Enterprise), and the default retention per level. Read-only.',
4158
+ inputSchema: { type: 'object', properties: {} },
4159
+ },
4140
4160
  // ── Compliance document signing ───────────────────────────────────────────────
4141
4161
  {
4142
4162
  name: 'compliance_status',
@@ -6983,12 +7003,18 @@ reply: ${r?.reply}`;
6983
7003
  case 'teams_push_settings_get':
6984
7004
  return await api('GET', '/TeamsBot/PushSettings');
6985
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
+
6986
7012
  case 'teams_push_targets_list':
6987
7013
  return await api('GET', '/TeamsBot/PushTargets');
6988
7014
 
6989
7015
  case 'teams_push_settings_update': {
6990
7016
  const body = {};
6991
- 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'])
6992
7018
  if (args[k] !== undefined) body[k] = args[k];
6993
7019
  return await api('PUT', '/TeamsBot/PushSettings', body);
6994
7020
  }
@@ -9380,6 +9406,18 @@ ${JSON.stringify(result, null, 2)}`;
9380
9406
  }
9381
9407
 
9382
9408
  // ── Compliance document signing ───────────────────────────────────────────────
9409
+ case 'security_catalog_get': {
9410
+ const c = await api('GET', '/Entitlements/security-catalog');
9411
+ if (!c || !Array.isArray(c.items)) return 'Failed to load the security catalog.';
9412
+ const lines = ['Security catalog'];
9413
+ for (const g of (c.groups || [])) {
9414
+ lines.push('\n' + g.label + ' (' + g.page + ')');
9415
+ for (const i of c.items.filter(x => x.group === g.id)) lines.push(' [' + i.level + '] ' + i.label);
9416
+ }
9417
+ lines.push('\nDefault retention (days, basic/standard/enterprise)');
9418
+ for (const r of (c.retentionDefaults || [])) lines.push(' ' + r.label + ': ' + (r.basicDays ?? 'you choose') + ' / ' + (r.standardDays ?? 'you choose') + ' / ' + (r.enterpriseDays ?? 'you choose'));
9419
+ return lines.join('\n');
9420
+ }
9383
9421
  case 'compliance_status': {
9384
9422
  const docs = await api('GET', '/Compliance/documents');
9385
9423
  if (!Array.isArray(docs) || !docs.length) return 'No compliance documents found.';