@mediagraph/mcp 1.0.9 → 1.0.11

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1218,8 +1218,7 @@ var MediagraphClient = class {
1218
1218
  return this.request("GET", `/api/comments/${id}`);
1219
1219
  }
1220
1220
  async createComment(type, id, data) {
1221
- return this.request("POST", "/api/comments", {
1222
- params: { type, id },
1221
+ return this.request("POST", `/api/comments?type=${encodeURIComponent(type)}&id=${id}`, {
1223
1222
  body: { comment: data }
1224
1223
  });
1225
1224
  }
@@ -3605,7 +3604,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
3605
3604
  };
3606
3605
  }
3607
3606
  }
3607
+ console.error(`[MCP] Tool call: ${name}`);
3608
+ console.error(`[MCP] Arguments: ${JSON.stringify(args, null, 2)}`);
3608
3609
  const result = await handleTool(name, args || {}, toolContext);
3610
+ if (result.isError) {
3611
+ console.error(`[MCP] Tool error: ${result.content[0]?.text}`);
3612
+ } else {
3613
+ console.error(`[MCP] Tool success: ${name}`);
3614
+ }
3609
3615
  return {
3610
3616
  content: result.content,
3611
3617
  isError: result.isError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediagraph/mcp",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "MCP server for Mediagraph - Media Asset Management Platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",