@clipform/mcp-server 4.2.3 → 4.2.4

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.
@@ -29,7 +29,7 @@ import {
29
29
  union,
30
30
  unknown,
31
31
  url
32
- } from "./chunk-UYJLVVM3.js";
32
+ } from "./chunk-LBNRRZTC.js";
33
33
  import {
34
34
  GUIDE_TYPES,
35
35
  QUIZ_VARIANTS,
@@ -38,7 +38,7 @@ import {
38
38
  getGuideUri,
39
39
  guideFallbackText,
40
40
  registerResources
41
- } from "./chunk-MO3ABORB.js";
41
+ } from "./chunk-FFOQNI3B.js";
42
42
  import {
43
43
  ANON_PREVIEW_LINK_LABEL,
44
44
  ANON_PREVIEW_NOTICE,
@@ -49,7 +49,7 @@ import {
49
49
  anonPreviewNotice,
50
50
  capsFromToolsets,
51
51
  isPreviewViewerUrl
52
- } from "./chunk-E7C34M2J.js";
52
+ } from "./chunk-NN77UKUQ.js";
53
53
  import {
54
54
  ACTIVE_NODE_TYPES,
55
55
  CONTACT_FIELDS,
@@ -71,7 +71,7 @@ import {
71
71
  resolveFormType,
72
72
  structuredResult,
73
73
  textResult
74
- } from "./chunk-ZRBMT7BF.js";
74
+ } from "./chunk-NZCRZDRQ.js";
75
75
  import {
76
76
  getMcpAuth,
77
77
  runWithMcpAuth,
@@ -16769,7 +16769,7 @@ function registerImportFormTool(server) {
16769
16769
  }
16770
16770
 
16771
16771
  // src/tools/list-forms.ts
16772
- function registerListFormsTool(server) {
16772
+ function registerListFormsTool(server, caps = FULL_CAPS) {
16773
16773
  server.registerTool(
16774
16774
  "clipform_list_forms",
16775
16775
  {
@@ -16841,7 +16841,12 @@ function registerListFormsTool(server) {
16841
16841
  next_cursor: data.next_cursor
16842
16842
  };
16843
16843
  if (data.forms.length === 0) {
16844
- return structuredResult("No forms found matching the criteria.", structured);
16844
+ const unfiltered = !search && !tag && !published && !cursor;
16845
+ if (!unfiltered) {
16846
+ return structuredResult("No forms found matching the criteria.", structured);
16847
+ }
16848
+ const text = caps.forms ? `No forms in this workspace yet. ${ONBOARDING_OFFER_TOOL_CUE} Then build it with clipform_create_form.` : "No forms in this workspace yet.";
16849
+ return structuredResult(text, structured);
16845
16850
  }
16846
16851
  const lines = [`Found ${data.forms.length} form(s):
16847
16852
  `];
@@ -20108,7 +20113,7 @@ function createServer(options) {
20108
20113
  };
20109
20114
  registerCreateFormTool(server);
20110
20115
  registerImportFormTool(server);
20111
- registerListFormsTool(server);
20116
+ registerListFormsTool(server, caps);
20112
20117
  registerWhoamiTool(server);
20113
20118
  registerGetFormTool(server);
20114
20119
  registerUpdateFormTool(server);
@@ -20207,4 +20212,4 @@ export {
20207
20212
  * MIT Licensed
20208
20213
  *)
20209
20214
  */
20210
- //# sourceMappingURL=chunk-XFGQP52H.js.map
20215
+ //# sourceMappingURL=chunk-XW3FEMD4.js.map