@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/prompts.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
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-KWR2WJQI.js";
7
- import "./chunk-S6RYUVDM.js";
8
- import "./chunk-JRASOR5T.js";
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-G3PMV62Z.js";
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
@@ -1,4 +1,4 @@
1
- import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
1
+ import { McpServer } from '@modelcontextprotocol/server';
2
2
  import { ALL_VARIANTS, FORM_TYPE_KEYS } from '@vid-master/config';
3
3
  import { S as ServerCaps } from './caps-DBnfcEyJ.js';
4
4
 
package/dist/resources.js CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  QUIZ_VARIANTS,
4
4
  getGuideUri,
5
5
  registerResources
6
- } from "./chunk-V5AI2TSQ.js";
7
- import "./chunk-S6RYUVDM.js";
8
- import "./chunk-JRASOR5T.js";
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-G3PMV62Z.js";
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/sdk/server/mcp.js';
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
- createServer
6
- } from "./chunk-FC7D3235.js";
7
- import "./chunk-KWR2WJQI.js";
8
- import "./chunk-V5AI2TSQ.js";
9
- import "./chunk-S6RYUVDM.js";
10
- import "./chunk-JRASOR5T.js";
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-G3PMV62Z.js";
15
+ import "./chunk-PZ5AY32C.js";
14
16
  export {
15
17
  MCP_SERVER_IDENTITY,
16
18
  RENDER_TIMING,
17
19
  buildInstructions,
18
- createServer
20
+ createMcpHandler,
21
+ createServer,
22
+ isLegacyRequest
19
23
  };
20
24
  //# sourceMappingURL=server.js.map
package/dist/telemetry.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  setErrorReporter,
6
6
  setMcpVersion
7
7
  } from "./chunk-PBQ5BQWD.js";
8
- import "./chunk-G3PMV62Z.js";
8
+ import "./chunk-PZ5AY32C.js";
9
9
  export {
10
10
  isAuthFault,
11
11
  isServerFault,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipform/mcp-server",
3
- "version": "3.8.0",
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/sdk": "^1.30.0",
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/form-sources": "1.0.0",
66
- "@vid-master/eval-kit": "1.0.0"
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",