@filcuk/planka-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 (83) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +180 -0
  3. package/dist/client.d.ts +55 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +193 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/errors.d.ts +39 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +82 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +3 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +100 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/operations/boards.d.ts +39 -0
  16. package/dist/operations/boards.d.ts.map +1 -0
  17. package/dist/operations/boards.js +76 -0
  18. package/dist/operations/boards.js.map +1 -0
  19. package/dist/operations/cards.d.ts +35 -0
  20. package/dist/operations/cards.d.ts.map +1 -0
  21. package/dist/operations/cards.js +70 -0
  22. package/dist/operations/cards.js.map +1 -0
  23. package/dist/operations/comments.d.ts +20 -0
  24. package/dist/operations/comments.d.ts.map +1 -0
  25. package/dist/operations/comments.js +42 -0
  26. package/dist/operations/comments.js.map +1 -0
  27. package/dist/operations/labels.d.ts +32 -0
  28. package/dist/operations/labels.d.ts.map +1 -0
  29. package/dist/operations/labels.js +91 -0
  30. package/dist/operations/labels.js.map +1 -0
  31. package/dist/operations/lists.d.ts +15 -0
  32. package/dist/operations/lists.d.ts.map +1 -0
  33. package/dist/operations/lists.js +35 -0
  34. package/dist/operations/lists.js.map +1 -0
  35. package/dist/operations/projects.d.ts +23 -0
  36. package/dist/operations/projects.d.ts.map +1 -0
  37. package/dist/operations/projects.js +52 -0
  38. package/dist/operations/projects.js.map +1 -0
  39. package/dist/operations/tasks.d.ts +30 -0
  40. package/dist/operations/tasks.d.ts.map +1 -0
  41. package/dist/operations/tasks.js +102 -0
  42. package/dist/operations/tasks.js.map +1 -0
  43. package/dist/schemas/entities.d.ts +307 -0
  44. package/dist/schemas/entities.d.ts.map +1 -0
  45. package/dist/schemas/entities.js +168 -0
  46. package/dist/schemas/entities.js.map +1 -0
  47. package/dist/schemas/requests.d.ts +225 -0
  48. package/dist/schemas/requests.d.ts.map +1 -0
  49. package/dist/schemas/requests.js +87 -0
  50. package/dist/schemas/requests.js.map +1 -0
  51. package/dist/schemas/responses.d.ts +2161 -0
  52. package/dist/schemas/responses.d.ts.map +1 -0
  53. package/dist/schemas/responses.js +68 -0
  54. package/dist/schemas/responses.js.map +1 -0
  55. package/dist/tools/cards.d.ts +401 -0
  56. package/dist/tools/cards.d.ts.map +1 -0
  57. package/dist/tools/cards.js +367 -0
  58. package/dist/tools/cards.js.map +1 -0
  59. package/dist/tools/comments.d.ts +134 -0
  60. package/dist/tools/comments.d.ts.map +1 -0
  61. package/dist/tools/comments.js +109 -0
  62. package/dist/tools/comments.js.map +1 -0
  63. package/dist/tools/index.d.ts +790 -0
  64. package/dist/tools/index.d.ts.map +1 -0
  65. package/dist/tools/index.js +44 -0
  66. package/dist/tools/index.js.map +1 -0
  67. package/dist/tools/labels.d.ts +198 -0
  68. package/dist/tools/labels.d.ts.map +1 -0
  69. package/dist/tools/labels.js +265 -0
  70. package/dist/tools/labels.js.map +1 -0
  71. package/dist/tools/lists.d.ts +117 -0
  72. package/dist/tools/lists.d.ts.map +1 -0
  73. package/dist/tools/lists.js +178 -0
  74. package/dist/tools/lists.js.map +1 -0
  75. package/dist/tools/navigation.d.ts +106 -0
  76. package/dist/tools/navigation.d.ts.map +1 -0
  77. package/dist/tools/navigation.js +151 -0
  78. package/dist/tools/navigation.js.map +1 -0
  79. package/dist/tools/tasks.d.ts +223 -0
  80. package/dist/tools/tasks.d.ts.map +1 -0
  81. package/dist/tools/tasks.js +169 -0
  82. package/dist/tools/tasks.js.map +1 -0
  83. package/package.json +53 -0
@@ -0,0 +1,790 @@
1
+ /**
2
+ * All registered tools.
3
+ */
4
+ export declare const allTools: ({
5
+ name: string;
6
+ description: string;
7
+ inputSchema: {
8
+ type: "object";
9
+ properties: {
10
+ projectId: {
11
+ type: string;
12
+ description: string;
13
+ };
14
+ };
15
+ };
16
+ handler: (params: {
17
+ projectId?: string;
18
+ }) => Promise<{
19
+ content: {
20
+ type: "text";
21
+ text: string;
22
+ }[];
23
+ }>;
24
+ } | {
25
+ name: string;
26
+ description: string;
27
+ inputSchema: {
28
+ type: "object";
29
+ properties: {
30
+ boardId: {
31
+ type: string;
32
+ description: string;
33
+ };
34
+ includeTaskCounts: {
35
+ type: string;
36
+ description: string;
37
+ default: boolean;
38
+ };
39
+ };
40
+ required: string[];
41
+ };
42
+ handler: (params: {
43
+ boardId: string;
44
+ includeTaskCounts?: boolean;
45
+ }) => Promise<{
46
+ content: {
47
+ type: "text";
48
+ text: string;
49
+ }[];
50
+ }>;
51
+ } | {
52
+ name: string;
53
+ description: string;
54
+ inputSchema: {
55
+ type: "object";
56
+ properties: {
57
+ listId: {
58
+ type: string;
59
+ description: string;
60
+ };
61
+ name: {
62
+ type: string;
63
+ description: string;
64
+ };
65
+ description: {
66
+ type: string;
67
+ description: string;
68
+ };
69
+ tasks: {
70
+ type: string;
71
+ items: {
72
+ type: string;
73
+ };
74
+ description: string;
75
+ };
76
+ dueDate: {
77
+ type: string;
78
+ description: string;
79
+ };
80
+ labelIds: {
81
+ type: string;
82
+ items: {
83
+ type: string;
84
+ };
85
+ description: string;
86
+ };
87
+ };
88
+ required: string[];
89
+ };
90
+ handler: (params: {
91
+ listId: string;
92
+ name: string;
93
+ description?: string;
94
+ tasks?: string[];
95
+ dueDate?: string;
96
+ labelIds?: string[];
97
+ }) => Promise<{
98
+ content: {
99
+ type: "text";
100
+ text: string;
101
+ }[];
102
+ isError?: undefined;
103
+ } | {
104
+ content: {
105
+ type: "text";
106
+ text: string;
107
+ }[];
108
+ isError: boolean;
109
+ }>;
110
+ } | {
111
+ name: string;
112
+ description: string;
113
+ inputSchema: {
114
+ type: "object";
115
+ properties: {
116
+ cardId: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ };
121
+ required: string[];
122
+ };
123
+ handler: (params: {
124
+ cardId: string;
125
+ }) => Promise<{
126
+ content: {
127
+ type: "text";
128
+ text: string;
129
+ }[];
130
+ isError?: undefined;
131
+ } | {
132
+ content: {
133
+ type: "text";
134
+ text: string;
135
+ }[];
136
+ isError: boolean;
137
+ }>;
138
+ } | {
139
+ name: string;
140
+ description: string;
141
+ inputSchema: {
142
+ type: "object";
143
+ properties: {
144
+ cardId: {
145
+ type: string;
146
+ description: string;
147
+ };
148
+ name: {
149
+ type: string;
150
+ description: string;
151
+ };
152
+ description: {
153
+ type: string[];
154
+ description: string;
155
+ };
156
+ dueDate: {
157
+ type: string[];
158
+ description: string;
159
+ };
160
+ isCompleted: {
161
+ type: string;
162
+ description: string;
163
+ };
164
+ };
165
+ required: string[];
166
+ };
167
+ handler: (params: {
168
+ cardId: string;
169
+ name?: string;
170
+ description?: string | null;
171
+ dueDate?: string | null;
172
+ isCompleted?: boolean;
173
+ }) => Promise<{
174
+ content: {
175
+ type: "text";
176
+ text: string;
177
+ }[];
178
+ isError?: undefined;
179
+ } | {
180
+ content: {
181
+ type: "text";
182
+ text: string;
183
+ }[];
184
+ isError: boolean;
185
+ }>;
186
+ } | {
187
+ name: string;
188
+ description: string;
189
+ inputSchema: {
190
+ type: "object";
191
+ properties: {
192
+ cardId: {
193
+ type: string;
194
+ description: string;
195
+ };
196
+ listId: {
197
+ type: string;
198
+ description: string;
199
+ };
200
+ position: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ };
205
+ required: string[];
206
+ };
207
+ handler: (params: {
208
+ cardId: string;
209
+ listId: string;
210
+ position?: number;
211
+ }) => Promise<{
212
+ content: {
213
+ type: "text";
214
+ text: string;
215
+ }[];
216
+ isError?: undefined;
217
+ } | {
218
+ content: {
219
+ type: "text";
220
+ text: string;
221
+ }[];
222
+ isError: boolean;
223
+ }>;
224
+ } | {
225
+ name: string;
226
+ description: string;
227
+ inputSchema: {
228
+ type: "object";
229
+ properties: {
230
+ cardId: {
231
+ type: string;
232
+ description: string;
233
+ };
234
+ tasks: {
235
+ type: string;
236
+ items: {
237
+ type: string;
238
+ };
239
+ minItems: number;
240
+ description: string;
241
+ };
242
+ };
243
+ required: string[];
244
+ };
245
+ handler: (params: {
246
+ cardId: string;
247
+ tasks: string[];
248
+ }) => Promise<{
249
+ content: {
250
+ type: "text";
251
+ text: string;
252
+ }[];
253
+ isError?: undefined;
254
+ } | {
255
+ content: {
256
+ type: "text";
257
+ text: string;
258
+ }[];
259
+ isError: boolean;
260
+ }>;
261
+ } | {
262
+ name: string;
263
+ description: string;
264
+ inputSchema: {
265
+ type: "object";
266
+ properties: {
267
+ taskId: {
268
+ type: string;
269
+ description: string;
270
+ };
271
+ name: {
272
+ type: string;
273
+ description: string;
274
+ };
275
+ isCompleted: {
276
+ type: string;
277
+ description: string;
278
+ };
279
+ };
280
+ required: string[];
281
+ };
282
+ handler: (params: {
283
+ taskId: string;
284
+ name?: string;
285
+ isCompleted?: boolean;
286
+ }) => Promise<{
287
+ content: {
288
+ type: "text";
289
+ text: string;
290
+ }[];
291
+ isError?: undefined;
292
+ } | {
293
+ content: {
294
+ type: "text";
295
+ text: string;
296
+ }[];
297
+ isError: boolean;
298
+ }>;
299
+ } | {
300
+ name: string;
301
+ description: string;
302
+ inputSchema: {
303
+ type: "object";
304
+ properties: {
305
+ taskId: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ };
310
+ required: string[];
311
+ };
312
+ handler: (params: {
313
+ taskId: string;
314
+ }) => Promise<{
315
+ content: {
316
+ type: "text";
317
+ text: string;
318
+ }[];
319
+ isError?: undefined;
320
+ } | {
321
+ content: {
322
+ type: "text";
323
+ text: string;
324
+ }[];
325
+ isError: boolean;
326
+ }>;
327
+ } | {
328
+ name: string;
329
+ description: string;
330
+ inputSchema: {
331
+ type: "object";
332
+ properties: {
333
+ action: {
334
+ type: string;
335
+ enum: string[];
336
+ description: string;
337
+ };
338
+ boardId: {
339
+ type: string;
340
+ description: string;
341
+ };
342
+ labelId: {
343
+ type: string;
344
+ description: string;
345
+ };
346
+ name: {
347
+ type: string;
348
+ description: string;
349
+ };
350
+ color: {
351
+ type: string;
352
+ description: string;
353
+ };
354
+ };
355
+ required: string[];
356
+ };
357
+ handler: (params: {
358
+ action: "create" | "update" | "delete";
359
+ boardId?: string;
360
+ labelId?: string;
361
+ name?: string;
362
+ color?: string;
363
+ }) => Promise<{
364
+ content: {
365
+ type: "text";
366
+ text: string;
367
+ }[];
368
+ isError: boolean;
369
+ } | {
370
+ content: {
371
+ type: "text";
372
+ text: string;
373
+ }[];
374
+ isError?: undefined;
375
+ }>;
376
+ } | {
377
+ name: string;
378
+ description: string;
379
+ inputSchema: {
380
+ type: "object";
381
+ properties: {
382
+ cardId: {
383
+ type: string;
384
+ description: string;
385
+ };
386
+ addLabelIds: {
387
+ type: string;
388
+ items: {
389
+ type: string;
390
+ };
391
+ description: string;
392
+ };
393
+ removeLabelIds: {
394
+ type: string;
395
+ items: {
396
+ type: string;
397
+ };
398
+ description: string;
399
+ };
400
+ };
401
+ required: string[];
402
+ };
403
+ handler: (params: {
404
+ cardId: string;
405
+ addLabelIds?: string[];
406
+ removeLabelIds?: string[];
407
+ }) => Promise<{
408
+ content: {
409
+ type: "text";
410
+ text: string;
411
+ }[];
412
+ isError?: undefined;
413
+ } | {
414
+ content: {
415
+ type: "text";
416
+ text: string;
417
+ }[];
418
+ isError: boolean;
419
+ }>;
420
+ } | {
421
+ name: string;
422
+ description: string;
423
+ inputSchema: {
424
+ type: "object";
425
+ properties: {
426
+ cardId: {
427
+ type: string;
428
+ description: string;
429
+ };
430
+ text: {
431
+ type: string;
432
+ description: string;
433
+ };
434
+ };
435
+ required: string[];
436
+ };
437
+ handler: (params: {
438
+ cardId: string;
439
+ text: string;
440
+ }) => Promise<{
441
+ content: {
442
+ type: "text";
443
+ text: string;
444
+ }[];
445
+ isError?: undefined;
446
+ } | {
447
+ content: {
448
+ type: "text";
449
+ text: string;
450
+ }[];
451
+ isError: boolean;
452
+ }>;
453
+ } | {
454
+ name: string;
455
+ description: string;
456
+ inputSchema: {
457
+ type: "object";
458
+ properties: {
459
+ action: {
460
+ type: string;
461
+ enum: string[];
462
+ description: string;
463
+ };
464
+ boardId: {
465
+ type: string;
466
+ description: string;
467
+ };
468
+ listId: {
469
+ type: string;
470
+ description: string;
471
+ };
472
+ name: {
473
+ type: string;
474
+ description: string;
475
+ };
476
+ position: {
477
+ type: string;
478
+ description: string;
479
+ };
480
+ type: {
481
+ type: string;
482
+ enum: string[];
483
+ description: string;
484
+ };
485
+ };
486
+ required: string[];
487
+ };
488
+ handler: (params: {
489
+ action: "create" | "update" | "delete";
490
+ boardId?: string;
491
+ listId?: string;
492
+ name?: string;
493
+ position?: number;
494
+ type?: "active" | "closed" | "archive" | "trash";
495
+ }) => Promise<{
496
+ content: {
497
+ type: "text";
498
+ text: string;
499
+ }[];
500
+ isError: boolean;
501
+ } | {
502
+ content: {
503
+ type: "text";
504
+ text: string;
505
+ }[];
506
+ isError?: undefined;
507
+ }>;
508
+ })[];
509
+ /**
510
+ * Tool type definition.
511
+ */
512
+ export interface Tool {
513
+ name: string;
514
+ description: string;
515
+ inputSchema: {
516
+ type: "object";
517
+ properties: Record<string, unknown>;
518
+ required?: string[];
519
+ };
520
+ handler: (params: unknown) => Promise<{
521
+ content: Array<{
522
+ type: "text";
523
+ text: string;
524
+ }>;
525
+ isError?: boolean;
526
+ }>;
527
+ }
528
+ /**
529
+ * Get a tool by name.
530
+ */
531
+ export declare function getTool(name: string): Tool | undefined;
532
+ /**
533
+ * Get all tool definitions (for MCP listTools).
534
+ */
535
+ export declare function getToolDefinitions(): {
536
+ name: string;
537
+ description: string;
538
+ inputSchema: {
539
+ type: "object";
540
+ properties: {
541
+ projectId: {
542
+ type: string;
543
+ description: string;
544
+ };
545
+ };
546
+ } | {
547
+ type: "object";
548
+ properties: {
549
+ boardId: {
550
+ type: string;
551
+ description: string;
552
+ };
553
+ includeTaskCounts: {
554
+ type: string;
555
+ description: string;
556
+ default: boolean;
557
+ };
558
+ };
559
+ required: string[];
560
+ } | {
561
+ type: "object";
562
+ properties: {
563
+ listId: {
564
+ type: string;
565
+ description: string;
566
+ };
567
+ name: {
568
+ type: string;
569
+ description: string;
570
+ };
571
+ description: {
572
+ type: string;
573
+ description: string;
574
+ };
575
+ tasks: {
576
+ type: string;
577
+ items: {
578
+ type: string;
579
+ };
580
+ description: string;
581
+ };
582
+ dueDate: {
583
+ type: string;
584
+ description: string;
585
+ };
586
+ labelIds: {
587
+ type: string;
588
+ items: {
589
+ type: string;
590
+ };
591
+ description: string;
592
+ };
593
+ };
594
+ required: string[];
595
+ } | {
596
+ type: "object";
597
+ properties: {
598
+ cardId: {
599
+ type: string;
600
+ description: string;
601
+ };
602
+ };
603
+ required: string[];
604
+ } | {
605
+ type: "object";
606
+ properties: {
607
+ cardId: {
608
+ type: string;
609
+ description: string;
610
+ };
611
+ name: {
612
+ type: string;
613
+ description: string;
614
+ };
615
+ description: {
616
+ type: string[];
617
+ description: string;
618
+ };
619
+ dueDate: {
620
+ type: string[];
621
+ description: string;
622
+ };
623
+ isCompleted: {
624
+ type: string;
625
+ description: string;
626
+ };
627
+ };
628
+ required: string[];
629
+ } | {
630
+ type: "object";
631
+ properties: {
632
+ cardId: {
633
+ type: string;
634
+ description: string;
635
+ };
636
+ listId: {
637
+ type: string;
638
+ description: string;
639
+ };
640
+ position: {
641
+ type: string;
642
+ description: string;
643
+ };
644
+ };
645
+ required: string[];
646
+ } | {
647
+ type: "object";
648
+ properties: {
649
+ cardId: {
650
+ type: string;
651
+ description: string;
652
+ };
653
+ tasks: {
654
+ type: string;
655
+ items: {
656
+ type: string;
657
+ };
658
+ minItems: number;
659
+ description: string;
660
+ };
661
+ };
662
+ required: string[];
663
+ } | {
664
+ type: "object";
665
+ properties: {
666
+ taskId: {
667
+ type: string;
668
+ description: string;
669
+ };
670
+ name: {
671
+ type: string;
672
+ description: string;
673
+ };
674
+ isCompleted: {
675
+ type: string;
676
+ description: string;
677
+ };
678
+ };
679
+ required: string[];
680
+ } | {
681
+ type: "object";
682
+ properties: {
683
+ taskId: {
684
+ type: string;
685
+ description: string;
686
+ };
687
+ };
688
+ required: string[];
689
+ } | {
690
+ type: "object";
691
+ properties: {
692
+ action: {
693
+ type: string;
694
+ enum: string[];
695
+ description: string;
696
+ };
697
+ boardId: {
698
+ type: string;
699
+ description: string;
700
+ };
701
+ labelId: {
702
+ type: string;
703
+ description: string;
704
+ };
705
+ name: {
706
+ type: string;
707
+ description: string;
708
+ };
709
+ color: {
710
+ type: string;
711
+ description: string;
712
+ };
713
+ };
714
+ required: string[];
715
+ } | {
716
+ type: "object";
717
+ properties: {
718
+ cardId: {
719
+ type: string;
720
+ description: string;
721
+ };
722
+ addLabelIds: {
723
+ type: string;
724
+ items: {
725
+ type: string;
726
+ };
727
+ description: string;
728
+ };
729
+ removeLabelIds: {
730
+ type: string;
731
+ items: {
732
+ type: string;
733
+ };
734
+ description: string;
735
+ };
736
+ };
737
+ required: string[];
738
+ } | {
739
+ type: "object";
740
+ properties: {
741
+ cardId: {
742
+ type: string;
743
+ description: string;
744
+ };
745
+ text: {
746
+ type: string;
747
+ description: string;
748
+ };
749
+ };
750
+ required: string[];
751
+ } | {
752
+ type: "object";
753
+ properties: {
754
+ action: {
755
+ type: string;
756
+ enum: string[];
757
+ description: string;
758
+ };
759
+ boardId: {
760
+ type: string;
761
+ description: string;
762
+ };
763
+ listId: {
764
+ type: string;
765
+ description: string;
766
+ };
767
+ name: {
768
+ type: string;
769
+ description: string;
770
+ };
771
+ position: {
772
+ type: string;
773
+ description: string;
774
+ };
775
+ type: {
776
+ type: string;
777
+ enum: string[];
778
+ description: string;
779
+ };
780
+ };
781
+ required: string[];
782
+ };
783
+ }[];
784
+ export { navigationTools } from "./navigation.js";
785
+ export { cardTools } from "./cards.js";
786
+ export { taskTools } from "./tasks.js";
787
+ export { labelTools } from "./labels.js";
788
+ export { commentTools } from "./comments.js";
789
+ export { listTools } from "./lists.js";
790
+ //# sourceMappingURL=index.d.ts.map