@clipform/mcp-server 5.5.0 → 5.5.2
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-QT2M5FQQ.js → chunk-5TIO2KYJ.js} +121 -39
- package/dist/chunk-5TIO2KYJ.js.map +1 -0
- package/dist/{chunk-HHSHBFJD.js → chunk-CB2TLXLT.js} +3 -3
- package/dist/{chunk-IZKDVBG7.js → chunk-F3BS23QG.js} +45 -9
- package/dist/chunk-F3BS23QG.js.map +1 -0
- package/dist/{chunk-5EQGV5VF.js → chunk-XDWEWZEP.js} +3 -3
- package/dist/{chunk-G7FS2BAC.js → chunk-XUCSUWGX.js} +2 -2
- 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-IZKDVBG7.js.map +0 -1
- package/dist/chunk-QT2M5FQQ.js.map +0 -1
- /package/dist/{chunk-HHSHBFJD.js.map → chunk-CB2TLXLT.js.map} +0 -0
- /package/dist/{chunk-5EQGV5VF.js.map → chunk-XDWEWZEP.js.map} +0 -0
- /package/dist/{chunk-G7FS2BAC.js.map → chunk-XUCSUWGX.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XUCSUWGX.js";
|
|
5
5
|
import {
|
|
6
6
|
ALL_VARIANTS,
|
|
7
7
|
FORM_TYPES,
|
|
8
8
|
FORM_TYPE_KEYS,
|
|
9
9
|
callApi
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5TIO2KYJ.js";
|
|
11
11
|
import {
|
|
12
12
|
getMcpAuth
|
|
13
13
|
} from "./chunk-ENVV65JX.js";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
getGuideUri,
|
|
147
147
|
registerResources
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-CB2TLXLT.js.map
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
union,
|
|
32
32
|
unknown,
|
|
33
33
|
url
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XDWEWZEP.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-CB2TLXLT.js";
|
|
44
44
|
import {
|
|
45
45
|
ANON_PREVIEW_LINK_LABEL,
|
|
46
46
|
ANON_PREVIEW_NOTICE,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
isPreviewViewerUrl,
|
|
55
55
|
previewOnlyNotice,
|
|
56
56
|
withAdoptedNotice
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-XUCSUWGX.js";
|
|
58
58
|
import {
|
|
59
59
|
ACTIVE_NODE_TYPES,
|
|
60
60
|
ANON_MCP_BLOCKED_NODE_TYPES,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
stripGatedConfigKeys,
|
|
96
96
|
structuredResult,
|
|
97
97
|
textResult
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-5TIO2KYJ.js";
|
|
99
99
|
import {
|
|
100
100
|
getMcpAuth,
|
|
101
101
|
runWithMcpAuth,
|
|
@@ -16821,6 +16821,36 @@ var videoask = {
|
|
|
16821
16821
|
}
|
|
16822
16822
|
};
|
|
16823
16823
|
|
|
16824
|
+
// ../form-sources/dist/form-tools.js
|
|
16825
|
+
var FORM_TOOL_HOSTS = [
|
|
16826
|
+
{ label: "Jotform", hosts: ["jotform.com"] },
|
|
16827
|
+
{ label: "Microsoft Forms", hosts: ["forms.office.com", "forms.microsoft.com", "forms.cloud.microsoft"] },
|
|
16828
|
+
{ label: "SurveyMonkey", hosts: ["surveymonkey.com"] },
|
|
16829
|
+
{ label: "HubSpot Forms", hosts: ["hsforms.com"] },
|
|
16830
|
+
{ label: "Airtable", hosts: ["airtable.com"] },
|
|
16831
|
+
{ label: "Fillout", hosts: ["fillout.com"] },
|
|
16832
|
+
{ label: "Paperform", hosts: ["paperform.co"] },
|
|
16833
|
+
{ label: "Wufoo", hosts: ["wufoo.com"] },
|
|
16834
|
+
{ label: "Cognito Forms", hosts: ["cognitoforms.com"] },
|
|
16835
|
+
{ label: "Zoho Forms", hosts: ["zohopublic.com", "forms.zoho.com"] },
|
|
16836
|
+
{ label: "Heyflow", hosts: ["heyflow.com", "heyflow.app"] },
|
|
16837
|
+
{ label: "VideoAsk", hosts: ["videoask.com"] },
|
|
16838
|
+
{ label: "Typeform", hosts: ["typeform.com"] }
|
|
16839
|
+
];
|
|
16840
|
+
function detectFormToolLabel(url2) {
|
|
16841
|
+
let hostname;
|
|
16842
|
+
try {
|
|
16843
|
+
hostname = new URL(url2).hostname.toLowerCase();
|
|
16844
|
+
} catch {
|
|
16845
|
+
return "other";
|
|
16846
|
+
}
|
|
16847
|
+
for (const { label, hosts } of FORM_TOOL_HOSTS) {
|
|
16848
|
+
if (hosts.some((h) => hostname === h || hostname.endsWith("." + h)))
|
|
16849
|
+
return label;
|
|
16850
|
+
}
|
|
16851
|
+
return "other";
|
|
16852
|
+
}
|
|
16853
|
+
|
|
16824
16854
|
// ../form-sources/dist/index.js
|
|
16825
16855
|
var IMPORTABLE_PROVIDERS = ["google", "typeform", "tally"];
|
|
16826
16856
|
function detectProvider(url2) {
|
|
@@ -16833,7 +16863,7 @@ function detectProvider(url2) {
|
|
|
16833
16863
|
const hostname = parsed.hostname.toLowerCase();
|
|
16834
16864
|
if (hostname === "docs.google.com" || hostname === "forms.gle")
|
|
16835
16865
|
return "google";
|
|
16836
|
-
if (hostname.includes("typeform.com") && parsed.pathname.includes("/to/"))
|
|
16866
|
+
if (hostname.includes("typeform.com") && (parsed.pathname.includes("/to/") || hostname === "admin.typeform.com" && parsed.pathname.startsWith("/form/")))
|
|
16837
16867
|
return "typeform";
|
|
16838
16868
|
if (hostname.includes("tally.so"))
|
|
16839
16869
|
return "tally";
|
|
@@ -16847,6 +16877,14 @@ function detectImportPlatform(url2) {
|
|
|
16847
16877
|
const provider = detectProvider(url2);
|
|
16848
16878
|
return provider && IMPORTABLE_PROVIDERS.includes(provider) ? provider : null;
|
|
16849
16879
|
}
|
|
16880
|
+
var SUPPORTED_LIST = "clipform_import_form only supports Google Forms (docs.google.com or forms.gle), Typeform (form.typeform.com/to/...), and Tally (tally.so) links.";
|
|
16881
|
+
function unsupportedUrlMessage(label) {
|
|
16882
|
+
if (label === "Typeform") {
|
|
16883
|
+
return `Unsupported URL (Typeform, not a public share link). Use the form's public form.typeform.com/to/... link. ${SUPPORTED_LIST}`;
|
|
16884
|
+
}
|
|
16885
|
+
const base = `Unsupported URL (${label}). ${SUPPORTED_LIST}`;
|
|
16886
|
+
return label === "VideoAsk" ? `${base} VideoAsk import is not available yet.` : base;
|
|
16887
|
+
}
|
|
16850
16888
|
function pluralQuestions(n) {
|
|
16851
16889
|
return `${n} question${n === 1 ? "" : "s"}`;
|
|
16852
16890
|
}
|
|
@@ -16885,9 +16923,7 @@ function registerImportFormTool(server) {
|
|
|
16885
16923
|
async ({ url: url2 }) => {
|
|
16886
16924
|
const platform = detectImportPlatform(url2);
|
|
16887
16925
|
if (!platform) {
|
|
16888
|
-
return errorResult(
|
|
16889
|
-
"Unsupported URL. clipform_import_form only supports Google Forms (docs.google.com or forms.gle), Typeform (form.typeform.com/to/...), and Tally (tally.so) links."
|
|
16890
|
-
);
|
|
16926
|
+
return errorResult(unsupportedUrlMessage(detectFormToolLabel(url2)));
|
|
16891
16927
|
}
|
|
16892
16928
|
const meResult = await callApi("/me", { method: "GET" });
|
|
16893
16929
|
if (!meResult.ok) {
|
|
@@ -20609,4 +20645,4 @@ export {
|
|
|
20609
20645
|
* MIT Licensed
|
|
20610
20646
|
*)
|
|
20611
20647
|
*/
|
|
20612
|
-
//# sourceMappingURL=chunk-
|
|
20648
|
+
//# sourceMappingURL=chunk-F3BS23QG.js.map
|