@clipform/mcp-server 4.0.0 → 4.1.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-JRASOR5T.js → chunk-4IAURGG7.js} +3 -3
- package/dist/chunk-4IAURGG7.js.map +1 -0
- package/dist/{chunk-MSLK3FRO.js → chunk-5A66GD3U.js} +1975 -24
- package/dist/{chunk-MSLK3FRO.js.map → chunk-5A66GD3U.js.map} +1 -1
- package/dist/{chunk-54RZGUSA.js → chunk-5RUWQOYD.js} +88 -239
- package/dist/{chunk-54RZGUSA.js.map → chunk-5RUWQOYD.js.map} +1 -1
- package/dist/{chunk-S6RYUVDM.js → chunk-PDI6VJYQ.js} +2 -2
- package/dist/{chunk-5MJGBBKA.js → chunk-TXUWAYBZ.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/prompts.d.ts +11 -2
- package/dist/prompts.js +13 -3
- package/dist/resources.js +3 -3
- package/dist/server.d.ts +1 -0
- package/dist/server.js +11 -7
- package/package.json +1 -1
- package/dist/chunk-JRASOR5T.js.map +0 -1
- /package/dist/{chunk-S6RYUVDM.js.map → chunk-PDI6VJYQ.js.map} +0 -0
- /package/dist/{chunk-5MJGBBKA.js.map → chunk-TXUWAYBZ.js.map} +0 -0
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CURRENT_PLAN_VERSIONS,
|
|
3
3
|
PLAN_LIMITS,
|
|
4
4
|
callApi
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4IAURGG7.js";
|
|
6
6
|
import {
|
|
7
7
|
getMcpAuth
|
|
8
8
|
} from "./chunk-VPF6MLKM.js";
|
|
@@ -99,4 +99,4 @@ export {
|
|
|
99
99
|
getSessionContextWithAuth,
|
|
100
100
|
getSessionContext
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
102
|
+
//# sourceMappingURL=chunk-PDI6VJYQ.js.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FULL_CAPS,
|
|
3
3
|
getSessionContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PDI6VJYQ.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-4IAURGG7.js";
|
|
11
11
|
import {
|
|
12
12
|
getMcpAuth
|
|
13
13
|
} from "./chunk-VPF6MLKM.js";
|
|
@@ -155,4 +155,4 @@ export {
|
|
|
155
155
|
getGuideUri,
|
|
156
156
|
registerResources
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
158
|
+
//# sourceMappingURL=chunk-TXUWAYBZ.js.map
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
createServer,
|
|
5
5
|
process as process2,
|
|
6
6
|
serializeMessage
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5A66GD3U.js";
|
|
8
|
+
import "./chunk-5RUWQOYD.js";
|
|
9
|
+
import "./chunk-TXUWAYBZ.js";
|
|
10
|
+
import "./chunk-PDI6VJYQ.js";
|
|
11
|
+
import "./chunk-4IAURGG7.js";
|
|
12
12
|
import "./chunk-VPF6MLKM.js";
|
|
13
13
|
import {
|
|
14
14
|
setMcpVersion
|
package/dist/prompts.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ interface WorkflowArgs {
|
|
|
12
12
|
question_count?: number;
|
|
13
13
|
media_style?: "text" | "images" | "video";
|
|
14
14
|
categories?: string;
|
|
15
|
-
youtube_url?: string;
|
|
16
15
|
audience?: string;
|
|
17
16
|
purpose?: string;
|
|
18
17
|
response_format?: "video" | "audio" | "text" | "all";
|
|
@@ -26,9 +25,19 @@ interface WorkflowArgs {
|
|
|
26
25
|
event_name?: string;
|
|
27
26
|
event_type?: string;
|
|
28
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
* Prompt arguments are free text in every client (MCP cannot advertise allowed
|
|
30
|
+
* values), so prompts/get must never reject a value (#4756): everything is
|
|
31
|
+
* normalized here and anything unrecognized falls back to the default.
|
|
32
|
+
*/
|
|
33
|
+
declare function normalizeMediaStyle(v: unknown): "text" | "images" | "video";
|
|
34
|
+
declare function normalizeResponseFormat(v: unknown): "video" | "audio" | "text" | "all" | undefined;
|
|
35
|
+
declare function normalizeQuestionCount(v: unknown): number | undefined;
|
|
36
|
+
declare function normalizeBool(v: unknown): boolean | undefined;
|
|
37
|
+
declare function coercePromptArgs(args: Record<string, string | undefined>): WorkflowArgs;
|
|
29
38
|
type DiscoveryParam = DiscoveryParam$1;
|
|
30
39
|
declare function buildDiscovery(params: readonly DiscoveryParam$1[], args: WorkflowArgs, authMode?: AuthMode): string;
|
|
31
40
|
declare function getWorkflowText(type: WorkflowType, args?: WorkflowArgs, variant?: QuizVariant, caps?: ServerCaps): Promise<string>;
|
|
32
41
|
declare function registerPrompts(server: McpServer, caps?: ServerCaps): void;
|
|
33
42
|
|
|
34
|
-
export { type DiscoveryParam, WORKFLOW_TYPES, type WorkflowArgs, type WorkflowType, buildDiscovery, getWorkflowText, registerPrompts };
|
|
43
|
+
export { type DiscoveryParam, WORKFLOW_TYPES, type WorkflowArgs, type WorkflowType, buildDiscovery, coercePromptArgs, getWorkflowText, normalizeBool, normalizeMediaStyle, normalizeQuestionCount, normalizeResponseFormat, registerPrompts };
|
package/dist/prompts.js
CHANGED
|
@@ -1,18 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WORKFLOW_TYPES,
|
|
3
3
|
buildDiscovery,
|
|
4
|
+
coercePromptArgs,
|
|
4
5
|
getWorkflowText,
|
|
6
|
+
normalizeBool,
|
|
7
|
+
normalizeMediaStyle,
|
|
8
|
+
normalizeQuestionCount,
|
|
9
|
+
normalizeResponseFormat,
|
|
5
10
|
registerPrompts
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-5RUWQOYD.js";
|
|
12
|
+
import "./chunk-PDI6VJYQ.js";
|
|
13
|
+
import "./chunk-4IAURGG7.js";
|
|
9
14
|
import "./chunk-VPF6MLKM.js";
|
|
10
15
|
import "./chunk-PBQ5BQWD.js";
|
|
11
16
|
import "./chunk-PZ5AY32C.js";
|
|
12
17
|
export {
|
|
13
18
|
WORKFLOW_TYPES,
|
|
14
19
|
buildDiscovery,
|
|
20
|
+
coercePromptArgs,
|
|
15
21
|
getWorkflowText,
|
|
22
|
+
normalizeBool,
|
|
23
|
+
normalizeMediaStyle,
|
|
24
|
+
normalizeQuestionCount,
|
|
25
|
+
normalizeResponseFormat,
|
|
16
26
|
registerPrompts
|
|
17
27
|
};
|
|
18
28
|
//# sourceMappingURL=prompts.js.map
|
package/dist/resources.js
CHANGED
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
QUIZ_VARIANTS,
|
|
4
4
|
getGuideUri,
|
|
5
5
|
registerResources
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-TXUWAYBZ.js";
|
|
7
|
+
import "./chunk-PDI6VJYQ.js";
|
|
8
|
+
import "./chunk-4IAURGG7.js";
|
|
9
9
|
import "./chunk-VPF6MLKM.js";
|
|
10
10
|
import "./chunk-PBQ5BQWD.js";
|
|
11
11
|
import "./chunk-PZ5AY32C.js";
|
package/dist/server.d.ts
CHANGED
package/dist/server.js
CHANGED
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
MCP_SERVER_IDENTITY,
|
|
3
3
|
RENDER_TIMING,
|
|
4
4
|
buildInstructions,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
5
|
+
createMcpHandler,
|
|
6
|
+
createServer,
|
|
7
|
+
isLegacyRequest
|
|
8
|
+
} from "./chunk-5A66GD3U.js";
|
|
9
|
+
import "./chunk-5RUWQOYD.js";
|
|
10
|
+
import "./chunk-TXUWAYBZ.js";
|
|
11
|
+
import "./chunk-PDI6VJYQ.js";
|
|
12
|
+
import "./chunk-4IAURGG7.js";
|
|
11
13
|
import "./chunk-VPF6MLKM.js";
|
|
12
14
|
import "./chunk-PBQ5BQWD.js";
|
|
13
15
|
import "./chunk-PZ5AY32C.js";
|
|
@@ -15,6 +17,8 @@ export {
|
|
|
15
17
|
MCP_SERVER_IDENTITY,
|
|
16
18
|
RENDER_TIMING,
|
|
17
19
|
buildInstructions,
|
|
18
|
-
|
|
20
|
+
createMcpHandler,
|
|
21
|
+
createServer,
|
|
22
|
+
isLegacyRequest
|
|
19
23
|
};
|
|
20
24
|
//# sourceMappingURL=server.js.map
|