@lvmk/jira-mcp 1.0.0

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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +583 -0
  3. package/dist/client.d.ts +287 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +235 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/config.d.ts +54 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +66 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/index.d.ts +10 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +222 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/setup.d.ts +41 -0
  16. package/dist/setup.d.ts.map +1 -0
  17. package/dist/setup.js +275 -0
  18. package/dist/setup.js.map +1 -0
  19. package/dist/tools/index.d.ts +10 -0
  20. package/dist/tools/index.d.ts.map +1 -0
  21. package/dist/tools/index.js +10 -0
  22. package/dist/tools/index.js.map +1 -0
  23. package/dist/tools/issues.d.ts +363 -0
  24. package/dist/tools/issues.d.ts.map +1 -0
  25. package/dist/tools/issues.js +365 -0
  26. package/dist/tools/issues.js.map +1 -0
  27. package/dist/tools/projects.d.ts +69 -0
  28. package/dist/tools/projects.d.ts.map +1 -0
  29. package/dist/tools/projects.js +93 -0
  30. package/dist/tools/projects.js.map +1 -0
  31. package/dist/tools/search.d.ts +76 -0
  32. package/dist/tools/search.d.ts.map +1 -0
  33. package/dist/tools/search.js +98 -0
  34. package/dist/tools/search.js.map +1 -0
  35. package/dist/tools/transitions.d.ts +98 -0
  36. package/dist/tools/transitions.d.ts.map +1 -0
  37. package/dist/tools/transitions.js +109 -0
  38. package/dist/tools/transitions.js.map +1 -0
  39. package/dist/tools/users.d.ts +69 -0
  40. package/dist/tools/users.d.ts.map +1 -0
  41. package/dist/tools/users.js +89 -0
  42. package/dist/tools/users.js.map +1 -0
  43. package/package.json +57 -0
@@ -0,0 +1,363 @@
1
+ /**
2
+ * @file tools/issues.ts
3
+ * @description Issue-related MCP tools for Jira.
4
+ * Provides tools for creating, reading, updating, and deleting issues.
5
+ */
6
+ import { z } from 'zod';
7
+ import { JiraClient } from '../client.js';
8
+ /**
9
+ * Schema for get_issue tool input.
10
+ */
11
+ export declare const getIssueSchema: z.ZodObject<{
12
+ issueKey: z.ZodString;
13
+ fields: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ issueKey: string;
16
+ fields?: string | undefined;
17
+ }, {
18
+ issueKey: string;
19
+ fields?: string | undefined;
20
+ }>;
21
+ /**
22
+ * Schema for create_issue tool input.
23
+ */
24
+ export declare const createIssueSchema: z.ZodObject<{
25
+ projectKey: z.ZodString;
26
+ summary: z.ZodString;
27
+ issueType: z.ZodDefault<z.ZodString>;
28
+ description: z.ZodOptional<z.ZodString>;
29
+ assignee: z.ZodOptional<z.ZodString>;
30
+ priority: z.ZodOptional<z.ZodString>;
31
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ summary: string;
34
+ projectKey: string;
35
+ issueType: string;
36
+ assignee?: string | undefined;
37
+ priority?: string | undefined;
38
+ description?: string | undefined;
39
+ labels?: string[] | undefined;
40
+ }, {
41
+ summary: string;
42
+ projectKey: string;
43
+ assignee?: string | undefined;
44
+ priority?: string | undefined;
45
+ description?: string | undefined;
46
+ labels?: string[] | undefined;
47
+ issueType?: string | undefined;
48
+ }>;
49
+ /**
50
+ * Schema for update_issue tool input.
51
+ */
52
+ export declare const updateIssueSchema: z.ZodObject<{
53
+ issueKey: z.ZodString;
54
+ summary: z.ZodOptional<z.ZodString>;
55
+ description: z.ZodOptional<z.ZodString>;
56
+ assignee: z.ZodNullable<z.ZodOptional<z.ZodString>>;
57
+ priority: z.ZodOptional<z.ZodString>;
58
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
+ }, "strip", z.ZodTypeAny, {
60
+ issueKey: string;
61
+ summary?: string | undefined;
62
+ assignee?: string | null | undefined;
63
+ priority?: string | undefined;
64
+ description?: string | undefined;
65
+ labels?: string[] | undefined;
66
+ }, {
67
+ issueKey: string;
68
+ summary?: string | undefined;
69
+ assignee?: string | null | undefined;
70
+ priority?: string | undefined;
71
+ description?: string | undefined;
72
+ labels?: string[] | undefined;
73
+ }>;
74
+ /**
75
+ * Schema for delete_issue tool input.
76
+ */
77
+ export declare const deleteIssueSchema: z.ZodObject<{
78
+ issueKey: z.ZodString;
79
+ deleteSubtasks: z.ZodDefault<z.ZodBoolean>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ issueKey: string;
82
+ deleteSubtasks: boolean;
83
+ }, {
84
+ issueKey: string;
85
+ deleteSubtasks?: boolean | undefined;
86
+ }>;
87
+ /**
88
+ * Schema for add_comment tool input.
89
+ */
90
+ export declare const addCommentSchema: z.ZodObject<{
91
+ issueKey: z.ZodString;
92
+ body: z.ZodString;
93
+ }, "strip", z.ZodTypeAny, {
94
+ issueKey: string;
95
+ body: string;
96
+ }, {
97
+ issueKey: string;
98
+ body: string;
99
+ }>;
100
+ /**
101
+ * Schema for get_comments tool input.
102
+ */
103
+ export declare const getCommentsSchema: z.ZodObject<{
104
+ issueKey: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ issueKey: string;
107
+ }, {
108
+ issueKey: string;
109
+ }>;
110
+ /**
111
+ * Creates issue tool handlers.
112
+ * @param client - Jira client instance
113
+ * @returns Object containing all issue tool handlers
114
+ */
115
+ export declare function createIssueTools(client: JiraClient): {
116
+ /**
117
+ * Gets an issue by key or ID.
118
+ */
119
+ jira_get_issue: (args: z.infer<typeof getIssueSchema>) => Promise<{
120
+ content: {
121
+ type: "text";
122
+ text: string;
123
+ }[];
124
+ }>;
125
+ /**
126
+ * Creates a new issue.
127
+ */
128
+ jira_create_issue: (args: z.infer<typeof createIssueSchema>) => Promise<{
129
+ content: {
130
+ type: "text";
131
+ text: string;
132
+ }[];
133
+ }>;
134
+ /**
135
+ * Updates an existing issue.
136
+ */
137
+ jira_update_issue: (args: z.infer<typeof updateIssueSchema>) => Promise<{
138
+ content: {
139
+ type: "text";
140
+ text: string;
141
+ }[];
142
+ }>;
143
+ /**
144
+ * Deletes an issue.
145
+ */
146
+ jira_delete_issue: (args: z.infer<typeof deleteIssueSchema>) => Promise<{
147
+ content: {
148
+ type: "text";
149
+ text: string;
150
+ }[];
151
+ }>;
152
+ /**
153
+ * Adds a comment to an issue.
154
+ */
155
+ jira_add_comment: (args: z.infer<typeof addCommentSchema>) => Promise<{
156
+ content: {
157
+ type: "text";
158
+ text: string;
159
+ }[];
160
+ }>;
161
+ /**
162
+ * Gets comments on an issue.
163
+ */
164
+ jira_get_comments: (args: z.infer<typeof getCommentsSchema>) => Promise<{
165
+ content: {
166
+ type: "text";
167
+ text: string;
168
+ }[];
169
+ }>;
170
+ };
171
+ /**
172
+ * Tool definitions for issue-related operations.
173
+ */
174
+ export declare const issueToolDefinitions: ({
175
+ name: string;
176
+ description: string;
177
+ inputSchema: {
178
+ type: "object";
179
+ properties: {
180
+ issueKey: {
181
+ type: string;
182
+ description: string;
183
+ };
184
+ fields: {
185
+ type: string;
186
+ description: string;
187
+ };
188
+ projectKey?: undefined;
189
+ summary?: undefined;
190
+ issueType?: undefined;
191
+ description?: undefined;
192
+ assignee?: undefined;
193
+ priority?: undefined;
194
+ labels?: undefined;
195
+ deleteSubtasks?: undefined;
196
+ body?: undefined;
197
+ };
198
+ required: string[];
199
+ };
200
+ } | {
201
+ name: string;
202
+ description: string;
203
+ inputSchema: {
204
+ type: "object";
205
+ properties: {
206
+ projectKey: {
207
+ type: string;
208
+ description: string;
209
+ };
210
+ summary: {
211
+ type: string;
212
+ description: string;
213
+ };
214
+ issueType: {
215
+ type: string;
216
+ description: string;
217
+ default: string;
218
+ };
219
+ description: {
220
+ type: string;
221
+ description: string;
222
+ };
223
+ assignee: {
224
+ type: string;
225
+ description: string;
226
+ };
227
+ priority: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ labels: {
232
+ type: string;
233
+ items: {
234
+ type: string;
235
+ };
236
+ description: string;
237
+ };
238
+ issueKey?: undefined;
239
+ fields?: undefined;
240
+ deleteSubtasks?: undefined;
241
+ body?: undefined;
242
+ };
243
+ required: string[];
244
+ };
245
+ } | {
246
+ name: string;
247
+ description: string;
248
+ inputSchema: {
249
+ type: "object";
250
+ properties: {
251
+ issueKey: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ summary: {
256
+ type: string;
257
+ description: string;
258
+ };
259
+ description: {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ assignee: {
264
+ type: string[];
265
+ description: string;
266
+ };
267
+ priority: {
268
+ type: string;
269
+ description: string;
270
+ };
271
+ labels: {
272
+ type: string;
273
+ items: {
274
+ type: string;
275
+ };
276
+ description: string;
277
+ };
278
+ fields?: undefined;
279
+ projectKey?: undefined;
280
+ issueType?: undefined;
281
+ deleteSubtasks?: undefined;
282
+ body?: undefined;
283
+ };
284
+ required: string[];
285
+ };
286
+ } | {
287
+ name: string;
288
+ description: string;
289
+ inputSchema: {
290
+ type: "object";
291
+ properties: {
292
+ issueKey: {
293
+ type: string;
294
+ description: string;
295
+ };
296
+ deleteSubtasks: {
297
+ type: string;
298
+ description: string;
299
+ default: boolean;
300
+ };
301
+ fields?: undefined;
302
+ projectKey?: undefined;
303
+ summary?: undefined;
304
+ issueType?: undefined;
305
+ description?: undefined;
306
+ assignee?: undefined;
307
+ priority?: undefined;
308
+ labels?: undefined;
309
+ body?: undefined;
310
+ };
311
+ required: string[];
312
+ };
313
+ } | {
314
+ name: string;
315
+ description: string;
316
+ inputSchema: {
317
+ type: "object";
318
+ properties: {
319
+ issueKey: {
320
+ type: string;
321
+ description: string;
322
+ };
323
+ body: {
324
+ type: string;
325
+ description: string;
326
+ };
327
+ fields?: undefined;
328
+ projectKey?: undefined;
329
+ summary?: undefined;
330
+ issueType?: undefined;
331
+ description?: undefined;
332
+ assignee?: undefined;
333
+ priority?: undefined;
334
+ labels?: undefined;
335
+ deleteSubtasks?: undefined;
336
+ };
337
+ required: string[];
338
+ };
339
+ } | {
340
+ name: string;
341
+ description: string;
342
+ inputSchema: {
343
+ type: "object";
344
+ properties: {
345
+ issueKey: {
346
+ type: string;
347
+ description: string;
348
+ };
349
+ fields?: undefined;
350
+ projectKey?: undefined;
351
+ summary?: undefined;
352
+ issueType?: undefined;
353
+ description?: undefined;
354
+ assignee?: undefined;
355
+ priority?: undefined;
356
+ labels?: undefined;
357
+ deleteSubtasks?: undefined;
358
+ body?: undefined;
359
+ };
360
+ required: string[];
361
+ };
362
+ })[];
363
+ //# sourceMappingURL=issues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/tools/issues.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;EAMzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;EAM5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;EAE5B,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU;IAE3C;;OAEG;2BAC0B,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC;;;;;;IA8B3D;;OAEG;8BAC6B,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;IA6BjE;;OAEG;8BAC6B,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;IAyBjE;;OAEG;8BAC6B,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;IAmBjE;;OAEG;6BAC4B,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC;;;;;;IAqB/D;;OAEG;8BAC6B,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC;;;;;;EAyBxE;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiJhC,CAAC"}