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.
- package/.claude/settings.local.json +9 -0
- package/bin/kaneo-mcp.js +1 -1
- package/package.json +1 -1
- package/src/client.ts +11 -10
- package/src/index.ts +8 -6
package/bin/kaneo-mcp.js
CHANGED
package/package.json
CHANGED
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<{
|
|
254
|
+
return this.request<{ activities: unknown[] }>(`/activity/${taskId}`);
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
async createComment(taskId: string,
|
|
258
|
-
return this.request<{
|
|
257
|
+
async createComment(taskId: string, comment: string) {
|
|
258
|
+
return this.request<{ activity: unknown }>("/activity/comment", {
|
|
259
259
|
method: "POST",
|
|
260
|
-
body: JSON.stringify({
|
|
260
|
+
body: JSON.stringify({ taskId, comment }),
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
async updateComment(
|
|
265
|
-
return this.request<{
|
|
264
|
+
async updateComment(activityId: string, comment: string) {
|
|
265
|
+
return this.request<{ activity: unknown }>("/activity/comment", {
|
|
266
266
|
method: "PUT",
|
|
267
|
-
body: JSON.stringify({
|
|
267
|
+
body: JSON.stringify({ activityId, comment }),
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
async deleteComment(
|
|
272
|
-
return this.request<{
|
|
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.
|
|
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.
|
|
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
|
-
|
|
1048
|
+
activityId: { type: "string", description: "Comment activity ID" },
|
|
1049
1049
|
content: { type: "string", description: "New content" },
|
|
1050
1050
|
},
|
|
1051
|
-
required: ["
|
|
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: {
|
|
1060
|
-
|
|
1059
|
+
properties: {
|
|
1060
|
+
activityId: { type: "string", description: "Comment activity ID" },
|
|
1061
|
+
},
|
|
1062
|
+
required: ["activityId"],
|
|
1061
1063
|
},
|
|
1062
1064
|
},
|
|
1063
1065
|
|