@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.
@@ -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;
@@ -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", "/checklists.json", {
489
- checklist: data,
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: data,
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.0",
6
+ version: "0.4.1",
7
7
  });
8
8
  registerTools(server, redmineClient, toolGroups);
9
9
  return server;
@@ -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 result = await client.createChecklist(params);
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pschroee/redmine-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "MCP server for Redmine - full API access with configurable tool groups",
5
5
  "type": "module",
6
6
  "bin": {