@mediagraph/mcp 1.0.8 → 1.0.10

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 +17 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2521,8 +2521,15 @@ var workflowTools = {
2521
2521
  },
2522
2522
  {
2523
2523
  name: "approve_workflow_step",
2524
- description: "Approve a workflow step",
2525
- inputSchema: { type: "object", properties: { id: idParam }, required: ["id"] }
2524
+ description: "Approve selected assets in a workflow step, moving them to the next step",
2525
+ inputSchema: {
2526
+ type: "object",
2527
+ properties: {
2528
+ id: idParam,
2529
+ asset_ids: { type: "array", items: { type: "number" }, description: "Array of asset IDs to approve" }
2530
+ },
2531
+ required: ["id", "asset_ids"]
2532
+ }
2526
2533
  }
2527
2534
  ],
2528
2535
  handlers: {
@@ -2533,7 +2540,7 @@ var workflowTools = {
2533
2540
  return successResult(await client2.getWorkflow(args.id));
2534
2541
  },
2535
2542
  async approve_workflow_step(args, { client: client2 }) {
2536
- return successResult(await client2.approveWorkflowStep(args.id));
2543
+ return successResult(await client2.approveWorkflowStep(args.id, args.asset_ids));
2537
2544
  }
2538
2545
  }
2539
2546
  };
@@ -3598,7 +3605,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3598
3605
  };
3599
3606
  }
3600
3607
  }
3608
+ console.error(`[MCP] Tool call: ${name}`);
3609
+ console.error(`[MCP] Arguments: ${JSON.stringify(args, null, 2)}`);
3601
3610
  const result = await handleTool(name, args || {}, toolContext);
3611
+ if (result.isError) {
3612
+ console.error(`[MCP] Tool error: ${result.content[0]?.text}`);
3613
+ } else {
3614
+ console.error(`[MCP] Tool success: ${name}`);
3615
+ }
3602
3616
  return {
3603
3617
  content: result.content,
3604
3618
  isError: result.isError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediagraph/mcp",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "MCP server for Mediagraph - Media Asset Management Platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",