kaneo-mcp 0.0.8 → 0.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.
@@ -0,0 +1,9 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "mcp__kaneo__list_projects",
5
+ "mcp__MiniMax__web_search",
6
+ "mcp__kaneo__create_comment"
7
+ ]
8
+ }
9
+ }
package/bin/kaneo-mcp.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  ACTUAL_PATH=$(readlink -f "$0" 2>/dev/null || echo "$0")
3
3
  SCRIPT_DIR=$(dirname "$ACTUAL_PATH")
4
- exec node "$SCRIPT_DIR/dist/index.js" "$@"
4
+ exec node "$SCRIPT_DIR/../dist/index.js" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaneo-mcp",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
package/src/client.ts CHANGED
@@ -249,28 +249,29 @@ export class KaneoClient {
249
249
  );
250
250
  }
251
251
 
252
- // Comments
252
+ // Comments (via activity endpoint)
253
253
  async listComments(taskId: string) {
254
- return this.request<{ comments: unknown[] }>(`/comment/${taskId}`);
254
+ return this.request<{ activities: unknown[] }>(`/activity/${taskId}`);
255
255
  }
256
256
 
257
- async createComment(taskId: string, content: string) {
258
- return this.request<{ comment: unknown }>(`/comment/${taskId}`, {
257
+ async createComment(taskId: string, comment: string) {
258
+ return this.request<{ activity: unknown }>("/activity/comment", {
259
259
  method: "POST",
260
- body: JSON.stringify({ content }),
260
+ body: JSON.stringify({ taskId, comment }),
261
261
  });
262
262
  }
263
263
 
264
- async updateComment(id: string, content: string) {
265
- return this.request<{ comment: unknown }>(`/comment/${id}`, {
264
+ async updateComment(activityId: string, comment: string) {
265
+ return this.request<{ activity: unknown }>("/activity/comment", {
266
266
  method: "PUT",
267
- body: JSON.stringify({ content }),
267
+ body: JSON.stringify({ activityId, comment }),
268
268
  });
269
269
  }
270
270
 
271
- async deleteComment(id: string) {
272
- return this.request<{ success: boolean }>(`/comment/${id}`, {
271
+ async deleteComment(activityId: string) {
272
+ return this.request<{ activity: unknown }>("/activity/comment", {
273
273
  method: "DELETE",
274
+ body: JSON.stringify({ activityId }),
274
275
  });
275
276
  }
276
277
 
package/src/index.ts CHANGED
@@ -362,7 +362,7 @@ class KaneoMCPServer {
362
362
  {
363
363
  type: "text",
364
364
  text: JSON.stringify(
365
- await this.client.updateComment(args.id, args.content),
365
+ await this.client.updateComment(args.activityId, args.content),
366
366
  ),
367
367
  },
368
368
  ],
@@ -373,7 +373,7 @@ class KaneoMCPServer {
373
373
  {
374
374
  type: "text",
375
375
  text: JSON.stringify(
376
- await this.client.deleteComment(args.id),
376
+ await this.client.deleteComment(args.activityId),
377
377
  ),
378
378
  },
379
379
  ],
@@ -1045,10 +1045,10 @@ class KaneoMCPServer {
1045
1045
  inputSchema: {
1046
1046
  type: "object",
1047
1047
  properties: {
1048
- id: { type: "string", description: "Comment ID" },
1048
+ activityId: { type: "string", description: "Comment activity ID" },
1049
1049
  content: { type: "string", description: "New content" },
1050
1050
  },
1051
- required: ["id", "content"],
1051
+ required: ["activityId", "content"],
1052
1052
  },
1053
1053
  },
1054
1054
  {
@@ -1056,8 +1056,10 @@ class KaneoMCPServer {
1056
1056
  description: "Delete a comment (author only)",
1057
1057
  inputSchema: {
1058
1058
  type: "object",
1059
- properties: { id: { type: "string", description: "Comment ID" } },
1060
- required: ["id"],
1059
+ properties: {
1060
+ activityId: { type: "string", description: "Comment activity ID" },
1061
+ },
1062
+ required: ["activityId"],
1061
1063
  },
1062
1064
  },
1063
1065