@vibeframe/mcp-server 0.48.0 → 0.48.2

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/dist/index.js +21 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -426160,7 +426160,8 @@ function createHyperframesBackend() {
426160
426160
  quality: options.quality ?? "standard",
426161
426161
  format: options.format ?? "mp4",
426162
426162
  entryFile: "index.html",
426163
- crf: qualityToCrf(options.quality)
426163
+ crf: qualityToCrf(options.quality),
426164
+ workers: options.workers ?? 1
426164
426165
  };
426165
426166
  const job = createRenderJob2(config4);
426166
426167
  try {
@@ -455857,10 +455858,29 @@ for (const t of detectionTools) handlers2[t.name] = handleDetectionToolCall;
455857
455858
  for (const t of aiVideoTools) handlers2[t.name] = handleAiVideoToolCall;
455858
455859
  for (const t of aiAudioTools) handlers2[t.name] = handleAiAudioToolCall;
455859
455860
  for (const t of aiEditAdvancedTools) handlers2[t.name] = handleAiEditAdvancedToolCall;
455861
+ var requiredByTool = {};
455862
+ for (const t of tools) {
455863
+ const req = t.inputSchema.required;
455864
+ if (req && req.length > 0) requiredByTool[t.name] = req;
455865
+ }
455860
455866
  async function handleToolCall(name, args) {
455861
455867
  try {
455862
455868
  const handler4 = handlers2[name];
455863
455869
  if (!handler4) throw new Error(`Unknown tool: ${name}`);
455870
+ const required = requiredByTool[name];
455871
+ if (required) {
455872
+ const missing = required.filter((k) => args[k] === void 0 || args[k] === null);
455873
+ if (missing.length > 0) {
455874
+ return {
455875
+ content: [
455876
+ {
455877
+ type: "text",
455878
+ text: `${name} failed: missing required argument${missing.length > 1 ? "s" : ""}: ${missing.join(", ")}`
455879
+ }
455880
+ ]
455881
+ };
455882
+ }
455883
+ }
455864
455884
  const result = await handler4(name, args);
455865
455885
  return { content: [{ type: "text", text: result }] };
455866
455886
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeframe/mcp-server",
3
- "version": "0.48.0",
3
+ "version": "0.48.2",
4
4
  "description": "VibeFrame MCP Server - AI-native video editing via Model Context Protocol",
5
5
  "type": "module",
6
6
  "bin": {
@@ -57,8 +57,8 @@
57
57
  "tsx": "^4.21.0",
58
58
  "typescript": "^5.3.3",
59
59
  "vitest": "^1.2.2",
60
- "@vibeframe/cli": "0.48.0",
61
- "@vibeframe/core": "0.48.0"
60
+ "@vibeframe/core": "0.48.2",
61
+ "@vibeframe/cli": "0.48.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=20"