@clipform/mcp-server 3.8.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 +2 -2
- package/dist/auth-context.js +1 -1
- package/dist/{chunk-JRASOR5T.js → chunk-4IAURGG7.js} +3 -3
- package/dist/chunk-4IAURGG7.js.map +1 -0
- package/dist/chunk-5A66GD3U.js +20089 -0
- package/dist/chunk-5A66GD3U.js.map +1 -0
- package/dist/{chunk-KWR2WJQI.js → chunk-5RUWQOYD.js} +150 -284
- package/dist/{chunk-KWR2WJQI.js.map → chunk-5RUWQOYD.js.map} +1 -1
- package/dist/{chunk-S6RYUVDM.js → chunk-PDI6VJYQ.js} +2 -2
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/{chunk-V5AI2TSQ.js → chunk-TXUWAYBZ.js} +3 -3
- package/dist/chunk-TXUWAYBZ.js.map +1 -0
- package/dist/index.js +83 -86
- package/dist/index.js.map +1 -1
- package/dist/instrument.js +36 -36
- package/dist/instrument.js.map +1 -1
- package/dist/prompts.d.ts +12 -3
- package/dist/prompts.js +14 -4
- package/dist/resources.d.ts +1 -1
- package/dist/resources.js +4 -4
- package/dist/server.d.ts +2 -1
- package/dist/server.js +12 -8
- package/dist/telemetry.js +1 -1
- package/package.json +5 -4
- package/dist/chunk-FC7D3235.js +0 -20398
- package/dist/chunk-FC7D3235.js.map +0 -1
- package/dist/chunk-G3PMV62Z.js +0 -36
- package/dist/chunk-JRASOR5T.js.map +0 -1
- package/dist/chunk-V5AI2TSQ.js.map +0 -1
- /package/dist/{chunk-S6RYUVDM.js.map → chunk-PDI6VJYQ.js.map} +0 -0
- /package/dist/{chunk-G3PMV62Z.js.map → chunk-PZ5AY32C.js.map} +0 -0
package/dist/prompts.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
2
|
import { DiscoveryParam as DiscoveryParam$1, FormTypeKey } from '@vid-master/config';
|
|
3
3
|
import { QuizVariant } from './resources.js';
|
|
4
4
|
import { S as ServerCaps } from './caps-DBnfcEyJ.js';
|
|
@@ -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
|
-
import "./chunk-
|
|
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.d.ts
CHANGED
package/dist/resources.js
CHANGED
|
@@ -3,12 +3,12 @@ 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
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PZ5AY32C.js";
|
|
12
12
|
export {
|
|
13
13
|
GUIDE_TYPES,
|
|
14
14
|
QUIZ_VARIANTS,
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { McpServer } from '@modelcontextprotocol/
|
|
1
|
+
import { McpServer } from '@modelcontextprotocol/server';
|
|
2
|
+
export { createMcpHandler, isLegacyRequest } from '@modelcontextprotocol/server';
|
|
2
3
|
import { McpToolset } from '@vid-master/config';
|
|
3
4
|
import { S as ServerCaps } from './caps-DBnfcEyJ.js';
|
|
4
5
|
|
package/dist/server.js
CHANGED
|
@@ -2,19 +2,23 @@ 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
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-PZ5AY32C.js";
|
|
14
16
|
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
|
package/dist/telemetry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clipform/mcp-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"mcpName": "io.github.Clipform/mcp-server",
|
|
5
5
|
"description": "MCP server for building and managing Clipform video forms",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@modelcontextprotocol/
|
|
55
|
+
"@modelcontextprotocol/client": "^2.3.1",
|
|
56
|
+
"@modelcontextprotocol/server": "^2.3.1",
|
|
56
57
|
"@posthog/mcp": "0.12.0",
|
|
57
58
|
"ai": "^6.0.176",
|
|
58
59
|
"tsup": "^8.5.1",
|
|
@@ -62,8 +63,8 @@
|
|
|
62
63
|
"yaml": "^2.9.0",
|
|
63
64
|
"zod": "^4.2.0",
|
|
64
65
|
"@clipform/mcp-content": "0.0.0",
|
|
65
|
-
"@vid-master/
|
|
66
|
-
"@vid-master/
|
|
66
|
+
"@vid-master/eval-kit": "1.0.0",
|
|
67
|
+
"@vid-master/form-sources": "1.0.0"
|
|
67
68
|
},
|
|
68
69
|
"scripts": {
|
|
69
70
|
"start": "node dist/index.js",
|