@pschroee/redmine-mcp 0.4.0 → 0.4.1
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/dist/redmine/client.d.ts +1 -2
- package/dist/redmine/client.js +11 -4
- package/dist/server.js +1 -1
- package/dist/tools/checklists.js +2 -1
- package/package.json +1 -1
package/dist/redmine/client.d.ts
CHANGED
|
@@ -351,8 +351,7 @@ export declare class RedmineClient {
|
|
|
351
351
|
getChecklist(id: number): Promise<RedmineResult<{
|
|
352
352
|
checklist: RedmineChecklist;
|
|
353
353
|
}>>;
|
|
354
|
-
createChecklist(data: {
|
|
355
|
-
issue_id: number;
|
|
354
|
+
createChecklist(issueId: number, data: {
|
|
356
355
|
subject: string;
|
|
357
356
|
is_done?: boolean;
|
|
358
357
|
position?: number;
|
package/dist/redmine/client.js
CHANGED
|
@@ -484,14 +484,21 @@ export class RedmineClient {
|
|
|
484
484
|
async getChecklist(id) {
|
|
485
485
|
return this.request("GET", `/checklists/${id}.json`);
|
|
486
486
|
}
|
|
487
|
-
async createChecklist(data) {
|
|
488
|
-
return this.request("POST",
|
|
489
|
-
checklist:
|
|
487
|
+
async createChecklist(issueId, data) {
|
|
488
|
+
return this.request("POST", `/issues/${issueId}/checklists.json`, {
|
|
489
|
+
checklist: {
|
|
490
|
+
...data,
|
|
491
|
+
is_done: data.is_done ? 1 : 0,
|
|
492
|
+
},
|
|
490
493
|
});
|
|
491
494
|
}
|
|
492
495
|
async updateChecklist(id, data) {
|
|
496
|
+
const payload = { ...data };
|
|
497
|
+
if (data.is_done !== undefined) {
|
|
498
|
+
payload.is_done = data.is_done ? 1 : 0;
|
|
499
|
+
}
|
|
493
500
|
return this.request("PUT", `/checklists/${id}.json`, {
|
|
494
|
-
checklist:
|
|
501
|
+
checklist: payload,
|
|
495
502
|
});
|
|
496
503
|
}
|
|
497
504
|
async deleteChecklist(id) {
|
package/dist/server.js
CHANGED
|
@@ -3,7 +3,7 @@ import { registerTools } from "./tools/index.js";
|
|
|
3
3
|
export function createServer(redmineClient, toolGroups) {
|
|
4
4
|
const server = new McpServer({
|
|
5
5
|
name: "redmine-mcp",
|
|
6
|
-
version: "0.4.
|
|
6
|
+
version: "0.4.1",
|
|
7
7
|
});
|
|
8
8
|
registerTools(server, redmineClient, toolGroups);
|
|
9
9
|
return server;
|
package/dist/tools/checklists.js
CHANGED
|
@@ -31,7 +31,8 @@ export function registerChecklistsTools(server, client) {
|
|
|
31
31
|
position: z.number().optional().describe("Position in the checklist (1-based)"),
|
|
32
32
|
},
|
|
33
33
|
}, async (params) => {
|
|
34
|
-
const
|
|
34
|
+
const { issue_id, ...data } = params;
|
|
35
|
+
const result = await client.createChecklist(issue_id, data);
|
|
35
36
|
return {
|
|
36
37
|
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
37
38
|
};
|