@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.
- package/dist/api-client.js +1 -1
- package/dist/{caps-DBnfcEyJ.d.ts → caps-KNlvfilv.d.ts} +2 -0
- package/dist/{chunk-MO3ABORB.js → chunk-FFOQNI3B.js} +3 -3
- package/dist/{chunk-UYJLVVM3.js → chunk-LBNRRZTC.js} +3 -3
- package/dist/{chunk-E7C34M2J.js → chunk-NN77UKUQ.js} +5 -4
- package/dist/chunk-NN77UKUQ.js.map +1 -0
- package/dist/{chunk-ZRBMT7BF.js → chunk-NZCRZDRQ.js} +21 -1
- package/dist/chunk-NZCRZDRQ.js.map +1 -0
- package/dist/{chunk-XFGQP52H.js → chunk-XW3FEMD4.js} +13 -8
- package/dist/{chunk-XFGQP52H.js.map → chunk-XW3FEMD4.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/prompts.d.ts +1 -1
- package/dist/prompts.js +3 -3
- package/dist/resources.d.ts +1 -1
- package/dist/resources.js +3 -3
- package/dist/server.d.ts +1 -1
- package/dist/server.js +5 -5
- package/package.json +3 -3
- package/server.json +2 -2
- package/dist/chunk-E7C34M2J.js.map +0 -1
- package/dist/chunk-ZRBMT7BF.js.map +0 -1
- /package/dist/{chunk-MO3ABORB.js.map → chunk-FFOQNI3B.js.map} +0 -0
- /package/dist/{chunk-UYJLVVM3.js.map → chunk-LBNRRZTC.js.map} +0 -0
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
union,
|
|
30
30
|
unknown,
|
|
31
31
|
url
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
|
|
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-
|
|
20215
|
+
//# sourceMappingURL=chunk-XW3FEMD4.js.map
|