@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,258 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { formatList, formatSprint } from "../utils/index.js";
|
|
3
|
+
const ListSprintsSchema = z.object({
|
|
4
|
+
projectId: z.string(),
|
|
5
|
+
});
|
|
6
|
+
const GetSprintSchema = z.object({
|
|
7
|
+
projectId: z.string(),
|
|
8
|
+
sprintId: z.string(),
|
|
9
|
+
});
|
|
10
|
+
const CreateSprintSchema = z.object({
|
|
11
|
+
projectId: z.string(),
|
|
12
|
+
name: z.string(),
|
|
13
|
+
startDate: z.string(),
|
|
14
|
+
endDate: z.string(),
|
|
15
|
+
});
|
|
16
|
+
const UpdateSprintSchema = z.object({
|
|
17
|
+
projectId: z.string(),
|
|
18
|
+
sprintId: z.string(),
|
|
19
|
+
name: z.string().optional(),
|
|
20
|
+
startDate: z.string().optional(),
|
|
21
|
+
endDate: z.string().optional(),
|
|
22
|
+
});
|
|
23
|
+
const DeleteSprintSchema = z.object({
|
|
24
|
+
projectId: z.string(),
|
|
25
|
+
sprintId: z.string(),
|
|
26
|
+
});
|
|
27
|
+
const CompleteSprintSchema = z.object({
|
|
28
|
+
projectId: z.string(),
|
|
29
|
+
sprintId: z.string(),
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Returns all sprint-related MCP tools.
|
|
33
|
+
* @returns Array of sprint tools
|
|
34
|
+
*/
|
|
35
|
+
export function getSprintTools() {
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
name: "list_sprints",
|
|
39
|
+
description: "List all sprints in a project",
|
|
40
|
+
inputSchema: {
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {
|
|
43
|
+
projectId: {
|
|
44
|
+
type: "string",
|
|
45
|
+
description: "The ID of the project",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
required: ["projectId"],
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "get_sprint",
|
|
53
|
+
description: "Get details of a specific sprint",
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object",
|
|
56
|
+
properties: {
|
|
57
|
+
projectId: {
|
|
58
|
+
type: "string",
|
|
59
|
+
description: "The ID of the project",
|
|
60
|
+
},
|
|
61
|
+
sprintId: {
|
|
62
|
+
type: "string",
|
|
63
|
+
description: "The ID of the sprint",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
required: ["projectId", "sprintId"],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "create_sprint",
|
|
71
|
+
description: "Create a new sprint",
|
|
72
|
+
inputSchema: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: {
|
|
75
|
+
projectId: {
|
|
76
|
+
type: "string",
|
|
77
|
+
description: "The ID of the project",
|
|
78
|
+
},
|
|
79
|
+
name: {
|
|
80
|
+
type: "string",
|
|
81
|
+
description: "The name of the sprint",
|
|
82
|
+
},
|
|
83
|
+
startDate: {
|
|
84
|
+
type: "string",
|
|
85
|
+
description: "The start date (ISO 8601 format)",
|
|
86
|
+
},
|
|
87
|
+
endDate: {
|
|
88
|
+
type: "string",
|
|
89
|
+
description: "The end date (ISO 8601 format)",
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
required: ["projectId", "name", "startDate", "endDate"],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "update_sprint",
|
|
97
|
+
description: "Update an existing sprint",
|
|
98
|
+
inputSchema: {
|
|
99
|
+
type: "object",
|
|
100
|
+
properties: {
|
|
101
|
+
projectId: {
|
|
102
|
+
type: "string",
|
|
103
|
+
description: "The ID of the project",
|
|
104
|
+
},
|
|
105
|
+
sprintId: {
|
|
106
|
+
type: "string",
|
|
107
|
+
description: "The ID of the sprint",
|
|
108
|
+
},
|
|
109
|
+
name: {
|
|
110
|
+
type: "string",
|
|
111
|
+
description: "The new name of the sprint",
|
|
112
|
+
},
|
|
113
|
+
startDate: {
|
|
114
|
+
type: "string",
|
|
115
|
+
description: "The new start date (ISO 8601 format)",
|
|
116
|
+
},
|
|
117
|
+
endDate: {
|
|
118
|
+
type: "string",
|
|
119
|
+
description: "The new end date (ISO 8601 format)",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
required: ["projectId", "sprintId"],
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "delete_sprint",
|
|
127
|
+
description: "Delete a sprint",
|
|
128
|
+
inputSchema: {
|
|
129
|
+
type: "object",
|
|
130
|
+
properties: {
|
|
131
|
+
projectId: {
|
|
132
|
+
type: "string",
|
|
133
|
+
description: "The ID of the project",
|
|
134
|
+
},
|
|
135
|
+
sprintId: {
|
|
136
|
+
type: "string",
|
|
137
|
+
description: "The ID of the sprint",
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
required: ["projectId", "sprintId"],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "complete_sprint",
|
|
145
|
+
description: "Mark a sprint as completed",
|
|
146
|
+
inputSchema: {
|
|
147
|
+
type: "object",
|
|
148
|
+
properties: {
|
|
149
|
+
projectId: {
|
|
150
|
+
type: "string",
|
|
151
|
+
description: "The ID of the project",
|
|
152
|
+
},
|
|
153
|
+
sprintId: {
|
|
154
|
+
type: "string",
|
|
155
|
+
description: "The ID of the sprint",
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
required: ["projectId", "sprintId"],
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
];
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Handles sprint-related tool calls.
|
|
165
|
+
* @param toolName - Name of the tool being called
|
|
166
|
+
* @param args - Tool arguments
|
|
167
|
+
* @param client - Paca API client instance
|
|
168
|
+
* @returns Tool response
|
|
169
|
+
*/
|
|
170
|
+
export async function handleSprintTool(toolName, args, client) {
|
|
171
|
+
switch (toolName) {
|
|
172
|
+
case "list_sprints": {
|
|
173
|
+
const { projectId } = ListSprintsSchema.parse(args);
|
|
174
|
+
const sprints = await client.listSprints(projectId);
|
|
175
|
+
const formatted = formatList(sprints, formatSprint);
|
|
176
|
+
return {
|
|
177
|
+
content: [
|
|
178
|
+
{
|
|
179
|
+
type: "text",
|
|
180
|
+
text: `Sprints:\n\n${formatted}`,
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
case "get_sprint": {
|
|
186
|
+
const { projectId, sprintId } = GetSprintSchema.parse(args);
|
|
187
|
+
const sprint = await client.getSprint(projectId, sprintId);
|
|
188
|
+
return {
|
|
189
|
+
content: [
|
|
190
|
+
{
|
|
191
|
+
type: "text",
|
|
192
|
+
text: formatSprint(sprint),
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
case "create_sprint": {
|
|
198
|
+
const { projectId, name, startDate, endDate } = CreateSprintSchema.parse(args);
|
|
199
|
+
const sprint = await client.createSprint({
|
|
200
|
+
project_id: projectId,
|
|
201
|
+
name,
|
|
202
|
+
start_date: startDate,
|
|
203
|
+
end_date: endDate,
|
|
204
|
+
});
|
|
205
|
+
return {
|
|
206
|
+
content: [
|
|
207
|
+
{
|
|
208
|
+
type: "text",
|
|
209
|
+
text: `Sprint created successfully:\n\n${formatSprint(sprint)}`,
|
|
210
|
+
},
|
|
211
|
+
],
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
case "update_sprint": {
|
|
215
|
+
const { projectId, sprintId, name, startDate, endDate } = UpdateSprintSchema.parse(args);
|
|
216
|
+
const sprint = await client.updateSprint(projectId, sprintId, {
|
|
217
|
+
name,
|
|
218
|
+
start_date: startDate,
|
|
219
|
+
end_date: endDate,
|
|
220
|
+
});
|
|
221
|
+
return {
|
|
222
|
+
content: [
|
|
223
|
+
{
|
|
224
|
+
type: "text",
|
|
225
|
+
text: `Sprint updated successfully:\n\n${formatSprint(sprint)}`,
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
case "delete_sprint": {
|
|
231
|
+
const { projectId, sprintId } = DeleteSprintSchema.parse(args);
|
|
232
|
+
await client.deleteSprint(projectId, sprintId);
|
|
233
|
+
return {
|
|
234
|
+
content: [
|
|
235
|
+
{
|
|
236
|
+
type: "text",
|
|
237
|
+
text: `Sprint ${sprintId} deleted successfully`,
|
|
238
|
+
},
|
|
239
|
+
],
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
case "complete_sprint": {
|
|
243
|
+
const { projectId, sprintId } = CompleteSprintSchema.parse(args);
|
|
244
|
+
const sprint = await client.completeSprint(projectId, sprintId);
|
|
245
|
+
return {
|
|
246
|
+
content: [
|
|
247
|
+
{
|
|
248
|
+
type: "text",
|
|
249
|
+
text: `Sprint completed successfully:\n\n${formatSprint(sprint)}`,
|
|
250
|
+
},
|
|
251
|
+
],
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
default:
|
|
255
|
+
throw new Error(`Unknown sprint tool: ${toolName}`);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
//# sourceMappingURL=sprint-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sprint-tools.js","sourceRoot":"","sources":["../../src/tools/sprint-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAEH,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,M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mCAAmC,YAAY,CAAC,MAAM,CAAC,EAAE;qBAC/D;iBACD;aACD,CAAC;QACH,CAAC;QAED,KAAK,eAAe,CAAC,CAAC,CAAC;YACtB,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAC/D,MAAM,MAAM,CAAC,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAC/C,OAAO;gBACN,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,UAAU,QAAQ,uBAAuB;qBAC/C;iBACD;aACD,CAAC;QACH,CAAC;QAED,KAAK,iBAAiB,CAAC,CAAC,CAAC;YACxB,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;YAChE,OAAO;gBACN,OAAO,EAAE;oBACR;wBACC,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,qCAAqC,YAAY,CAAC,MAAM,CAAC,EAAE;qBACjE;iBACD;aACD,CAAC;QACH,CAAC;QAED;YACC,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IACtD,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
+
import type { PacaAPITaskExtendedClient } from "../api/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Returns all task comment and activity related MCP tools.
|
|
5
|
+
*/
|
|
6
|
+
export declare function getTaskActivityTools(): Tool[];
|
|
7
|
+
/**
|
|
8
|
+
* Returns all task GitHub related MCP tools.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getTaskGitHubTools(): Tool[];
|
|
11
|
+
/**
|
|
12
|
+
* Handles task activity, comment, and GitHub tool calls.
|
|
13
|
+
*/
|
|
14
|
+
export declare function handleTaskActivityTool(toolName: string, args: any, client: PacaAPITaskExtendedClient): Promise<any>;
|
|
15
|
+
//# sourceMappingURL=task-activity-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task-activity-tools.d.ts","sourceRoot":"","sources":["../../src/tools/task-activity-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAE/D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAyDjE;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,EAAE,CA2F7C;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,EAAE,CAqH3C;AAoCD;;GAEG;AACH,wBAAsB,sBAAsB,CAC3C,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,yBAAyB,GAC/B,OAAO,CAAC,GAAG,CAAC,CAiJd"}
|