@infimind/video-mcp-cli 1.0.8 → 1.0.9

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/README.md CHANGED
@@ -147,6 +147,8 @@ Use `dryRun: true` to validate parameters, VIP access, estimated credits, and me
147
147
 
148
148
  #### 极睿Sa专业版 - 标准生成
149
149
 
150
+ S2 uses `sourceImage`, `seconds`, and `size`; do not pass `taskMode` or `resolution`.
151
+
150
152
  ```json
151
153
  {
152
154
  "prompt": "一个高质感的产品展示视频,柔和布光,镜头缓慢推进",
package/dist/server.js CHANGED
@@ -591,26 +591,32 @@ function validateCreateVideoArgs(args) {
591
591
  */
592
592
  async function handleCreateVideoTask(apiBaseUrl, token, args) {
593
593
  const normalized = validateCreateVideoArgs(args);
594
- const response = await callRestApi(apiBaseUrl, "/mcp/video/create", {
594
+ const isProfessionalRoute = normalized.route === "S5" || normalized.route === "S6";
595
+ const requestBody = {
595
596
  token,
596
597
  prompt: args.prompt,
597
- sourceImage: args.sourceImage ? (await processFileInput(args.sourceImage, "image")).data : undefined,
598
- sourceImages: await processFileInputs(args.sourceImages, "image"),
599
- sourceVideos: await processFileInputs(args.sourceVideos, "video"),
600
- sourceAudios: await processFileInputs(args.sourceAudios, "audio"),
598
+ sourceImage: args.sourceImage
599
+ ? (await processFileInput(args.sourceImage, "image")).data
600
+ : undefined,
601
601
  size: args.size || "1280x720",
602
602
  seconds: args.seconds || 10,
603
603
  language: args.language || "zh-CN",
604
604
  count: args.count || 1,
605
605
  route: normalized.route,
606
- taskMode: normalized.taskMode,
607
- isFirstLastMode: normalized.taskMode === "firstlast",
608
- resolution: normalized.resolution,
609
- ratio: args.ratio || undefined,
610
- generateAudio: args.generateAudio,
611
- webSearchEnabled: args.webSearchEnabled,
612
606
  dryRun: normalized.dryRun,
613
- }, "POST");
607
+ };
608
+ if (isProfessionalRoute) {
609
+ requestBody.sourceImages = await processFileInputs(args.sourceImages, "image");
610
+ requestBody.sourceVideos = await processFileInputs(args.sourceVideos, "video");
611
+ requestBody.sourceAudios = await processFileInputs(args.sourceAudios, "audio");
612
+ requestBody.taskMode = normalized.taskMode;
613
+ requestBody.isFirstLastMode = normalized.taskMode === "firstlast";
614
+ requestBody.resolution = normalized.resolution;
615
+ requestBody.ratio = args.ratio || undefined;
616
+ requestBody.generateAudio = args.generateAudio;
617
+ requestBody.webSearchEnabled = args.webSearchEnabled;
618
+ }
619
+ const response = await callRestApi(apiBaseUrl, "/mcp/video/create", requestBody, "POST");
614
620
  const route = response.route || normalized.route;
615
621
  const engineName = response.engineName || getMcpEngineName(route);
616
622
  const taskMode = response.taskMode || normalized.taskMode;
@@ -1,6 +1,6 @@
1
1
  export type McpRoute = "S2" | "S5" | "S6";
2
2
  export type McpTaskMode = "allinone" | "firstlast" | "standard" | "reference" | "edit";
3
- export declare const MCP_SERVER_VERSION = "1.0.5";
3
+ export declare const MCP_SERVER_VERSION = "1.0.9";
4
4
  export declare const MCP_VIDEO_STATUS_HINT = "\u4EFB\u52A1\u5DF2\u521B\u5EFA\u540E\uFF0C\u4F7F\u7528 get_video_status \u5E76\u4F20\u5165 taskId \u67E5\u8BE2\u751F\u6210\u8FDB\u5EA6\u548C\u89C6\u9891\u94FE\u63A5\u3002";
5
5
  export declare const MCP_VIDEO_DRY_RUN_HINT = "dryRun \u4EC5\u5B8C\u6210\u53C2\u6570\u3001\u6743\u9650\u3001\u79EF\u5206\u548C\u7D20\u6750\u89C4\u5219\u9884\u68C0\uFF0C\u4E0D\u4F1A\u521B\u5EFA\u4EFB\u52A1\u6216\u6263\u8D39\u3002";
6
6
  export declare const MCP_VIDEO_ENGINES: Record<McpRoute, {
@@ -1,4 +1,4 @@
1
- export const MCP_SERVER_VERSION = "1.0.5";
1
+ export const MCP_SERVER_VERSION = "1.0.9";
2
2
  export const MCP_VIDEO_STATUS_HINT = "任务已创建后,使用 get_video_status 并传入 taskId 查询生成进度和视频链接。";
3
3
  export const MCP_VIDEO_DRY_RUN_HINT = "dryRun 仅完成参数、权限、积分和素材规则预检,不会创建任务或扣费。";
4
4
  export const MCP_VIDEO_ENGINES = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infimind/video-mcp-cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "MCP Server for Sora AI Video Generator - Access video generation features through Claude Desktop",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",