velora-mcp-server 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. package/build/index.js +6 -11
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -432,20 +432,13 @@ ${p.features.map((f) => ` - ${f}`).join("\n")}`;
432
432
  const payload = {
433
433
  topic,
434
434
  language,
435
- target_duration_minutes: duration_minutes,
435
+ duration_minutes,
436
+ theme: video_style === "auto" ? "documentary" : video_style,
436
437
  aspect_ratio,
437
- voice_type,
438
- video_model,
439
- include_subtitles,
440
- subtitle_style,
441
- video_style,
442
- include_background_music,
443
438
  };
444
- if (script)
445
- payload.script = script;
446
439
  if (webhook_url)
447
440
  payload.webhook_url = webhook_url;
448
- const response = await fetch(`${VELORA_API_BASE}/api/videos/generate`, {
441
+ const response = await fetch(`${VELORA_API_BASE}/v1/videos/generate`, {
449
442
  method: "POST",
450
443
  headers: {
451
444
  "Content-Type": "application/json",
@@ -455,7 +448,9 @@ ${p.features.map((f) => ` - ${f}`).join("\n")}`;
455
448
  });
456
449
  const data = await response.json();
457
450
  if (!response.ok) {
458
- const errorMsg = data?.detail || data?.message || response.statusText;
451
+ const errorMsg = typeof data?.detail === 'string'
452
+ ? data.detail
453
+ : JSON.stringify(data?.detail || data?.message || response.statusText);
459
454
  return {
460
455
  content: [
461
456
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "velora-mcp-server",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Official Velora AI Video Studio MCP Server — exposes Velora's plans, pricing, and AI model data to any MCP-compatible AI assistant.",
5
5
  "main": "build/index.js",
6
6
  "bin": {