@paca-ai/paca-mcp 0.1.0-rc.6
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/api/client.d.ts +53 -0
- package/api/client.d.ts.map +1 -0
- package/api/client.js +267 -0
- package/api/client.js.map +1 -0
- package/api/doc-client.d.ts +26 -0
- package/api/doc-client.d.ts.map +1 -0
- package/api/doc-client.js +109 -0
- package/api/doc-client.js.map +1 -0
- package/api/extended-client.d.ts +44 -0
- package/api/extended-client.d.ts.map +1 -0
- package/api/extended-client.js +167 -0
- package/api/extended-client.js.map +1 -0
- package/api/github-client.d.ts +21 -0
- package/api/github-client.d.ts.map +1 -0
- package/api/github-client.js +87 -0
- package/api/github-client.js.map +1 -0
- package/api/index.d.ts +7 -0
- package/api/index.d.ts.map +1 -0
- package/api/index.js +7 -0
- package/api/index.js.map +1 -0
- package/api/task-extended-client.d.ts +28 -0
- package/api/task-extended-client.d.ts.map +1 -0
- package/api/task-extended-client.js +123 -0
- package/api/task-extended-client.js.map +1 -0
- package/api/views-client.d.ts +36 -0
- package/api/views-client.d.ts.map +1 -0
- package/api/views-client.js +157 -0
- package/api/views-client.js.map +1 -0
- package/index.d.ts +3 -0
- package/index.d.ts.map +1 -0
- package/index.js +41 -0
- package/index.js.map +1 -0
- package/package.json +40 -0
- package/server.d.ts +9 -0
- package/server.d.ts.map +1 -0
- package/server.js +46 -0
- package/server.js.map +1 -0
- package/tools/attachment-tools.d.ts +15 -0
- package/tools/attachment-tools.d.ts.map +1 -0
- package/tools/attachment-tools.js +402 -0
- package/tools/attachment-tools.js.map +1 -0
- package/tools/doc-github-tools.d.ts +15 -0
- package/tools/doc-github-tools.d.ts.map +1 -0
- package/tools/doc-github-tools.js +520 -0
- package/tools/doc-github-tools.js.map +1 -0
- package/tools/document-tools.d.ts +16 -0
- package/tools/document-tools.d.ts.map +1 -0
- package/tools/document-tools.js +224 -0
- package/tools/document-tools.js.map +1 -0
- package/tools/index.d.ts +19 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +171 -0
- package/tools/index.js.map +1 -0
- package/tools/member-tools.d.ts +15 -0
- package/tools/member-tools.d.ts.map +1 -0
- package/tools/member-tools.js +391 -0
- package/tools/member-tools.js.map +1 -0
- package/tools/project-tools.d.ts +16 -0
- package/tools/project-tools.d.ts.map +1 -0
- package/tools/project-tools.js +178 -0
- package/tools/project-tools.js.map +1 -0
- package/tools/sprint-tools.d.ts +16 -0
- package/tools/sprint-tools.d.ts.map +1 -0
- package/tools/sprint-tools.js +258 -0
- package/tools/sprint-tools.js.map +1 -0
- package/tools/task-activity-tools.d.ts +15 -0
- package/tools/task-activity-tools.d.ts.map +1 -0
- package/tools/task-activity-tools.js +425 -0
- package/tools/task-activity-tools.js.map +1 -0
- package/tools/task-tools.d.ts +16 -0
- package/tools/task-tools.d.ts.map +1 -0
- package/tools/task-tools.js +344 -0
- package/tools/task-tools.js.map +1 -0
- package/tools/task-type-tools.d.ts +12 -0
- package/tools/task-type-tools.d.ts.map +1 -0
- package/tools/task-type-tools.js +459 -0
- package/tools/task-type-tools.js.map +1 -0
- package/tools/view-tools.d.ts +15 -0
- package/tools/view-tools.d.ts.map +1 -0
- package/tools/view-tools.js +660 -0
- package/tools/view-tools.js.map +1 -0
- package/types/index.d.ts +564 -0
- package/types/index.d.ts.map +1 -0
- package/types/index.js +2 -0
- package/types/index.js.map +1 -0
- package/utils/converters.d.ts +13 -0
- package/utils/converters.d.ts.map +1 -0
- package/utils/converters.js +50 -0
- package/utils/converters.js.map +1 -0
- package/utils/formatters.d.ts +34 -0
- package/utils/formatters.d.ts.map +1 -0
- package/utils/formatters.js +87 -0
- package/utils/formatters.js.map +1 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.d.ts.map +1 -0
- package/utils/index.js +3 -0
- package/utils/index.js.map +1 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { formatList, formatTask } from "../utils/index.js";
|
|
3
|
+
const ListTasksSchema = z.object({
|
|
4
|
+
projectId: z.string(),
|
|
5
|
+
});
|
|
6
|
+
const GetTaskSchema = z.object({
|
|
7
|
+
projectId: z.string(),
|
|
8
|
+
taskId: z.string(),
|
|
9
|
+
});
|
|
10
|
+
const GetTaskByNumberSchema = z.object({
|
|
11
|
+
projectId: z.string(),
|
|
12
|
+
taskNumber: z.number(),
|
|
13
|
+
});
|
|
14
|
+
const CreateTaskSchema = z.object({
|
|
15
|
+
projectId: z.string(),
|
|
16
|
+
title: z.string(),
|
|
17
|
+
description: z.string().optional(),
|
|
18
|
+
statusId: z.string().optional(),
|
|
19
|
+
typeId: z.string().optional(),
|
|
20
|
+
sprintId: z.string().optional(),
|
|
21
|
+
assigneeId: z.string().optional(),
|
|
22
|
+
importance: z.number().optional(),
|
|
23
|
+
tags: z.array(z.string()).optional(),
|
|
24
|
+
startDate: z.string().optional(),
|
|
25
|
+
dueDate: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
const UpdateTaskSchema = z.object({
|
|
28
|
+
projectId: z.string(),
|
|
29
|
+
taskId: z.string(),
|
|
30
|
+
title: z.string().optional(),
|
|
31
|
+
description: z.string().optional(),
|
|
32
|
+
statusId: z.string().optional(),
|
|
33
|
+
typeId: z.string().optional(),
|
|
34
|
+
sprintId: z.string().optional(),
|
|
35
|
+
assigneeId: z.string().optional(),
|
|
36
|
+
importance: z.number().optional(),
|
|
37
|
+
tags: z.array(z.string()).optional(),
|
|
38
|
+
startDate: z.string().optional(),
|
|
39
|
+
dueDate: z.string().optional(),
|
|
40
|
+
});
|
|
41
|
+
const DeleteTaskSchema = z.object({
|
|
42
|
+
projectId: z.string(),
|
|
43
|
+
taskId: z.string(),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Returns all task-related MCP tools.
|
|
47
|
+
* @returns Array of task tools
|
|
48
|
+
*/
|
|
49
|
+
export function getTaskTools() {
|
|
50
|
+
return [
|
|
51
|
+
{
|
|
52
|
+
name: "list_tasks",
|
|
53
|
+
description: "List all tasks in a project",
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
projectId: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "The ID of the project",
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
required: ["projectId"],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "get_task",
|
|
67
|
+
description: "Get details of a specific task",
|
|
68
|
+
inputSchema: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: {
|
|
71
|
+
projectId: {
|
|
72
|
+
type: "string",
|
|
73
|
+
description: "The ID of the project",
|
|
74
|
+
},
|
|
75
|
+
taskId: {
|
|
76
|
+
type: "string",
|
|
77
|
+
description: "The ID of the task",
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
required: ["projectId", "taskId"],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "get_task_by_number",
|
|
85
|
+
description: "Get a task by its number within a project",
|
|
86
|
+
inputSchema: {
|
|
87
|
+
type: "object",
|
|
88
|
+
properties: {
|
|
89
|
+
projectId: {
|
|
90
|
+
type: "string",
|
|
91
|
+
description: "The ID of the project",
|
|
92
|
+
},
|
|
93
|
+
taskNumber: {
|
|
94
|
+
type: "number",
|
|
95
|
+
description: "The task number",
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
required: ["projectId", "taskNumber"],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: "create_task",
|
|
103
|
+
description: "Create a new task",
|
|
104
|
+
inputSchema: {
|
|
105
|
+
type: "object",
|
|
106
|
+
properties: {
|
|
107
|
+
projectId: {
|
|
108
|
+
type: "string",
|
|
109
|
+
description: "The ID of the project",
|
|
110
|
+
},
|
|
111
|
+
title: {
|
|
112
|
+
type: "string",
|
|
113
|
+
description: "The title of the task",
|
|
114
|
+
},
|
|
115
|
+
description: {
|
|
116
|
+
type: "string",
|
|
117
|
+
description: "The description of the task (will be converted from markdown to BlockNote format)",
|
|
118
|
+
},
|
|
119
|
+
statusId: {
|
|
120
|
+
type: "string",
|
|
121
|
+
description: "The ID of the status",
|
|
122
|
+
},
|
|
123
|
+
typeId: {
|
|
124
|
+
type: "string",
|
|
125
|
+
description: "The ID of the task type",
|
|
126
|
+
},
|
|
127
|
+
sprintId: {
|
|
128
|
+
type: "string",
|
|
129
|
+
description: "The ID of the sprint",
|
|
130
|
+
},
|
|
131
|
+
assigneeId: {
|
|
132
|
+
type: "string",
|
|
133
|
+
description: "The ID of the assignee",
|
|
134
|
+
},
|
|
135
|
+
importance: {
|
|
136
|
+
type: "number",
|
|
137
|
+
description: "The importance of the task",
|
|
138
|
+
},
|
|
139
|
+
tags: {
|
|
140
|
+
type: "array",
|
|
141
|
+
items: { type: "string" },
|
|
142
|
+
description: "Tags for the task",
|
|
143
|
+
},
|
|
144
|
+
startDate: {
|
|
145
|
+
type: "string",
|
|
146
|
+
description: "The start date (ISO 8601 format)",
|
|
147
|
+
},
|
|
148
|
+
dueDate: {
|
|
149
|
+
type: "string",
|
|
150
|
+
description: "The due date (ISO 8601 format)",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
required: ["projectId", "title"],
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: "update_task",
|
|
158
|
+
description: "Update an existing task",
|
|
159
|
+
inputSchema: {
|
|
160
|
+
type: "object",
|
|
161
|
+
properties: {
|
|
162
|
+
projectId: {
|
|
163
|
+
type: "string",
|
|
164
|
+
description: "The ID of the project",
|
|
165
|
+
},
|
|
166
|
+
taskId: {
|
|
167
|
+
type: "string",
|
|
168
|
+
description: "The ID of the task",
|
|
169
|
+
},
|
|
170
|
+
title: {
|
|
171
|
+
type: "string",
|
|
172
|
+
description: "The new title of the task",
|
|
173
|
+
},
|
|
174
|
+
description: {
|
|
175
|
+
type: "string",
|
|
176
|
+
description: "The new description of the task (will be converted from markdown to BlockNote format)",
|
|
177
|
+
},
|
|
178
|
+
statusId: {
|
|
179
|
+
type: "string",
|
|
180
|
+
description: "The ID of the status",
|
|
181
|
+
},
|
|
182
|
+
typeId: {
|
|
183
|
+
type: "string",
|
|
184
|
+
description: "The ID of the task type",
|
|
185
|
+
},
|
|
186
|
+
sprintId: {
|
|
187
|
+
type: "string",
|
|
188
|
+
description: "The ID of the sprint",
|
|
189
|
+
},
|
|
190
|
+
assigneeId: {
|
|
191
|
+
type: "string",
|
|
192
|
+
description: "The ID of the assignee",
|
|
193
|
+
},
|
|
194
|
+
importance: {
|
|
195
|
+
type: "number",
|
|
196
|
+
description: "The importance of the task",
|
|
197
|
+
},
|
|
198
|
+
tags: {
|
|
199
|
+
type: "array",
|
|
200
|
+
items: { type: "string" },
|
|
201
|
+
description: "Tags for the task",
|
|
202
|
+
},
|
|
203
|
+
startDate: {
|
|
204
|
+
type: "string",
|
|
205
|
+
description: "The start date (ISO 8601 format)",
|
|
206
|
+
},
|
|
207
|
+
dueDate: {
|
|
208
|
+
type: "string",
|
|
209
|
+
description: "The due date (ISO 8601 format)",
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
required: ["projectId", "taskId"],
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
name: "delete_task",
|
|
217
|
+
description: "Delete a task",
|
|
218
|
+
inputSchema: {
|
|
219
|
+
type: "object",
|
|
220
|
+
properties: {
|
|
221
|
+
projectId: {
|
|
222
|
+
type: "string",
|
|
223
|
+
description: "The ID of the project",
|
|
224
|
+
},
|
|
225
|
+
taskId: {
|
|
226
|
+
type: "string",
|
|
227
|
+
description: "The ID of the task",
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
required: ["projectId", "taskId"],
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
];
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Handles task-related tool calls.
|
|
237
|
+
* @param toolName - Name of the tool being called
|
|
238
|
+
* @param args - Tool arguments
|
|
239
|
+
* @param client - Paca API client instance
|
|
240
|
+
* @returns Tool response
|
|
241
|
+
*/
|
|
242
|
+
export async function handleTaskTool(toolName, args, client) {
|
|
243
|
+
switch (toolName) {
|
|
244
|
+
case "list_tasks": {
|
|
245
|
+
const { projectId } = ListTasksSchema.parse(args);
|
|
246
|
+
const tasks = await client.listTasks(projectId);
|
|
247
|
+
const formatted = formatList(tasks, formatTask);
|
|
248
|
+
return {
|
|
249
|
+
content: [
|
|
250
|
+
{
|
|
251
|
+
type: "text",
|
|
252
|
+
text: `Tasks:\n\n${formatted}`,
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
case "get_task": {
|
|
258
|
+
const { projectId, taskId } = GetTaskSchema.parse(args);
|
|
259
|
+
const task = await client.getTask(projectId, taskId);
|
|
260
|
+
return {
|
|
261
|
+
content: [
|
|
262
|
+
{
|
|
263
|
+
type: "text",
|
|
264
|
+
text: formatTask(task),
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
case "get_task_by_number": {
|
|
270
|
+
const { projectId, taskNumber } = GetTaskByNumberSchema.parse(args);
|
|
271
|
+
const task = await client.getTaskByNumber(projectId, taskNumber);
|
|
272
|
+
return {
|
|
273
|
+
content: [
|
|
274
|
+
{
|
|
275
|
+
type: "text",
|
|
276
|
+
text: formatTask(task),
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
case "create_task": {
|
|
282
|
+
const { projectId, title, description, statusId, typeId, sprintId, assigneeId, importance, tags, startDate, dueDate, } = CreateTaskSchema.parse(args);
|
|
283
|
+
const task = await client.createTask({
|
|
284
|
+
project_id: projectId,
|
|
285
|
+
title,
|
|
286
|
+
description,
|
|
287
|
+
status_id: statusId,
|
|
288
|
+
task_type_id: typeId,
|
|
289
|
+
sprint_id: sprintId,
|
|
290
|
+
assignee_id: assigneeId,
|
|
291
|
+
importance,
|
|
292
|
+
tags,
|
|
293
|
+
start_date: startDate,
|
|
294
|
+
due_date: dueDate,
|
|
295
|
+
});
|
|
296
|
+
return {
|
|
297
|
+
content: [
|
|
298
|
+
{
|
|
299
|
+
type: "text",
|
|
300
|
+
text: `Task created successfully:\n\n${formatTask(task)}`,
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
};
|
|
304
|
+
}
|
|
305
|
+
case "update_task": {
|
|
306
|
+
const { projectId, taskId, title, description, statusId, typeId, sprintId, assigneeId, importance, tags, startDate, dueDate, } = UpdateTaskSchema.parse(args);
|
|
307
|
+
const task = await client.updateTask(projectId, taskId, {
|
|
308
|
+
title,
|
|
309
|
+
description,
|
|
310
|
+
status_id: statusId,
|
|
311
|
+
task_type_id: typeId,
|
|
312
|
+
sprint_id: sprintId,
|
|
313
|
+
assignee_id: assigneeId,
|
|
314
|
+
importance,
|
|
315
|
+
tags,
|
|
316
|
+
start_date: startDate,
|
|
317
|
+
due_date: dueDate,
|
|
318
|
+
});
|
|
319
|
+
return {
|
|
320
|
+
content: [
|
|
321
|
+
{
|
|
322
|
+
type: "text",
|
|
323
|
+
text: `Task updated successfully:\n\n${formatTask(task)}`,
|
|
324
|
+
},
|
|
325
|
+
],
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
case "delete_task": {
|
|
329
|
+
const { projectId, taskId } = DeleteTaskSchema.parse(args);
|
|
330
|
+
await client.deleteTask(projectId, taskId);
|
|
331
|
+
return {
|
|
332
|
+
content: [
|
|
333
|
+
{
|
|
334
|
+
type: "text",
|
|
335
|
+
text: `Task ${taskId} deleted successfully`,
|
|
336
|
+
},
|
|
337
|
+
],
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
default:
|
|
341
|
+
throw new Error(`Unknown task tool: ${toolName}`);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
//# sourceMappingURL=task-tools.js.map
|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AAM,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;YAC3C,OAAO;gBACN,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,QAAQ,MAAM,uBAAuB;qBAC3C;iBACD;aACD,CAAC;QACH,CAAC;QAED;YACC,MAAM,IAAI,KAAK,CAAC,sBAAsB,QAAQ,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import type { PacaAPIExtendedClient } from "../api/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns all task type and status related MCP tools.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTaskTypeTools(): Tool[];
|
|
7
|
+
export declare function getTaskStatusTools(): Tool[];
|
|
8
|
+
/**
|
|
9
|
+
* Handles task type and status tool calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function handleTaskTypeTool(toolName: string, args: any, client: PacaAPIExtendedClient): Promise<any>;
|
|
12
|
+
//# sourceMappingURL=task-type-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-type-tools.d.ts","sourceRoot":"","sources":["../../src/tools/task-type-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAgE7D;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,EAAE,CAqHzC;AAED,wBAAgB,kBAAkB,IAAI,IAAI,EAAE,CAkH3C;AAuBD;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,qBAAqB,GAC3B,OAAO,CAAC,GAAG,CAAC,CAiKd"}
|