@vibeframe/mcp-server 0.48.1 → 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 +19 -0
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -455858,10 +455858,29 @@ for (const t of detectionTools) handlers2[t.name] = handleDetectionToolCall;
455858
455858
  for (const t of aiVideoTools) handlers2[t.name] = handleAiVideoToolCall;
455859
455859
  for (const t of aiAudioTools) handlers2[t.name] = handleAiAudioToolCall;
455860
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
+ }
455861
455866
  async function handleToolCall(name, args) {
455862
455867
  try {
455863
455868
  const handler4 = handlers2[name];
455864
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
+ }
455865
455884
  const result = await handler4(name, args);
455866
455885
  return { content: [{ type: "text", text: result }] };
455867
455886
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibeframe/mcp-server",
3
- "version": "0.48.1",
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/core": "0.48.1",
61
- "@vibeframe/cli": "0.48.1"
60
+ "@vibeframe/core": "0.48.2",
61
+ "@vibeframe/cli": "0.48.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=20"