mcdev-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 (87) hide show
  1. package/LICENSE +77 -0
  2. package/README.md +365 -0
  3. package/dist/callgraph/index.d.ts +14 -0
  4. package/dist/callgraph/index.d.ts.map +1 -0
  5. package/dist/callgraph/index.js +201 -0
  6. package/dist/callgraph/index.js.map +1 -0
  7. package/dist/callgraph/query.d.ts +20 -0
  8. package/dist/callgraph/query.d.ts.map +1 -0
  9. package/dist/callgraph/query.js +95 -0
  10. package/dist/callgraph/query.js.map +1 -0
  11. package/dist/cli.d.ts +3 -0
  12. package/dist/cli.d.ts.map +1 -0
  13. package/dist/cli.js +318 -0
  14. package/dist/cli.js.map +1 -0
  15. package/dist/decompiler/download.d.ts +31 -0
  16. package/dist/decompiler/download.d.ts.map +1 -0
  17. package/dist/decompiler/download.js +145 -0
  18. package/dist/decompiler/download.js.map +1 -0
  19. package/dist/decompiler/downloader.d.ts +7 -0
  20. package/dist/decompiler/downloader.d.ts.map +1 -0
  21. package/dist/decompiler/downloader.js +4 -0
  22. package/dist/decompiler/downloader.js.map +1 -0
  23. package/dist/decompiler/index.d.ts +16 -0
  24. package/dist/decompiler/index.d.ts.map +1 -0
  25. package/dist/decompiler/index.js +74 -0
  26. package/dist/decompiler/index.js.map +1 -0
  27. package/dist/decompiler/remapper.d.ts +9 -0
  28. package/dist/decompiler/remapper.d.ts.map +1 -0
  29. package/dist/decompiler/remapper.js +174 -0
  30. package/dist/decompiler/remapper.js.map +1 -0
  31. package/dist/decompiler/tools.d.ts +3 -0
  32. package/dist/decompiler/tools.d.ts.map +1 -0
  33. package/dist/decompiler/tools.js +79 -0
  34. package/dist/decompiler/tools.js.map +1 -0
  35. package/dist/decompiler/vineflower.d.ts +3 -0
  36. package/dist/decompiler/vineflower.d.ts.map +1 -0
  37. package/dist/decompiler/vineflower.js +37 -0
  38. package/dist/decompiler/vineflower.js.map +1 -0
  39. package/dist/index.d.ts +3 -0
  40. package/dist/index.d.ts.map +1 -0
  41. package/dist/index.js +63 -0
  42. package/dist/index.js.map +1 -0
  43. package/dist/indexer/index.d.ts +17 -0
  44. package/dist/indexer/index.d.ts.map +1 -0
  45. package/dist/indexer/index.js +134 -0
  46. package/dist/indexer/index.js.map +1 -0
  47. package/dist/indexer/parser.d.ts +11 -0
  48. package/dist/indexer/parser.d.ts.map +1 -0
  49. package/dist/indexer/parser.js +188 -0
  50. package/dist/indexer/parser.js.map +1 -0
  51. package/dist/indexer/types.d.ts +14 -0
  52. package/dist/indexer/types.d.ts.map +1 -0
  53. package/dist/indexer/types.js +2 -0
  54. package/dist/indexer/types.js.map +1 -0
  55. package/dist/storage/index.d.ts +2 -0
  56. package/dist/storage/index.d.ts.map +1 -0
  57. package/dist/storage/index.js +2 -0
  58. package/dist/storage/index.js.map +1 -0
  59. package/dist/storage/source-store.d.ts +43 -0
  60. package/dist/storage/source-store.d.ts.map +1 -0
  61. package/dist/storage/source-store.js +279 -0
  62. package/dist/storage/source-store.js.map +1 -0
  63. package/dist/tools/index.d.ts +503 -0
  64. package/dist/tools/index.d.ts.map +1 -0
  65. package/dist/tools/index.js +535 -0
  66. package/dist/tools/index.js.map +1 -0
  67. package/dist/utils/config.d.ts +13 -0
  68. package/dist/utils/config.d.ts.map +1 -0
  69. package/dist/utils/config.js +12 -0
  70. package/dist/utils/config.js.map +1 -0
  71. package/dist/utils/paths.d.ts +30 -0
  72. package/dist/utils/paths.d.ts.map +1 -0
  73. package/dist/utils/paths.js +131 -0
  74. package/dist/utils/paths.js.map +1 -0
  75. package/dist/utils/types.d.ts +79 -0
  76. package/dist/utils/types.d.ts.map +1 -0
  77. package/dist/utils/types.js +2 -0
  78. package/dist/utils/types.js.map +1 -0
  79. package/dist/utils/version-manifest.d.ts +10 -0
  80. package/dist/utils/version-manifest.d.ts.map +1 -0
  81. package/dist/utils/version-manifest.js +64 -0
  82. package/dist/utils/version-manifest.js.map +1 -0
  83. package/dist/version-manager.d.ts +11 -0
  84. package/dist/version-manager.d.ts.map +1 -0
  85. package/dist/version-manager.js +29 -0
  86. package/dist/version-manager.js.map +1 -0
  87. package/package.json +64 -0
@@ -0,0 +1,503 @@
1
+ export declare const mcSetVersionTool: {
2
+ name: string;
3
+ description: string;
4
+ inputSchema: {
5
+ type: "object";
6
+ properties: {
7
+ version: {
8
+ type: string;
9
+ description: string;
10
+ };
11
+ };
12
+ required: string[];
13
+ };
14
+ handler: (args: {
15
+ version: string;
16
+ }) => Promise<{
17
+ content: {
18
+ type: "text";
19
+ text: string;
20
+ }[];
21
+ }>;
22
+ };
23
+ export declare const mcListVersionsTool: {
24
+ name: string;
25
+ description: string;
26
+ inputSchema: {
27
+ type: "object";
28
+ properties: {};
29
+ required: never[];
30
+ };
31
+ handler: () => Promise<{
32
+ content: {
33
+ type: "text";
34
+ text: string;
35
+ }[];
36
+ }>;
37
+ };
38
+ export declare const mcSearchTool: {
39
+ name: string;
40
+ description: string;
41
+ inputSchema: {
42
+ type: "object";
43
+ properties: {
44
+ query: {
45
+ type: string;
46
+ description: string;
47
+ };
48
+ type: {
49
+ type: string;
50
+ enum: string[];
51
+ description: string;
52
+ };
53
+ version: {
54
+ type: string;
55
+ description: string;
56
+ };
57
+ };
58
+ required: string[];
59
+ };
60
+ handler: (args: {
61
+ query: string;
62
+ type?: "class" | "method" | "field";
63
+ version?: string;
64
+ }) => Promise<{
65
+ content: {
66
+ type: "text";
67
+ text: string;
68
+ }[];
69
+ }>;
70
+ };
71
+ export declare const mcGetClassTool: {
72
+ name: string;
73
+ description: string;
74
+ inputSchema: {
75
+ type: "object";
76
+ properties: {
77
+ className: {
78
+ type: string;
79
+ description: string;
80
+ };
81
+ version: {
82
+ type: string;
83
+ description: string;
84
+ };
85
+ };
86
+ required: string[];
87
+ };
88
+ handler: (args: {
89
+ className: string;
90
+ version?: string;
91
+ }) => Promise<{
92
+ content: {
93
+ type: "text";
94
+ text: string;
95
+ }[];
96
+ }>;
97
+ };
98
+ export declare const mcGetMethodTool: {
99
+ name: string;
100
+ description: string;
101
+ inputSchema: {
102
+ type: "object";
103
+ properties: {
104
+ className: {
105
+ type: string;
106
+ description: string;
107
+ };
108
+ methodName: {
109
+ type: string;
110
+ description: string;
111
+ };
112
+ version: {
113
+ type: string;
114
+ description: string;
115
+ };
116
+ };
117
+ required: string[];
118
+ };
119
+ handler: (args: {
120
+ className: string;
121
+ methodName: string;
122
+ version?: string;
123
+ }) => Promise<{
124
+ content: {
125
+ type: "text";
126
+ text: string;
127
+ }[];
128
+ }>;
129
+ };
130
+ export declare const mcListClassesTool: {
131
+ name: string;
132
+ description: string;
133
+ inputSchema: {
134
+ type: "object";
135
+ properties: {
136
+ packagePath: {
137
+ type: string;
138
+ description: string;
139
+ };
140
+ version: {
141
+ type: string;
142
+ description: string;
143
+ };
144
+ };
145
+ required: string[];
146
+ };
147
+ handler: (args: {
148
+ packagePath: string;
149
+ version?: string;
150
+ }) => Promise<{
151
+ content: {
152
+ type: "text";
153
+ text: string;
154
+ }[];
155
+ }>;
156
+ };
157
+ export declare const mcListPackagesTool: {
158
+ name: string;
159
+ description: string;
160
+ inputSchema: {
161
+ type: "object";
162
+ properties: {
163
+ namespace: {
164
+ type: string;
165
+ enum: string[];
166
+ description: string;
167
+ };
168
+ version: {
169
+ type: string;
170
+ description: string;
171
+ };
172
+ };
173
+ required: never[];
174
+ };
175
+ handler: (args: {
176
+ namespace?: "minecraft" | "fabric";
177
+ version?: string;
178
+ }) => Promise<{
179
+ content: {
180
+ type: "text";
181
+ text: string;
182
+ }[];
183
+ }>;
184
+ };
185
+ export declare const mcFindHierarchyTool: {
186
+ name: string;
187
+ description: string;
188
+ inputSchema: {
189
+ type: "object";
190
+ properties: {
191
+ className: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ direction: {
196
+ type: string;
197
+ enum: string[];
198
+ description: string;
199
+ };
200
+ version: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ };
205
+ required: string[];
206
+ };
207
+ handler: (args: {
208
+ className: string;
209
+ direction: "subclasses" | "implementors";
210
+ version?: string;
211
+ }) => Promise<{
212
+ content: {
213
+ type: "text";
214
+ text: string;
215
+ }[];
216
+ }>;
217
+ };
218
+ export declare const mcFindRefsTool: {
219
+ name: string;
220
+ description: string;
221
+ inputSchema: {
222
+ type: "object";
223
+ properties: {
224
+ className: {
225
+ type: string;
226
+ description: string;
227
+ };
228
+ methodName: {
229
+ type: string;
230
+ description: string;
231
+ };
232
+ direction: {
233
+ type: string;
234
+ enum: string[];
235
+ description: string;
236
+ };
237
+ version: {
238
+ type: string;
239
+ description: string;
240
+ };
241
+ };
242
+ required: string[];
243
+ };
244
+ handler: (args: {
245
+ className: string;
246
+ methodName: string;
247
+ direction: "callers" | "callees";
248
+ version?: string;
249
+ }) => Promise<{
250
+ content: {
251
+ type: "text";
252
+ text: string;
253
+ }[];
254
+ }>;
255
+ };
256
+ export declare const allTools: ({
257
+ name: string;
258
+ description: string;
259
+ inputSchema: {
260
+ type: "object";
261
+ properties: {
262
+ version: {
263
+ type: string;
264
+ description: string;
265
+ };
266
+ };
267
+ required: string[];
268
+ };
269
+ handler: (args: {
270
+ version: string;
271
+ }) => Promise<{
272
+ content: {
273
+ type: "text";
274
+ text: string;
275
+ }[];
276
+ }>;
277
+ } | {
278
+ name: string;
279
+ description: string;
280
+ inputSchema: {
281
+ type: "object";
282
+ properties: {};
283
+ required: never[];
284
+ };
285
+ handler: () => Promise<{
286
+ content: {
287
+ type: "text";
288
+ text: string;
289
+ }[];
290
+ }>;
291
+ } | {
292
+ name: string;
293
+ description: string;
294
+ inputSchema: {
295
+ type: "object";
296
+ properties: {
297
+ query: {
298
+ type: string;
299
+ description: string;
300
+ };
301
+ type: {
302
+ type: string;
303
+ enum: string[];
304
+ description: string;
305
+ };
306
+ version: {
307
+ type: string;
308
+ description: string;
309
+ };
310
+ };
311
+ required: string[];
312
+ };
313
+ handler: (args: {
314
+ query: string;
315
+ type?: "class" | "method" | "field";
316
+ version?: string;
317
+ }) => Promise<{
318
+ content: {
319
+ type: "text";
320
+ text: string;
321
+ }[];
322
+ }>;
323
+ } | {
324
+ name: string;
325
+ description: string;
326
+ inputSchema: {
327
+ type: "object";
328
+ properties: {
329
+ className: {
330
+ type: string;
331
+ description: string;
332
+ };
333
+ version: {
334
+ type: string;
335
+ description: string;
336
+ };
337
+ };
338
+ required: string[];
339
+ };
340
+ handler: (args: {
341
+ className: string;
342
+ version?: string;
343
+ }) => Promise<{
344
+ content: {
345
+ type: "text";
346
+ text: string;
347
+ }[];
348
+ }>;
349
+ } | {
350
+ name: string;
351
+ description: string;
352
+ inputSchema: {
353
+ type: "object";
354
+ properties: {
355
+ className: {
356
+ type: string;
357
+ description: string;
358
+ };
359
+ methodName: {
360
+ type: string;
361
+ description: string;
362
+ };
363
+ version: {
364
+ type: string;
365
+ description: string;
366
+ };
367
+ };
368
+ required: string[];
369
+ };
370
+ handler: (args: {
371
+ className: string;
372
+ methodName: string;
373
+ version?: string;
374
+ }) => Promise<{
375
+ content: {
376
+ type: "text";
377
+ text: string;
378
+ }[];
379
+ }>;
380
+ } | {
381
+ name: string;
382
+ description: string;
383
+ inputSchema: {
384
+ type: "object";
385
+ properties: {
386
+ packagePath: {
387
+ type: string;
388
+ description: string;
389
+ };
390
+ version: {
391
+ type: string;
392
+ description: string;
393
+ };
394
+ };
395
+ required: string[];
396
+ };
397
+ handler: (args: {
398
+ packagePath: string;
399
+ version?: string;
400
+ }) => Promise<{
401
+ content: {
402
+ type: "text";
403
+ text: string;
404
+ }[];
405
+ }>;
406
+ } | {
407
+ name: string;
408
+ description: string;
409
+ inputSchema: {
410
+ type: "object";
411
+ properties: {
412
+ namespace: {
413
+ type: string;
414
+ enum: string[];
415
+ description: string;
416
+ };
417
+ version: {
418
+ type: string;
419
+ description: string;
420
+ };
421
+ };
422
+ required: never[];
423
+ };
424
+ handler: (args: {
425
+ namespace?: "minecraft" | "fabric";
426
+ version?: string;
427
+ }) => Promise<{
428
+ content: {
429
+ type: "text";
430
+ text: string;
431
+ }[];
432
+ }>;
433
+ } | {
434
+ name: string;
435
+ description: string;
436
+ inputSchema: {
437
+ type: "object";
438
+ properties: {
439
+ className: {
440
+ type: string;
441
+ description: string;
442
+ };
443
+ direction: {
444
+ type: string;
445
+ enum: string[];
446
+ description: string;
447
+ };
448
+ version: {
449
+ type: string;
450
+ description: string;
451
+ };
452
+ };
453
+ required: string[];
454
+ };
455
+ handler: (args: {
456
+ className: string;
457
+ direction: "subclasses" | "implementors";
458
+ version?: string;
459
+ }) => Promise<{
460
+ content: {
461
+ type: "text";
462
+ text: string;
463
+ }[];
464
+ }>;
465
+ } | {
466
+ name: string;
467
+ description: string;
468
+ inputSchema: {
469
+ type: "object";
470
+ properties: {
471
+ className: {
472
+ type: string;
473
+ description: string;
474
+ };
475
+ methodName: {
476
+ type: string;
477
+ description: string;
478
+ };
479
+ direction: {
480
+ type: string;
481
+ enum: string[];
482
+ description: string;
483
+ };
484
+ version: {
485
+ type: string;
486
+ description: string;
487
+ };
488
+ };
489
+ required: string[];
490
+ };
491
+ handler: (args: {
492
+ className: string;
493
+ methodName: string;
494
+ direction: "callers" | "callees";
495
+ version?: string;
496
+ }) => Promise<{
497
+ content: {
498
+ type: "text";
499
+ text: string;
500
+ }[];
501
+ }>;
502
+ })[];
503
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAyDA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;oBAcL;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;;;CA0C1C,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;CAoD9B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;oBAuBD;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,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