@clipform/mcp-server 5.18.0 → 5.19.0
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/dist/api-client.js +1 -1
- package/dist/{chunk-K4NSJZAP.js → chunk-267KDJVO.js} +12 -2
- package/dist/{chunk-K4NSJZAP.js.map → chunk-267KDJVO.js.map} +1 -1
- package/dist/{chunk-THJUTILR.js → chunk-KAZSNRNF.js} +42 -20
- package/dist/{chunk-THJUTILR.js.map → chunk-KAZSNRNF.js.map} +1 -1
- package/dist/{chunk-HIEBNDBW.js → chunk-NWKND52B.js} +3 -3
- package/dist/{chunk-NRYDSMLT.js → chunk-SOYW4CQX.js} +2 -2
- package/dist/{chunk-DOXSGWYD.js → chunk-UCGO7VI7.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/prompts.js +3 -3
- package/dist/resources.js +3 -3
- package/dist/server.js +5 -5
- package/package.json +1 -1
- package/server.json +2 -2
- /package/dist/{chunk-HIEBNDBW.js.map → chunk-NWKND52B.js.map} +0 -0
- /package/dist/{chunk-NRYDSMLT.js.map → chunk-SOYW4CQX.js.map} +0 -0
- /package/dist/{chunk-DOXSGWYD.js.map → chunk-UCGO7VI7.js.map} +0 -0
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
union,
|
|
32
32
|
unknown,
|
|
33
33
|
url
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NWKND52B.js";
|
|
35
35
|
import {
|
|
36
36
|
GUIDE_TYPES,
|
|
37
37
|
QUIZ_VARIANTS,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
getGuideUri,
|
|
41
41
|
guideFallbackText,
|
|
42
42
|
registerResources
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-UCGO7VI7.js";
|
|
44
44
|
import {
|
|
45
45
|
ANON_PREVIEW_LINK_LABEL,
|
|
46
46
|
ANON_PREVIEW_NOTICE,
|
|
@@ -54,13 +54,14 @@ import {
|
|
|
54
54
|
isPreviewViewerUrl,
|
|
55
55
|
previewOnlyNotice,
|
|
56
56
|
withAdoptedNotice
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SOYW4CQX.js";
|
|
58
58
|
import {
|
|
59
59
|
ACTIVE_NODE_TYPES,
|
|
60
60
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
61
61
|
ANON_MCP_LIVE_TTL_DAYS,
|
|
62
62
|
ANON_MCP_RESPONSE_CAP,
|
|
63
63
|
CHOICE_MAX_OPTIONS,
|
|
64
|
+
COMPANY_CHECKLIST_KINDS,
|
|
64
65
|
CONSENT_TYPES,
|
|
65
66
|
CONTACT_FIELDS,
|
|
66
67
|
FEATURE_FLAGS,
|
|
@@ -117,7 +118,7 @@ import {
|
|
|
117
118
|
textResult,
|
|
118
119
|
validateVariableKey,
|
|
119
120
|
viewerUrl
|
|
120
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-267KDJVO.js";
|
|
121
122
|
import {
|
|
122
123
|
getMcpAuth,
|
|
123
124
|
runWithMcpAuth,
|
|
@@ -19208,6 +19209,14 @@ var TourSchema = external_exports.object({
|
|
|
19208
19209
|
body: external_exports.string().min(1).max(GUIDE_LIMITS.bodyMax).describe(`The note, up to ${GUIDE_LIMITS.bodyMax} characters of plain text`),
|
|
19209
19210
|
anchor: external_exports.enum(GUIDE_TOUR_ANCHORS).optional().describe('Where the note points: "node" (default) or "share" for the closing note on the Share button')
|
|
19210
19211
|
});
|
|
19212
|
+
var ChecklistItemSchema = external_exports.object({
|
|
19213
|
+
kind: external_exports.enum(COMPANY_CHECKLIST_KINDS).describe(
|
|
19214
|
+
"What ticks the item: record_video (the owner records or uploads their own video on THIS step, so put it on a step that carries a video), preview (they answer a step in the preview), connect (they connect `integration`), go_live (they publish), claim_account (an anonymous visitor creates an account; hidden once signed in)"
|
|
19215
|
+
),
|
|
19216
|
+
label: external_exports.string().min(1).max(GUIDE_LIMITS.checklistLabelMax).describe(`The item, up to ${GUIDE_LIMITS.checklistLabelMax} characters, e.g. "Record your intro"`),
|
|
19217
|
+
description: external_exports.string().max(GUIDE_LIMITS.checklistDescriptionMax).optional().describe(`A short sentence under it, up to ${GUIDE_LIMITS.checklistDescriptionMax} characters (the card is narrow: keep it to about two lines)`),
|
|
19218
|
+
integration: external_exports.string().optional().describe('connect only: the integration slug, e.g. "stripe" or "calendly" (live integrations only)')
|
|
19219
|
+
});
|
|
19211
19220
|
var IntroSchema = external_exports.object({
|
|
19212
19221
|
title: external_exports.string().min(1).max(GUIDE_LIMITS.titleMax).describe(`Who it was built for, up to ${GUIDE_LIMITS.titleMax} characters`),
|
|
19213
19222
|
body: external_exports.string().min(1).max(GUIDE_LIMITS.bodyMax).describe("What the form does for them, in one or two plain sentences")
|
|
@@ -19216,47 +19225,60 @@ function registerSetNodeGuideTool(server) {
|
|
|
19216
19225
|
server.registerTool(
|
|
19217
19226
|
"clipform_set_node_guide",
|
|
19218
19227
|
{
|
|
19219
|
-
title: "Set a walkthrough note",
|
|
19220
|
-
description: `Set or remove the builder walkthrough
|
|
19228
|
+
title: "Set a walkthrough intro, note or checklist",
|
|
19229
|
+
description: `Set or remove the builder walkthrough intro, note and getting-started checklist on one node of an outbound template. When someone copies the template and opens it in the builder, an intro card says what was built for them (title: who it is for, body: what the form does, four short lines at most), then the walkthrough pans to each noted node in form order and shows its note, then the checklist opens with the items of every node (form order, then list order), replacing the generic list on that copy; each item ticks itself from what the owner really does. Write public facts about the company only, never a person's name. Put the intro on the first noted node; each note covers only its own node, and the closing note goes on the last step with anchor "share". Put a record_video item on the step whose video the owner should replace, and the workspace-wide items (connect, go_live, claim_account) on the End screen. At most ${GUIDE_LIMITS.maxTourSteps} notes and ${GUIDE_LIMITS.maxChecklistItems} checklist items show per form. Send any of tour, intro and checklist; null removes that one and leaves the others.`,
|
|
19221
19230
|
inputSchema: external_exports.object({
|
|
19222
19231
|
form_id: external_exports.string().uuid().describe("The form UUID (returned by clipform_create_form, not the short share_id from the URL)"),
|
|
19223
|
-
node_id: external_exports.string().uuid().describe("The node to put the note on (ids from clipform_get_form). Not the Start node."),
|
|
19224
|
-
tour: TourSchema.nullable().optional().describe("The note, or null to remove it. Omit to leave it as is."),
|
|
19225
|
-
intro: IntroSchema.nullable().optional().describe("The intro card shown before the first note, or null to remove it. Omit to leave it as is.")
|
|
19232
|
+
node_id: external_exports.string().uuid().describe("The node to put the note or items on (ids from clipform_get_form). Not the Start node."),
|
|
19233
|
+
tour: TourSchema.nullable().optional().describe("The note, or null to remove it. Omit to leave it as it is."),
|
|
19234
|
+
intro: IntroSchema.nullable().optional().describe("The intro card shown before the first note, or null to remove it. Omit to leave it as it is."),
|
|
19235
|
+
checklist: external_exports.array(ChecklistItemSchema).max(GUIDE_LIMITS.maxChecklistItems).nullable().optional().describe("This node's checklist items (replaces its list), or null to remove them. Omit to leave them as they are.")
|
|
19226
19236
|
}),
|
|
19227
19237
|
outputSchema: external_exports.object({
|
|
19228
19238
|
form_id: external_exports.string(),
|
|
19229
19239
|
node_id: external_exports.string(),
|
|
19230
19240
|
tour: TourSchema.nullable().describe("The note now stored on the node (trimmed), or null when it has none"),
|
|
19231
|
-
intro: IntroSchema.nullable().describe("The intro now stored on the node (trimmed), or null when it has none")
|
|
19241
|
+
intro: IntroSchema.nullable().describe("The intro now stored on the node (trimmed), or null when it has none"),
|
|
19242
|
+
checklist: external_exports.array(ChecklistItemSchema).nullable().describe("The checklist items now stored on the node (trimmed), or null when it has none")
|
|
19232
19243
|
}),
|
|
19233
19244
|
annotations: {
|
|
19234
19245
|
readOnlyHint: false,
|
|
19235
|
-
// Replaces the node's note, and
|
|
19246
|
+
// Replaces the node's note or items, and null removes them.
|
|
19236
19247
|
destructiveHint: true,
|
|
19237
19248
|
idempotentHint: true,
|
|
19238
19249
|
openWorldHint: false
|
|
19239
19250
|
}
|
|
19240
19251
|
},
|
|
19241
|
-
async ({ form_id, node_id, tour, intro }) => {
|
|
19242
|
-
if (tour === void 0 && intro === void 0
|
|
19243
|
-
|
|
19252
|
+
async ({ form_id, node_id, tour, intro, checklist }) => {
|
|
19253
|
+
if (tour === void 0 && intro === void 0 && checklist === void 0) {
|
|
19254
|
+
return refusedResult("Send tour, intro or checklist (null removes one).");
|
|
19255
|
+
}
|
|
19256
|
+
const guide = {};
|
|
19257
|
+
if (tour !== void 0) guide.tour = tour;
|
|
19258
|
+
if (intro !== void 0) guide.intro = intro;
|
|
19259
|
+
if (checklist !== void 0) guide.checklist = checklist;
|
|
19244
19260
|
const res = await callApi(`/forms/${form_id}/nodes/${node_id}`, { method: "PATCH", body: { config: { guide } } });
|
|
19245
19261
|
if (!res.ok) return apiErrorResult(res);
|
|
19246
19262
|
const data = res.data;
|
|
19247
19263
|
const storedTour = data?.config?.guide?.tour ?? null;
|
|
19248
19264
|
const storedIntro = data?.config?.guide?.intro ?? null;
|
|
19249
|
-
|
|
19250
|
-
|
|
19265
|
+
const storedChecklist = data?.config?.guide?.checklist ?? null;
|
|
19266
|
+
if (tour && !storedTour || intro && !storedIntro || checklist?.length && !storedChecklist) return refusedResult(NOT_AVAILABLE2);
|
|
19267
|
+
const parts = [];
|
|
19251
19268
|
if (tour !== void 0) {
|
|
19252
|
-
|
|
19269
|
+
parts.push(
|
|
19253
19270
|
storedTour ? `Walkthrough note set on node ${node_id}: "${storedTour.title}" (${storedTour.anchor === "share" ? "points at Share" : "points at the node"}).` : `Walkthrough note removed from node ${node_id}.`
|
|
19254
19271
|
);
|
|
19255
19272
|
}
|
|
19256
19273
|
if (intro !== void 0) {
|
|
19257
|
-
|
|
19274
|
+
parts.push(storedIntro ? `Intro card set on node ${node_id}: "${storedIntro.title}".` : `Intro card removed from node ${node_id}.`);
|
|
19275
|
+
}
|
|
19276
|
+
if (checklist !== void 0) {
|
|
19277
|
+
parts.push(
|
|
19278
|
+
storedChecklist ? `Checklist on node ${node_id}: ${storedChecklist.map((i) => `"${i.label}" (${i.kind})`).join(", ")}.` : `Checklist removed from node ${node_id}.`
|
|
19279
|
+
);
|
|
19258
19280
|
}
|
|
19259
|
-
return structuredResult(
|
|
19281
|
+
return structuredResult(parts.join(" "), { form_id, node_id, tour: storedTour, intro: storedIntro, checklist: storedChecklist });
|
|
19260
19282
|
}
|
|
19261
19283
|
);
|
|
19262
19284
|
}
|
|
@@ -21063,4 +21085,4 @@ export {
|
|
|
21063
21085
|
* MIT Licensed
|
|
21064
21086
|
*)
|
|
21065
21087
|
*/
|
|
21066
|
-
//# sourceMappingURL=chunk-
|
|
21088
|
+
//# sourceMappingURL=chunk-KAZSNRNF.js.map
|