Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

feat(api): expose rename, delete and reorder checklist MCP tools (#351)

Olivier Van Aken77b7b4dda6f2
diff --git a/apps/api/src/modules/issues/__tests__/integration/checklists.test.ts b/apps/api/src/modules/issues/__tests__/integration/checklists.test.ts
index e6761c9f..c3d36030 100644
--- a/apps/api/src/modules/issues/__tests__/integration/checklists.test.ts
+++ b/apps/api/src/modules/issues/__tests__/integration/checklists.test.ts
@@ -373,17 +373,10 @@ describe('checklists', () => {
});
});
- // An agent fills a checklist in over MCP, so the writes it needs are tagged. The
- // rest stay session-only: the list comes with the issue read, order is a drag in
- // the UI, and removing a checklist takes its items with it, including ones a
- // person wrote.
+ // The list comes with the issue read, so it stays session-only.
it('exposes the checklist writes an agent needs to MCP', () => {
expect(untaggedRoutes((route) => route.includes('checklist'))).toEqual([
'GET /issues/:issueId/checklists',
- 'PUT /issues/:issueId/checklists/reorder',
- 'PATCH /checklists/:checklistId',
- 'DELETE /checklists/:checklistId',
- 'PUT /checklists/:checklistId/items/reorder',
]);
});
});
diff --git a/apps/api/src/modules/issues/index.ts b/apps/api/src/modules/issues/index.ts
index af1168bd..7dfbdd9f 100644
--- a/apps/api/src/modules/issues/index.ts
+++ b/apps/api/src/modules/issues/index.ts
@@ -929,6 +929,7 @@ export const issueRoutes = new Elysia({ name: 'issues', detail: { tags: ['Issues
detail: {
summary: "Reorder an issue's checklists",
description: "Set the display order of an issue's checklists.",
+ ...mcpTool('reorder_checklists'),
},
},
)
@@ -942,7 +943,11 @@ export const issueRoutes = new Elysia({ name: 'issues', detail: { tags: ['Issues
params: checklistParams,
checklist: 'edit',
response: { 200: ChecklistResponse, ...commonErrors },
- detail: { summary: 'Rename a checklist', description: "Change a checklist's title." },
+ detail: {
+ summary: 'Rename a checklist',
+ description: "Change a checklist's title.",
+ ...mcpTool('rename_checklist'),
+ },
},
)
@@ -961,6 +966,7 @@ export const issueRoutes = new Elysia({ name: 'issues', detail: { tags: ['Issues
detail: {
summary: 'Delete a checklist',
description: 'Delete a checklist and every item on it.',
+ ...mcpTool('delete_checklist'),
},
},
)
@@ -995,6 +1001,7 @@ export const issueRoutes = new Elysia({ name: 'issues', detail: { tags: ['Issues
detail: {
summary: 'Reorder checklist items',
description: 'Set the display order of the items within one checklist.',
+ ...mcpTool('reorder_checklist_items'),
},
},
)