@clipform/mcp-server 2.15.5 → 2.15.7

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.
@@ -3,7 +3,7 @@ import {
3
3
  WORKFLOW_TYPES,
4
4
  getDiscoveryParams,
5
5
  getSessionContextWithAuth
6
- } from "./chunk-242SWWON.js";
6
+ } from "./chunk-DP5QUTMG.js";
7
7
  import {
8
8
  __export
9
9
  } from "./chunk-G3PMV62Z.js";
@@ -4856,4 +4856,4 @@ export {
4856
4856
  getWorkflowText,
4857
4857
  registerPrompts
4858
4858
  };
4859
- //# sourceMappingURL=chunk-QLSAHPUD.js.map
4859
+ //# sourceMappingURL=chunk-EAGVCUZK.js.map
@@ -6,7 +6,7 @@ import {
6
6
  getWorkflowText,
7
7
  objectType,
8
8
  registerPrompts
9
- } from "./chunk-QLSAHPUD.js";
9
+ } from "./chunk-EAGVCUZK.js";
10
10
  import {
11
11
  GUIDE_TYPES,
12
12
  QUIZ_VARIANTS,
@@ -15,7 +15,7 @@ import {
15
15
  getGuideUri,
16
16
  guideFallbackText,
17
17
  registerResources
18
- } from "./chunk-RSWQYXUZ.js";
18
+ } from "./chunk-CMGILVM3.js";
19
19
  import {
20
20
  ACTIVE_NODE_TYPES,
21
21
  CONTACT_FIELDS,
@@ -39,7 +39,7 @@ import {
39
39
  resolveFormType,
40
40
  structuredResult,
41
41
  textResult
42
- } from "./chunk-242SWWON.js";
42
+ } from "./chunk-DP5QUTMG.js";
43
43
  import {
44
44
  getMcpAuth,
45
45
  runWithMcpTool
@@ -17922,7 +17922,20 @@ function registerUpdateFormTool(server) {
17922
17922
  updates.push(`Tags \u2192 [${tags.join(", ")}]`);
17923
17923
  updatedFields.push("tags");
17924
17924
  }
17925
- return structuredResult(`Form updated: ${updates.join(", ")}`, { form_id, updated_fields: updatedFields });
17925
+ let resultText = `Form updated: ${updates.join(", ")}`;
17926
+ if (is_live === true) {
17927
+ const meta = await callApi(`/forms/${form_id}`, { timeoutMs: 5e3 });
17928
+ const urls = meta.ok ? meta.data.urls : void 0;
17929
+ const viewerUrl = urls?.viewer;
17930
+ const responsesUrl = urls?.responses;
17931
+ if (viewerUrl) {
17932
+ resultText += `
17933
+
17934
+ Your form is live at: ${viewerUrl}
17935
+ Share this URL with respondents. View responses any time with clipform_get_results (form_id: ${form_id})${responsesUrl ? `, or in the dashboard: ${responsesUrl}` : ""}`;
17936
+ }
17937
+ }
17938
+ return structuredResult(resultText, { form_id, updated_fields: updatedFields });
17926
17939
  }
17927
17940
  );
17928
17941
  }
@@ -18810,6 +18823,7 @@ function registerAttachNodeMediaTool(server) {
18810
18823
  `);
18811
18824
  }
18812
18825
  if (successCount === 0) return errorResult(lines.join("\n"));
18826
+ lines.push("Media attached. It becomes visible to respondents after you republish with clipform_update_form (is_live: true).");
18813
18827
  return structuredResult(lines.join("\n"), { results });
18814
18828
  }
18815
18829
  );
@@ -20751,4 +20765,4 @@ export {
20751
20765
  buildInstructions,
20752
20766
  createServer
20753
20767
  };
20754
- //# sourceMappingURL=chunk-I65WITUI.js.map
20768
+ //# sourceMappingURL=chunk-G32PAZBX.js.map