@velaro/mcp-server 2.0.59 → 2.0.60
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 +30 -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.60",
|
|
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
|
@@ -3465,6 +3465,18 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
3465
3465
|
description: 'List NetSuite config IDs for the site (id, displayName, company) — a site can have multiple NetSuite connections. Use this to find the configId needed by netsuite_cti_get_urls / netsuite_cti_generate_url. Lives in velaro-messaging — requires VELARO_MESSAGING_API.',
|
|
3466
3466
|
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
3467
3467
|
},
|
|
3468
|
+
{
|
|
3469
|
+
name: 'netsuite_screen_pop_every_page',
|
|
3470
|
+
description: 'Get or set whether the NetSuite screen pop shows on every NetSuite page (needs SuiteApp 1.2.0 or later; the Screen Pop page and dashboard portlet keep working). action=get returns the current value; action=set requires enabled (true/false) and keeps every other call-pop setting as it is. Lives in velaro-messaging (api/v1/CallPopSettings, row netsuite) — requires VELARO_MESSAGING_API.',
|
|
3471
|
+
inputSchema: {
|
|
3472
|
+
type: 'object',
|
|
3473
|
+
properties: {
|
|
3474
|
+
action: { type: 'string', enum: ['get', 'set'], description: 'get or set.' },
|
|
3475
|
+
enabled: { type: 'boolean', description: 'Required for action=set.' },
|
|
3476
|
+
},
|
|
3477
|
+
required: ['action'],
|
|
3478
|
+
},
|
|
3479
|
+
},
|
|
3468
3480
|
{
|
|
3469
3481
|
name: 'netsuite_cti_get_urls',
|
|
3470
3482
|
description: 'Get the current NetSuite click-to-dial (CTI) setup URLs for a config — the dial URL to paste into NetSuite Home > Set Preferences > Telephony > CTI URL, and the (unconfirmed-automatic) screen-pop URL. Returns null URLs if a token has never been generated. Lives in velaro-messaging — requires VELARO_MESSAGING_API.',
|
|
@@ -7958,6 +7970,24 @@ reply: ${r?.reply}`;
|
|
|
7958
7970
|
` | clientId ${c.clientIdSaved ? 'saved' : 'MISSING'}, certificate ${c.certificateIdSaved ? 'saved' : 'MISSING'}` +
|
|
7959
7971
|
`${c.certificateExpiresAt ? `, expires ${c.certificateExpiresAt}` : ''}`).join('\n');
|
|
7960
7972
|
}
|
|
7973
|
+
case 'netsuite_screen_pop_every_page': {
|
|
7974
|
+
const raw = await messagingGet('/api/v1/CallPopSettings');
|
|
7975
|
+
const body = raw?.data ?? raw;
|
|
7976
|
+
const rows = Array.isArray(body) ? body : [...(body?.global ? [body.global] : []), ...(body?.overrides ?? [])];
|
|
7977
|
+
const row = rows.find(x => x.integrationSlug === 'netsuite') ?? null;
|
|
7978
|
+
const was = row?.showOnEveryPage ?? null;
|
|
7979
|
+
const label = v => (v === null ? 'not set (inherits the default)' : v ? 'on' : 'off');
|
|
7980
|
+
if (args.action === 'get') return `Screen pop on every NetSuite page: ${label(was)}`;
|
|
7981
|
+
if (args.action !== 'set' || typeof args.enabled !== 'boolean') throw new Error('action must be get or set; set requires enabled (true or false).');
|
|
7982
|
+
const r = row ?? {};
|
|
7983
|
+
await messagingPut('/api/v1/CallPopSettings/netsuite', {
|
|
7984
|
+
popMode: r.popMode ?? null, popOnInbound: r.popOnInbound ?? null, popOnOutbound: r.popOnOutbound ?? null,
|
|
7985
|
+
autoOpenRecord: r.autoOpenRecord ?? null, unknownCallerInbox: r.unknownCallerInbox ?? null,
|
|
7986
|
+
promptNotesAfterCall: r.promptNotesAfterCall ?? null, displayFieldsCsv: r.displayFieldsCsv || null,
|
|
7987
|
+
callLogAssociationsCsv: r.callLogAssociationsCsv || null, showOnEveryPage: args.enabled,
|
|
7988
|
+
});
|
|
7989
|
+
return `Screen pop on every NetSuite page: ${label(args.enabled)} (was ${label(was)}).`;
|
|
7990
|
+
}
|
|
7961
7991
|
case 'netsuite_cti_get_urls': {
|
|
7962
7992
|
const urls = await messagingGet(`/NetSuite/Integrations/${args.configId}/CtiUrls`);
|
|
7963
7993
|
if (!urls.ctiUrlToken) return `No CTI URL generated yet for config ${args.configId}. Use netsuite_cti_generate_url to create one.`;
|