@velaro/mcp-server 2.0.113 → 2.0.114
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/parity/crm-views-bulk-webforms.customer.js +3 -51
- package/server.js +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@velaro/mcp-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.114",
|
|
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": {
|
|
@@ -83,44 +83,17 @@ export const tools = [
|
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
name: 'crm_webform_list',
|
|
86
|
-
description: 'List the CRM form layouts that are published as public web forms, with each form\'s page path
|
|
86
|
+
description: 'List the CRM form layouts that are published as public web forms, with each form\'s page path and whether it is online. Administrator only.',
|
|
87
87
|
inputSchema: { type: 'object', properties: {} },
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
name: 'crm_webform_get',
|
|
91
|
-
description: 'Show the web form published from one form layout (page path,
|
|
91
|
+
description: 'Show the web form published from one form layout (page path, question count, whether it is online). Administrator only.',
|
|
92
92
|
inputSchema: { type: 'object', properties: { layoutId: { type: 'number' } }, required: ['layoutId'] },
|
|
93
93
|
},
|
|
94
|
-
{
|
|
95
|
-
name: 'crm_webform_settings',
|
|
96
|
-
description: 'Set what a visitor sees after submitting a published CRM web form: a plain text success message (up to 500 characters, no markup) and an optional redirect address (a full http or https address, up to 500 characters, no user name or password in it). Options you leave out keep their stored value; pass clear true to reset both to the defaults. The form must be published. Administrator only; part of the CRM Studio package (see your plan).',
|
|
97
|
-
inputSchema: {
|
|
98
|
-
type: 'object',
|
|
99
|
-
properties: {
|
|
100
|
-
layoutId: { type: 'number' },
|
|
101
|
-
successMessage: { type: 'string', description: 'Plain text; an empty string restores the standard thank you.' },
|
|
102
|
-
redirectUrl: { type: 'string', description: 'Full http or https address; an empty string removes the redirect.' },
|
|
103
|
-
clear: { type: 'boolean', description: 'Reset both settings to the defaults.' },
|
|
104
|
-
},
|
|
105
|
-
required: ['layoutId'],
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
name: 'crm_webform_submissions',
|
|
110
|
-
description: 'List what visitors submitted through a published CRM web form, newest first, as question and answer pairs per submission. Paged: page starts at 1, pageSize is at most 100. Administrator only; works on any plan.',
|
|
111
|
-
inputSchema: {
|
|
112
|
-
type: 'object',
|
|
113
|
-
properties: {
|
|
114
|
-
layoutId: { type: 'number' },
|
|
115
|
-
page: { type: 'number', description: 'Starts at 1.' },
|
|
116
|
-
pageSize: { type: 'number', description: 'At most 100; default 25.' },
|
|
117
|
-
},
|
|
118
|
-
required: ['layoutId'],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
94
|
{
|
|
122
95
|
name: 'crm_webform_publish',
|
|
123
|
-
description: 'Publish a CRM form layout as a public web form, or update the one already published (same link). The form is a survey with one CRM field question per layout field, served at the hosted survey page; the reply lists any layout fields that were left out and why
|
|
96
|
+
description: 'Publish a CRM form layout as a public web form, or update the one already published (same link). The form is a survey with one CRM field question per layout field, served at the hosted survey page; the reply lists any layout fields that were left out and why. Administrator only; part of the CRM Studio package (see your plan).',
|
|
124
97
|
inputSchema: { type: 'object', properties: { layoutId: { type: 'number' } }, required: ['layoutId'] },
|
|
125
98
|
},
|
|
126
99
|
{
|
|
@@ -168,25 +141,4 @@ export const handlers = {
|
|
|
168
141
|
crm_webform_get: async (a, ctx) => data(await ctx.messagingGet(`/CrmWebForms/${id(a.layoutId)}`)),
|
|
169
142
|
crm_webform_publish: async (a, ctx) => data(await ctx.messagingPost(`/CrmWebForms/${id(a.layoutId)}/publish`, {})),
|
|
170
143
|
crm_webform_unpublish: async (a, ctx) => data(await ctx.messagingDel(`/CrmWebForms/${id(a.layoutId)}/publish`)),
|
|
171
|
-
crm_webform_settings: async (a, ctx) => {
|
|
172
|
-
// The server replaces both fields, so a field that was not sent keeps its stored value.
|
|
173
|
-
let body;
|
|
174
|
-
if (a.clear) {
|
|
175
|
-
if (a.successMessage !== undefined || a.redirectUrl !== undefined) throw new Error('[CRM] clear cannot be combined with successMessage or redirectUrl.');
|
|
176
|
-
body = { successMessage: '', redirectUrl: '' };
|
|
177
|
-
} else {
|
|
178
|
-
if (a.successMessage === undefined && a.redirectUrl === undefined) throw new Error('[CRM] Pass successMessage, redirectUrl or clear.');
|
|
179
|
-
const cur = data(await ctx.messagingGet(`/CrmWebForms/${id(a.layoutId)}`))?.settings ?? {};
|
|
180
|
-
body = {
|
|
181
|
-
successMessage: a.successMessage !== undefined ? String(a.successMessage) : (cur.successMessage ?? ''),
|
|
182
|
-
redirectUrl: a.redirectUrl !== undefined ? String(a.redirectUrl).trim() : (cur.redirectUrl ?? ''),
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
return data(await ctx.messagingPut(`/CrmWebForms/${id(a.layoutId)}/settings`, body));
|
|
186
|
-
},
|
|
187
|
-
crm_webform_submissions: async (a, ctx) => {
|
|
188
|
-
const page = Number.isInteger(a.page) && a.page >= 1 ? a.page : 1;
|
|
189
|
-
const pageSize = Number.isInteger(a.pageSize) && a.pageSize >= 1 ? Math.min(a.pageSize, 100) : 25;
|
|
190
|
-
return data(await ctx.messagingGet(`/CrmWebForms/${id(a.layoutId)}/submissions${q({ page, pageSize })}`));
|
|
191
|
-
},
|
|
192
144
|
};
|
package/server.js
CHANGED
|
@@ -5052,20 +5052,6 @@ For multiSelect dynamic options: the variable named in dynamicOptionsVariable mu
|
|
|
5052
5052
|
// ── Booking defaults and presets ──────────────────────────────────────────────
|
|
5053
5053
|
// Backend: server/Velaro.Messaging/Controllers/BookingDefaultsController.cs at /BookingDefaults.
|
|
5054
5054
|
// SiteId derives from the caller's auth context, never a tool argument (IDOR).
|
|
5055
|
-
{
|
|
5056
|
-
name: 'scheduler_selection_get',
|
|
5057
|
-
description: 'Show which scheduler receives new bookings for this site (writeTargetSlug; empty means the first connected calendar).',
|
|
5058
|
-
inputSchema: { type: 'object', properties: {}, required: [] },
|
|
5059
|
-
},
|
|
5060
|
-
{
|
|
5061
|
-
name: 'scheduler_selection_update',
|
|
5062
|
-
description: 'Choose which scheduler receives new bookings. Pass writeTargetSlug: GoogleCalendar, OutlookCalendar, MicrosoftBookings, Calendly, Acuity, CalCom, or null for Velaro.',
|
|
5063
|
-
inputSchema: {
|
|
5064
|
-
type: 'object',
|
|
5065
|
-
properties: { writeTargetSlug: { type: ['string', 'null'], description: 'Provider slug or null' } },
|
|
5066
|
-
required: ['writeTargetSlug'],
|
|
5067
|
-
},
|
|
5068
|
-
},
|
|
5069
5055
|
{
|
|
5070
5056
|
name: 'booking_defaults_get',
|
|
5071
5057
|
description: 'Get this site\'s booking defaults (default provider, preset, length, meeting type, location, time zone, which contact fields are pre-filled) and its booking presets ("Demo 30 min" style choices offered on every channel). A site with nothing saved returns the built-in defaults and an empty preset list.',
|
|
@@ -9835,12 +9821,6 @@ ${JSON.stringify(result, null, 2)}`;
|
|
|
9835
9821
|
}
|
|
9836
9822
|
|
|
9837
9823
|
// -- Booking defaults and presets --
|
|
9838
|
-
case 'scheduler_selection_get': {
|
|
9839
|
-
return JSON.stringify(await messagingGet('/Appointments/Settings'), null, 2);
|
|
9840
|
-
}
|
|
9841
|
-
case 'scheduler_selection_update': {
|
|
9842
|
-
return JSON.stringify(await messagingPost('/Appointments/Settings', { writeTargetSlug: args.writeTargetSlug ?? null }), null, 2);
|
|
9843
|
-
}
|
|
9844
9824
|
case 'booking_defaults_get': {
|
|
9845
9825
|
const result = await messagingGet('/BookingDefaults');
|
|
9846
9826
|
return JSON.stringify(result, null, 2);
|