@velaro/mcp-server 2.0.108 → 2.0.109
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 +44 -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.109",
|
|
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
|
@@ -3855,6 +3855,26 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
3855
3855
|
description: 'Verify a NetSuite M2M connection with per-check results (token, REST, customer read) and specific failure reasons and fixes. Lives in velaro-messaging - requires VELARO_MESSAGING_API.',
|
|
3856
3856
|
inputSchema: { type: 'object', properties: { configId: { type: 'number' } }, required: ['configId'] },
|
|
3857
3857
|
},
|
|
3858
|
+
{
|
|
3859
|
+
name: 'netsuite_required_permissions',
|
|
3860
|
+
description: 'List the NetSuite role permissions (subtab, level, skill area) the Velaro AI skills need. Same list as the setup guide.',
|
|
3861
|
+
inputSchema: { type: 'object', properties: {} },
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
name: 'netsuite_permission_preflight',
|
|
3865
|
+
description: 'Check the connected NetSuite role against the required permissions and list what is missing. Lives in velaro-messaging - requires VELARO_MESSAGING_API.',
|
|
3866
|
+
inputSchema: { type: 'object', properties: { configId: { type: 'number' } }, required: ['configId'] },
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
name: 'netsuite_transcript_settings_get',
|
|
3870
|
+
description: 'Show how conversation transcripts are saved to NetSuite (note, or a field overwritten or appended) for one NetSuite config.',
|
|
3871
|
+
inputSchema: { type: 'object', properties: { configId: { type: 'number' } }, required: ['configId'] },
|
|
3872
|
+
},
|
|
3873
|
+
{
|
|
3874
|
+
name: 'netsuite_transcript_settings_set',
|
|
3875
|
+
description: 'Change how transcripts are saved to NetSuite. Returns the before and after; the change applies to the config.',
|
|
3876
|
+
inputSchema: { type: 'object', properties: { configId: { type: 'number' }, transcriptPushMode: { type: 'string' }, transcriptFieldName: { type: 'string' } }, required: ['configId'] },
|
|
3877
|
+
},
|
|
3858
3878
|
|
|
3859
3879
|
// ── Microsoft Teams Phone (config CRUD) ────────────────────────────────────
|
|
3860
3880
|
// Live in-call actions (hold/resume/end/transfer, TeamsPhoneCtiController) are
|
|
@@ -8679,6 +8699,30 @@ reply: ${r?.reply}`;
|
|
|
8679
8699
|
return checks.map(c => `${c.ok ? 'PASS' : 'FAIL'} ${c.name}${c.ok ? '' : ` - ${c.detail || c.reasonCode || ''}${c.reasonCode ? ` [${c.reasonCode}]` : ''}${c.howToFix ? ` | Fix: ${c.howToFix}` : ''}${c.providerDetail ? ` | NetSuite said: ${c.providerDetail}` : ''}`}`).join('\n') || 'No checks returned.';
|
|
8680
8700
|
}
|
|
8681
8701
|
|
|
8702
|
+
case 'netsuite_required_permissions': {
|
|
8703
|
+
const { NETSUITE_REQUIRED_PERMISSIONS } = await import('./netsuite-permissions.js');
|
|
8704
|
+
return NETSUITE_REQUIRED_PERMISSIONS.map(p => `${p.area} | ${p.subtab} > ${p.permission} (${p.level})`).join('\n');
|
|
8705
|
+
}
|
|
8706
|
+
case 'netsuite_permission_preflight': {
|
|
8707
|
+
const r = await messagingPost(`/NetSuite/Configs/${encodeURIComponent(args.configId)}/permission-preflight`, {});
|
|
8708
|
+
return JSON.stringify(r, null, 2);
|
|
8709
|
+
}
|
|
8710
|
+
case 'netsuite_transcript_settings_get': {
|
|
8711
|
+
const list = await messagingGet('/NetSuite/Integrations/List');
|
|
8712
|
+
const arr = Array.isArray(list) ? list : Object.values(list || {}).find(Array.isArray) || [];
|
|
8713
|
+
const c = arr.find(x => String(x.id) === String(args.configId));
|
|
8714
|
+
if (!c) throw new Error(`NetSuite config ${args.configId} not found.`);
|
|
8715
|
+
return `Transcript mode: ${c.transcriptPushMode ?? '(default)'}; field: ${c.transcriptFieldName ?? '(none)'}`;
|
|
8716
|
+
}
|
|
8717
|
+
case 'netsuite_transcript_settings_set': {
|
|
8718
|
+
const body = {};
|
|
8719
|
+
if (args.transcriptPushMode) body.transcriptPushMode = args.transcriptPushMode;
|
|
8720
|
+
if (args.transcriptFieldName) body.transcriptFieldName = args.transcriptFieldName;
|
|
8721
|
+
if (!Object.keys(body).length) throw new Error('Pass transcriptPushMode and/or transcriptFieldName.');
|
|
8722
|
+
await messagingPut(`/NetSuite/Integrations/${encodeURIComponent(args.configId)}`, body);
|
|
8723
|
+
return `Updated config ${args.configId}: ${JSON.stringify(body)}`;
|
|
8724
|
+
}
|
|
8725
|
+
|
|
8682
8726
|
// ── Microsoft Teams Phone (config CRUD) ───────────────────────────────────
|
|
8683
8727
|
case 'teams_phone_get_config': {
|
|
8684
8728
|
const config = await messagingGet('/TeamsPhone/Config');
|