mcp-code-context 3.6.2 → 3.7.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 (181) hide show
  1. package/CHANGELOG.md +140 -268
  2. package/INSTRUCTIONS.md +31 -12
  3. package/README.md +223 -107
  4. package/SECURITY.md +55 -21
  5. package/dist/src/core/cacheManager.d.ts +4 -5
  6. package/dist/src/core/cacheManager.js +49 -33
  7. package/dist/src/core/cacheManager.js.map +1 -1
  8. package/dist/src/core/engine.d.ts +1 -1
  9. package/dist/src/core/engine.js +3 -3
  10. package/dist/src/core/engine.js.map +1 -1
  11. package/dist/src/core/indexManager.d.ts +58 -0
  12. package/dist/src/core/indexManager.js +252 -0
  13. package/dist/src/core/indexManager.js.map +1 -0
  14. package/dist/src/core/indexManagerQueries.d.ts +14 -0
  15. package/dist/src/core/indexManagerQueries.js +95 -0
  16. package/dist/src/core/indexManagerQueries.js.map +1 -0
  17. package/dist/src/core/sessionManager.d.ts +117 -0
  18. package/dist/src/core/sessionManager.js +231 -0
  19. package/dist/src/core/sessionManager.js.map +1 -0
  20. package/dist/src/core/validator.d.ts +1 -1
  21. package/dist/src/core/validator.js +18 -10
  22. package/dist/src/core/validator.js.map +1 -1
  23. package/dist/src/index.d.ts +1 -13
  24. package/dist/src/index.js +25 -999
  25. package/dist/src/index.js.map +1 -1
  26. package/dist/src/operations/astTransform.d.ts +38 -0
  27. package/dist/src/operations/astTransform.js +239 -0
  28. package/dist/src/operations/astTransform.js.map +1 -0
  29. package/dist/src/operations/compress.d.ts +5 -3
  30. package/dist/src/operations/compress.js +73 -7
  31. package/dist/src/operations/compress.js.map +1 -1
  32. package/dist/src/operations/confirmationStore.d.ts +35 -8
  33. package/dist/src/operations/confirmationStore.js +112 -14
  34. package/dist/src/operations/confirmationStore.js.map +1 -1
  35. package/dist/src/operations/impactAnalysis.d.ts +9 -0
  36. package/dist/src/operations/impactAnalysis.js +61 -0
  37. package/dist/src/operations/impactAnalysis.js.map +1 -0
  38. package/dist/src/operations/pendingStore.d.ts +51 -0
  39. package/dist/src/operations/pendingStore.js +201 -0
  40. package/dist/src/operations/pendingStore.js.map +1 -0
  41. package/dist/src/operations/pendingStoreInit.d.ts +6 -0
  42. package/dist/src/operations/pendingStoreInit.js +42 -0
  43. package/dist/src/operations/pendingStoreInit.js.map +1 -0
  44. package/dist/src/operations/read.d.ts +6 -92
  45. package/dist/src/operations/read.js +4 -445
  46. package/dist/src/operations/read.js.map +1 -1
  47. package/dist/src/operations/readCore.d.ts +33 -0
  48. package/dist/src/operations/readCore.js +142 -0
  49. package/dist/src/operations/readCore.js.map +1 -0
  50. package/dist/src/operations/rename.d.ts +13 -0
  51. package/dist/src/operations/rename.js +130 -0
  52. package/dist/src/operations/rename.js.map +1 -0
  53. package/dist/src/operations/searchOperation.d.ts +16 -0
  54. package/dist/src/operations/searchOperation.js +113 -0
  55. package/dist/src/operations/searchOperation.js.map +1 -0
  56. package/dist/src/operations/symbolQuery.d.ts +38 -0
  57. package/dist/src/operations/symbolQuery.js +194 -0
  58. package/dist/src/operations/symbolQuery.js.map +1 -0
  59. package/dist/src/operations/write.d.ts +11 -14
  60. package/dist/src/operations/write.js +6 -125
  61. package/dist/src/operations/write.js.map +1 -1
  62. package/dist/src/parsers/base.d.ts +1 -1
  63. package/dist/src/parsers/base.js +1 -1
  64. package/dist/src/parsers/csharp.d.ts +12 -0
  65. package/dist/src/parsers/csharp.js +67 -0
  66. package/dist/src/parsers/csharp.js.map +1 -0
  67. package/dist/src/parsers/dartTreeSitter.d.ts +1 -1
  68. package/dist/src/parsers/dartTreeSitter.js +1 -1
  69. package/dist/src/parsers/go.d.ts +11 -0
  70. package/dist/src/parsers/go.js +74 -0
  71. package/dist/src/parsers/go.js.map +1 -0
  72. package/dist/src/parsers/java.d.ts +12 -0
  73. package/dist/src/parsers/java.js +62 -0
  74. package/dist/src/parsers/java.js.map +1 -0
  75. package/dist/src/parsers/kotlin.d.ts +12 -0
  76. package/dist/src/parsers/kotlin.js +75 -0
  77. package/dist/src/parsers/kotlin.js.map +1 -0
  78. package/dist/src/parsers/php.d.ts +1 -1
  79. package/dist/src/parsers/php.js +1 -1
  80. package/dist/src/parsers/python.d.ts +1 -1
  81. package/dist/src/parsers/python.js +1 -1
  82. package/dist/src/parsers/registry.d.ts +1 -1
  83. package/dist/src/parsers/registry.js +63 -2
  84. package/dist/src/parsers/registry.js.map +1 -1
  85. package/dist/src/parsers/ruby.d.ts +12 -0
  86. package/dist/src/parsers/ruby.js +73 -0
  87. package/dist/src/parsers/ruby.js.map +1 -0
  88. package/dist/src/parsers/rust.d.ts +12 -0
  89. package/dist/src/parsers/rust.js +66 -0
  90. package/dist/src/parsers/rust.js.map +1 -0
  91. package/dist/src/parsers/typescript.d.ts +1 -1
  92. package/dist/src/parsers/typescript.js +28 -38
  93. package/dist/src/parsers/typescript.js.map +1 -1
  94. package/dist/src/tools/adminHandlers.d.ts +67 -0
  95. package/dist/src/tools/adminHandlers.js +129 -0
  96. package/dist/src/tools/adminHandlers.js.map +1 -0
  97. package/dist/src/tools/context.d.ts +9 -0
  98. package/dist/src/tools/context.js +21 -0
  99. package/dist/src/tools/context.js.map +1 -0
  100. package/dist/src/tools/handlers.d.ts +4 -0
  101. package/dist/src/tools/handlers.js +5 -0
  102. package/dist/src/tools/handlers.js.map +1 -0
  103. package/dist/src/tools/pipeline.d.ts +6 -0
  104. package/dist/src/tools/pipeline.js +100 -0
  105. package/dist/src/tools/pipeline.js.map +1 -0
  106. package/dist/src/tools/readHandlers.d.ts +55 -0
  107. package/dist/src/tools/readHandlers.js +220 -0
  108. package/dist/src/tools/readHandlers.js.map +1 -0
  109. package/dist/src/tools/toolDefinitions.d.ts +1037 -0
  110. package/dist/src/tools/toolDefinitions.js +13 -0
  111. package/dist/src/tools/toolDefinitions.js.map +1 -0
  112. package/dist/src/tools/toolDefinitionsAdmin.d.ts +89 -0
  113. package/dist/src/tools/toolDefinitionsAdmin.js +99 -0
  114. package/dist/src/tools/toolDefinitionsAdmin.js.map +1 -0
  115. package/dist/src/tools/toolDefinitionsCore.d.ts +949 -0
  116. package/dist/src/tools/toolDefinitionsCore.js +267 -0
  117. package/dist/src/tools/toolDefinitionsCore.js.map +1 -0
  118. package/dist/src/tools/writeHandlers.d.ts +37 -0
  119. package/dist/src/tools/writeHandlers.js +199 -0
  120. package/dist/src/tools/writeHandlers.js.map +1 -0
  121. package/dist/src/utils/appDir.d.ts +19 -0
  122. package/dist/src/utils/appDir.js +50 -0
  123. package/dist/src/utils/appDir.js.map +1 -0
  124. package/dist/src/utils/auditLogWriter.d.ts +9 -0
  125. package/dist/src/utils/auditLogWriter.js +49 -0
  126. package/dist/src/utils/auditLogWriter.js.map +1 -0
  127. package/dist/src/utils/auditLogger.d.ts +1 -10
  128. package/dist/src/utils/auditLogger.js +14 -109
  129. package/dist/src/utils/auditLogger.js.map +1 -1
  130. package/dist/src/utils/auditQuery.d.ts +23 -0
  131. package/dist/src/utils/auditQuery.js +67 -0
  132. package/dist/src/utils/auditQuery.js.map +1 -0
  133. package/dist/src/utils/backupManager.d.ts +2 -2
  134. package/dist/src/utils/backupManager.js +29 -12
  135. package/dist/src/utils/backupManager.js.map +1 -1
  136. package/dist/src/utils/constants.d.ts +1 -1
  137. package/dist/src/utils/constants.js +8 -1
  138. package/dist/src/utils/constants.js.map +1 -1
  139. package/dist/src/utils/diff.d.ts +12 -1
  140. package/dist/src/utils/diff.js +41 -1
  141. package/dist/src/utils/diff.js.map +1 -1
  142. package/dist/src/utils/fileLock.d.ts +7 -2
  143. package/dist/src/utils/fileLock.js +14 -11
  144. package/dist/src/utils/fileLock.js.map +1 -1
  145. package/dist/src/utils/fileWalker.d.ts +1 -1
  146. package/dist/src/utils/fileWalker.js +1 -1
  147. package/dist/src/utils/fileWatcher.d.ts +1 -1
  148. package/dist/src/utils/fileWatcher.js +1 -1
  149. package/dist/src/utils/fuzzySearch.d.ts +1 -1
  150. package/dist/src/utils/fuzzySearch.js +1 -1
  151. package/dist/src/utils/logger.d.ts +1 -1
  152. package/dist/src/utils/logger.js +2 -2
  153. package/dist/src/utils/logger.js.map +1 -1
  154. package/dist/src/utils/rateLimiter.d.ts +9 -1
  155. package/dist/src/utils/rateLimiter.js +12 -1
  156. package/dist/src/utils/rateLimiter.js.map +1 -1
  157. package/dist/src/utils/regexValidator.d.ts +12 -0
  158. package/dist/src/utils/regexValidator.js +48 -0
  159. package/dist/src/utils/regexValidator.js.map +1 -0
  160. package/dist/src/utils/safeRegex.d.ts +2 -92
  161. package/dist/src/utils/safeRegex.js +41 -222
  162. package/dist/src/utils/safeRegex.js.map +1 -1
  163. package/dist/src/utils/safeRegexApi.d.ts +56 -0
  164. package/dist/src/utils/safeRegexApi.js +99 -0
  165. package/dist/src/utils/safeRegexApi.js.map +1 -0
  166. package/dist/src/utils/safeRegexPool.d.ts +7 -0
  167. package/dist/src/utils/safeRegexPool.js +102 -0
  168. package/dist/src/utils/safeRegexPool.js.map +1 -0
  169. package/dist/src/utils/searchTools.js +6 -6
  170. package/dist/src/utils/searchTools.js.map +1 -1
  171. package/dist/src/utils/streaming.d.ts +4 -3
  172. package/dist/src/utils/streaming.js +1 -1
  173. package/dist/src/utils/streaming.js.map +1 -1
  174. package/dist/src/utils/telemetry.d.ts +1 -1
  175. package/dist/src/utils/telemetry.js +1 -1
  176. package/dist/src/utils/toctou.d.ts +7 -0
  177. package/dist/src/utils/toctou.js +24 -0
  178. package/dist/src/utils/toctou.js.map +1 -0
  179. package/llms.txt +199 -31
  180. package/package.json +2 -2
  181. package/scripts/replace-version.js +0 -59
@@ -0,0 +1,949 @@
1
+ /** Core MCP tool schemas (read + write) */
2
+ export declare const CORE_TOOLS: ({
3
+ name: string;
4
+ description: string;
5
+ inputSchema: {
6
+ type: "object";
7
+ properties: {
8
+ directoryPath: {
9
+ type: string;
10
+ description: string;
11
+ };
12
+ projectRoot: {
13
+ type: string;
14
+ description: string;
15
+ };
16
+ format: {
17
+ type: string;
18
+ enum: string[];
19
+ description: string;
20
+ };
21
+ filePath?: undefined;
22
+ symbolName?: undefined;
23
+ className?: undefined;
24
+ rootDir?: undefined;
25
+ startLine?: undefined;
26
+ endLine?: undefined;
27
+ aroundPattern?: undefined;
28
+ contextLines?: undefined;
29
+ pattern?: undefined;
30
+ fileExtensions?: undefined;
31
+ excludeDirs?: undefined;
32
+ maxResults?: undefined;
33
+ startIndex?: undefined;
34
+ fuzzyMatch?: undefined;
35
+ fuzzyThreshold?: undefined;
36
+ newContent?: undefined;
37
+ confirm?: undefined;
38
+ confirmationToken?: undefined;
39
+ diffFormat?: undefined;
40
+ code?: undefined;
41
+ anchorSymbol?: undefined;
42
+ position?: undefined;
43
+ force?: undefined;
44
+ oldName?: undefined;
45
+ newName?: undefined;
46
+ transform?: undefined;
47
+ query?: undefined;
48
+ fuzzy?: undefined;
49
+ types?: undefined;
50
+ reads?: undefined;
51
+ };
52
+ required: string[];
53
+ };
54
+ } | {
55
+ name: string;
56
+ description: string;
57
+ inputSchema: {
58
+ type: "object";
59
+ properties: {
60
+ filePath: {
61
+ type: string;
62
+ description: string;
63
+ };
64
+ projectRoot: {
65
+ type: string;
66
+ description: string;
67
+ };
68
+ symbolName: {
69
+ type: string;
70
+ description: string;
71
+ };
72
+ className: {
73
+ type: string;
74
+ description: string;
75
+ };
76
+ directoryPath?: undefined;
77
+ format?: undefined;
78
+ rootDir?: undefined;
79
+ startLine?: undefined;
80
+ endLine?: undefined;
81
+ aroundPattern?: undefined;
82
+ contextLines?: undefined;
83
+ pattern?: undefined;
84
+ fileExtensions?: undefined;
85
+ excludeDirs?: undefined;
86
+ maxResults?: undefined;
87
+ startIndex?: undefined;
88
+ fuzzyMatch?: undefined;
89
+ fuzzyThreshold?: undefined;
90
+ newContent?: undefined;
91
+ confirm?: undefined;
92
+ confirmationToken?: undefined;
93
+ diffFormat?: undefined;
94
+ code?: undefined;
95
+ anchorSymbol?: undefined;
96
+ position?: undefined;
97
+ force?: undefined;
98
+ oldName?: undefined;
99
+ newName?: undefined;
100
+ transform?: undefined;
101
+ query?: undefined;
102
+ fuzzy?: undefined;
103
+ types?: undefined;
104
+ reads?: undefined;
105
+ };
106
+ required: string[];
107
+ };
108
+ } | {
109
+ name: string;
110
+ description: string;
111
+ inputSchema: {
112
+ type: "object";
113
+ properties: {
114
+ filePath: {
115
+ type: string;
116
+ description: string;
117
+ };
118
+ projectRoot: {
119
+ type: string;
120
+ description: string;
121
+ };
122
+ rootDir: {
123
+ type: string;
124
+ description: string;
125
+ };
126
+ directoryPath?: undefined;
127
+ format?: undefined;
128
+ symbolName?: undefined;
129
+ className?: undefined;
130
+ startLine?: undefined;
131
+ endLine?: undefined;
132
+ aroundPattern?: undefined;
133
+ contextLines?: undefined;
134
+ pattern?: undefined;
135
+ fileExtensions?: undefined;
136
+ excludeDirs?: undefined;
137
+ maxResults?: undefined;
138
+ startIndex?: undefined;
139
+ fuzzyMatch?: undefined;
140
+ fuzzyThreshold?: undefined;
141
+ newContent?: undefined;
142
+ confirm?: undefined;
143
+ confirmationToken?: undefined;
144
+ diffFormat?: undefined;
145
+ code?: undefined;
146
+ anchorSymbol?: undefined;
147
+ position?: undefined;
148
+ force?: undefined;
149
+ oldName?: undefined;
150
+ newName?: undefined;
151
+ transform?: undefined;
152
+ query?: undefined;
153
+ fuzzy?: undefined;
154
+ types?: undefined;
155
+ reads?: undefined;
156
+ };
157
+ required: string[];
158
+ };
159
+ } | {
160
+ name: string;
161
+ description: string;
162
+ inputSchema: {
163
+ type: "object";
164
+ properties: {
165
+ filePath: {
166
+ type: string;
167
+ description: string;
168
+ };
169
+ projectRoot: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ startLine: {
174
+ type: string;
175
+ description: string;
176
+ };
177
+ endLine: {
178
+ type: string;
179
+ description: string;
180
+ };
181
+ aroundPattern: {
182
+ type: string;
183
+ description: string;
184
+ };
185
+ contextLines: {
186
+ type: string;
187
+ description: string;
188
+ };
189
+ directoryPath?: undefined;
190
+ format?: undefined;
191
+ symbolName?: undefined;
192
+ className?: undefined;
193
+ rootDir?: undefined;
194
+ pattern?: undefined;
195
+ fileExtensions?: undefined;
196
+ excludeDirs?: undefined;
197
+ maxResults?: undefined;
198
+ startIndex?: undefined;
199
+ fuzzyMatch?: undefined;
200
+ fuzzyThreshold?: undefined;
201
+ newContent?: undefined;
202
+ confirm?: undefined;
203
+ confirmationToken?: undefined;
204
+ diffFormat?: undefined;
205
+ code?: undefined;
206
+ anchorSymbol?: undefined;
207
+ position?: undefined;
208
+ force?: undefined;
209
+ oldName?: undefined;
210
+ newName?: undefined;
211
+ transform?: undefined;
212
+ query?: undefined;
213
+ fuzzy?: undefined;
214
+ types?: undefined;
215
+ reads?: undefined;
216
+ };
217
+ required: string[];
218
+ };
219
+ } | {
220
+ name: string;
221
+ description: string;
222
+ inputSchema: {
223
+ type: "object";
224
+ properties: {
225
+ rootDir: {
226
+ type: string;
227
+ description: string;
228
+ };
229
+ projectRoot: {
230
+ type: string;
231
+ description: string;
232
+ };
233
+ pattern: {
234
+ type: string;
235
+ description: string;
236
+ };
237
+ fileExtensions: {
238
+ type: string;
239
+ items: {
240
+ type: string;
241
+ };
242
+ description: string;
243
+ };
244
+ excludeDirs: {
245
+ type: string;
246
+ items: {
247
+ type: string;
248
+ };
249
+ description: string;
250
+ };
251
+ maxResults: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ startIndex: {
256
+ type: string;
257
+ description: string;
258
+ };
259
+ fuzzyMatch: {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ fuzzyThreshold: {
264
+ type: string;
265
+ description: string;
266
+ };
267
+ directoryPath?: undefined;
268
+ format?: undefined;
269
+ filePath?: undefined;
270
+ symbolName?: undefined;
271
+ className?: undefined;
272
+ startLine?: undefined;
273
+ endLine?: undefined;
274
+ aroundPattern?: undefined;
275
+ contextLines?: undefined;
276
+ newContent?: undefined;
277
+ confirm?: undefined;
278
+ confirmationToken?: undefined;
279
+ diffFormat?: undefined;
280
+ code?: undefined;
281
+ anchorSymbol?: undefined;
282
+ position?: undefined;
283
+ force?: undefined;
284
+ oldName?: undefined;
285
+ newName?: undefined;
286
+ transform?: undefined;
287
+ query?: undefined;
288
+ fuzzy?: undefined;
289
+ types?: undefined;
290
+ reads?: undefined;
291
+ };
292
+ required: string[];
293
+ };
294
+ } | {
295
+ name: string;
296
+ description: string;
297
+ inputSchema: {
298
+ type: "object";
299
+ properties: {
300
+ filePath: {
301
+ type: string;
302
+ description: string;
303
+ };
304
+ projectRoot: {
305
+ type: string;
306
+ description: string;
307
+ };
308
+ directoryPath?: undefined;
309
+ format?: undefined;
310
+ symbolName?: undefined;
311
+ className?: undefined;
312
+ rootDir?: undefined;
313
+ startLine?: undefined;
314
+ endLine?: undefined;
315
+ aroundPattern?: undefined;
316
+ contextLines?: undefined;
317
+ pattern?: undefined;
318
+ fileExtensions?: undefined;
319
+ excludeDirs?: undefined;
320
+ maxResults?: undefined;
321
+ startIndex?: undefined;
322
+ fuzzyMatch?: undefined;
323
+ fuzzyThreshold?: undefined;
324
+ newContent?: undefined;
325
+ confirm?: undefined;
326
+ confirmationToken?: undefined;
327
+ diffFormat?: undefined;
328
+ code?: undefined;
329
+ anchorSymbol?: undefined;
330
+ position?: undefined;
331
+ force?: undefined;
332
+ oldName?: undefined;
333
+ newName?: undefined;
334
+ transform?: undefined;
335
+ query?: undefined;
336
+ fuzzy?: undefined;
337
+ types?: undefined;
338
+ reads?: undefined;
339
+ };
340
+ required: string[];
341
+ };
342
+ } | {
343
+ name: string;
344
+ description: string;
345
+ inputSchema: {
346
+ type: "object";
347
+ properties: {
348
+ filePath: {
349
+ type: string;
350
+ description: string;
351
+ };
352
+ projectRoot: {
353
+ type: string;
354
+ description: string;
355
+ };
356
+ symbolName: {
357
+ type: string;
358
+ description: string;
359
+ };
360
+ newContent: {
361
+ type: string;
362
+ description: string;
363
+ };
364
+ className: {
365
+ type: string;
366
+ description: string;
367
+ };
368
+ confirm: {
369
+ type: string;
370
+ description: string;
371
+ };
372
+ confirmationToken: {
373
+ type: string;
374
+ description: string;
375
+ };
376
+ diffFormat: {
377
+ type: string;
378
+ enum: string[];
379
+ description: string;
380
+ };
381
+ directoryPath?: undefined;
382
+ format?: undefined;
383
+ rootDir?: undefined;
384
+ startLine?: undefined;
385
+ endLine?: undefined;
386
+ aroundPattern?: undefined;
387
+ contextLines?: undefined;
388
+ pattern?: undefined;
389
+ fileExtensions?: undefined;
390
+ excludeDirs?: undefined;
391
+ maxResults?: undefined;
392
+ startIndex?: undefined;
393
+ fuzzyMatch?: undefined;
394
+ fuzzyThreshold?: undefined;
395
+ code?: undefined;
396
+ anchorSymbol?: undefined;
397
+ position?: undefined;
398
+ force?: undefined;
399
+ oldName?: undefined;
400
+ newName?: undefined;
401
+ transform?: undefined;
402
+ query?: undefined;
403
+ fuzzy?: undefined;
404
+ types?: undefined;
405
+ reads?: undefined;
406
+ };
407
+ required: string[];
408
+ };
409
+ } | {
410
+ name: string;
411
+ description: string;
412
+ inputSchema: {
413
+ type: "object";
414
+ properties: {
415
+ filePath: {
416
+ type: string;
417
+ description: string;
418
+ };
419
+ projectRoot: {
420
+ type: string;
421
+ description: string;
422
+ };
423
+ code: {
424
+ type: string;
425
+ description: string;
426
+ };
427
+ anchorSymbol: {
428
+ type: string;
429
+ description: string;
430
+ };
431
+ position: {
432
+ type: string;
433
+ enum: string[];
434
+ description: string;
435
+ };
436
+ className: {
437
+ type: string;
438
+ description: string;
439
+ };
440
+ confirm: {
441
+ type: string;
442
+ description: string;
443
+ };
444
+ confirmationToken: {
445
+ type: string;
446
+ description: string;
447
+ };
448
+ diffFormat: {
449
+ type: string;
450
+ enum: string[];
451
+ description: string;
452
+ };
453
+ directoryPath?: undefined;
454
+ format?: undefined;
455
+ symbolName?: undefined;
456
+ rootDir?: undefined;
457
+ startLine?: undefined;
458
+ endLine?: undefined;
459
+ aroundPattern?: undefined;
460
+ contextLines?: undefined;
461
+ pattern?: undefined;
462
+ fileExtensions?: undefined;
463
+ excludeDirs?: undefined;
464
+ maxResults?: undefined;
465
+ startIndex?: undefined;
466
+ fuzzyMatch?: undefined;
467
+ fuzzyThreshold?: undefined;
468
+ newContent?: undefined;
469
+ force?: undefined;
470
+ oldName?: undefined;
471
+ newName?: undefined;
472
+ transform?: undefined;
473
+ query?: undefined;
474
+ fuzzy?: undefined;
475
+ types?: undefined;
476
+ reads?: undefined;
477
+ };
478
+ required: string[];
479
+ };
480
+ } | {
481
+ name: string;
482
+ description: string;
483
+ inputSchema: {
484
+ type: "object";
485
+ properties: {
486
+ filePath: {
487
+ type: string;
488
+ description: string;
489
+ };
490
+ projectRoot: {
491
+ type: string;
492
+ description: string;
493
+ };
494
+ symbolName: {
495
+ type: string;
496
+ description: string;
497
+ };
498
+ className: {
499
+ type: string;
500
+ description: string;
501
+ };
502
+ force: {
503
+ type: string;
504
+ description: string;
505
+ };
506
+ confirm: {
507
+ type: string;
508
+ description: string;
509
+ };
510
+ confirmationToken: {
511
+ type: string;
512
+ description: string;
513
+ };
514
+ directoryPath?: undefined;
515
+ format?: undefined;
516
+ rootDir?: undefined;
517
+ startLine?: undefined;
518
+ endLine?: undefined;
519
+ aroundPattern?: undefined;
520
+ contextLines?: undefined;
521
+ pattern?: undefined;
522
+ fileExtensions?: undefined;
523
+ excludeDirs?: undefined;
524
+ maxResults?: undefined;
525
+ startIndex?: undefined;
526
+ fuzzyMatch?: undefined;
527
+ fuzzyThreshold?: undefined;
528
+ newContent?: undefined;
529
+ diffFormat?: undefined;
530
+ code?: undefined;
531
+ anchorSymbol?: undefined;
532
+ position?: undefined;
533
+ oldName?: undefined;
534
+ newName?: undefined;
535
+ transform?: undefined;
536
+ query?: undefined;
537
+ fuzzy?: undefined;
538
+ types?: undefined;
539
+ reads?: undefined;
540
+ };
541
+ required: string[];
542
+ };
543
+ } | {
544
+ name: string;
545
+ description: string;
546
+ inputSchema: {
547
+ type: "object";
548
+ properties: {
549
+ filePath: {
550
+ type: string;
551
+ description: string;
552
+ };
553
+ projectRoot: {
554
+ type: string;
555
+ description: string;
556
+ };
557
+ oldName: {
558
+ type: string;
559
+ description: string;
560
+ };
561
+ newName: {
562
+ type: string;
563
+ description: string;
564
+ };
565
+ rootDir: {
566
+ type: string;
567
+ description: string;
568
+ };
569
+ confirm: {
570
+ type: string;
571
+ description: string;
572
+ };
573
+ confirmationToken: {
574
+ type: string;
575
+ description: string;
576
+ };
577
+ directoryPath?: undefined;
578
+ format?: undefined;
579
+ symbolName?: undefined;
580
+ className?: undefined;
581
+ startLine?: undefined;
582
+ endLine?: undefined;
583
+ aroundPattern?: undefined;
584
+ contextLines?: undefined;
585
+ pattern?: undefined;
586
+ fileExtensions?: undefined;
587
+ excludeDirs?: undefined;
588
+ maxResults?: undefined;
589
+ startIndex?: undefined;
590
+ fuzzyMatch?: undefined;
591
+ fuzzyThreshold?: undefined;
592
+ newContent?: undefined;
593
+ diffFormat?: undefined;
594
+ code?: undefined;
595
+ anchorSymbol?: undefined;
596
+ position?: undefined;
597
+ force?: undefined;
598
+ transform?: undefined;
599
+ query?: undefined;
600
+ fuzzy?: undefined;
601
+ types?: undefined;
602
+ reads?: undefined;
603
+ };
604
+ required: string[];
605
+ };
606
+ } | {
607
+ name: string;
608
+ description: string;
609
+ inputSchema: {
610
+ type: "object";
611
+ properties: {
612
+ filePath: {
613
+ type: string;
614
+ description: string;
615
+ };
616
+ projectRoot: {
617
+ type: string;
618
+ description: string;
619
+ };
620
+ symbolName: {
621
+ type: string;
622
+ description: string;
623
+ };
624
+ className: {
625
+ type: string;
626
+ description: string;
627
+ };
628
+ transform: {
629
+ type: string;
630
+ description: string;
631
+ properties: {
632
+ kind: {
633
+ type: string;
634
+ enum: string[];
635
+ description: string;
636
+ };
637
+ parameter: {
638
+ type: string;
639
+ description: string;
640
+ };
641
+ parameterIndex: {
642
+ type: string;
643
+ description: string;
644
+ };
645
+ catchBody: {
646
+ type: string;
647
+ description: string;
648
+ };
649
+ decorator: {
650
+ type: string;
651
+ description: string;
652
+ };
653
+ returnType: {
654
+ type: string;
655
+ description: string;
656
+ };
657
+ expression: {
658
+ type: string;
659
+ description: string;
660
+ };
661
+ variableName: {
662
+ type: string;
663
+ description: string;
664
+ };
665
+ };
666
+ required: string[];
667
+ };
668
+ confirm: {
669
+ type: string;
670
+ description: string;
671
+ };
672
+ confirmationToken: {
673
+ type: string;
674
+ description: string;
675
+ };
676
+ diffFormat: {
677
+ type: string;
678
+ enum: string[];
679
+ description: string;
680
+ };
681
+ directoryPath?: undefined;
682
+ format?: undefined;
683
+ rootDir?: undefined;
684
+ startLine?: undefined;
685
+ endLine?: undefined;
686
+ aroundPattern?: undefined;
687
+ contextLines?: undefined;
688
+ pattern?: undefined;
689
+ fileExtensions?: undefined;
690
+ excludeDirs?: undefined;
691
+ maxResults?: undefined;
692
+ startIndex?: undefined;
693
+ fuzzyMatch?: undefined;
694
+ fuzzyThreshold?: undefined;
695
+ newContent?: undefined;
696
+ code?: undefined;
697
+ anchorSymbol?: undefined;
698
+ position?: undefined;
699
+ force?: undefined;
700
+ oldName?: undefined;
701
+ newName?: undefined;
702
+ query?: undefined;
703
+ fuzzy?: undefined;
704
+ types?: undefined;
705
+ reads?: undefined;
706
+ };
707
+ required: string[];
708
+ };
709
+ } | {
710
+ name: string;
711
+ description: string;
712
+ inputSchema: {
713
+ type: "object";
714
+ properties: {
715
+ rootDir: {
716
+ type: string;
717
+ description: string;
718
+ };
719
+ projectRoot: {
720
+ type: string;
721
+ description: string;
722
+ };
723
+ query: {
724
+ type: string;
725
+ description: string;
726
+ };
727
+ fuzzy: {
728
+ type: string;
729
+ description: string;
730
+ };
731
+ types: {
732
+ type: string;
733
+ items: {
734
+ type: string;
735
+ };
736
+ description: string;
737
+ };
738
+ fileExtensions: {
739
+ type: string;
740
+ items: {
741
+ type: string;
742
+ };
743
+ description: string;
744
+ };
745
+ excludeDirs: {
746
+ type: string;
747
+ items: {
748
+ type: string;
749
+ };
750
+ description: string;
751
+ };
752
+ maxResults: {
753
+ type: string;
754
+ description: string;
755
+ };
756
+ directoryPath?: undefined;
757
+ format?: undefined;
758
+ filePath?: undefined;
759
+ symbolName?: undefined;
760
+ className?: undefined;
761
+ startLine?: undefined;
762
+ endLine?: undefined;
763
+ aroundPattern?: undefined;
764
+ contextLines?: undefined;
765
+ pattern?: undefined;
766
+ startIndex?: undefined;
767
+ fuzzyMatch?: undefined;
768
+ fuzzyThreshold?: undefined;
769
+ newContent?: undefined;
770
+ confirm?: undefined;
771
+ confirmationToken?: undefined;
772
+ diffFormat?: undefined;
773
+ code?: undefined;
774
+ anchorSymbol?: undefined;
775
+ position?: undefined;
776
+ force?: undefined;
777
+ oldName?: undefined;
778
+ newName?: undefined;
779
+ transform?: undefined;
780
+ reads?: undefined;
781
+ };
782
+ required: string[];
783
+ };
784
+ } | {
785
+ name: string;
786
+ description: string;
787
+ inputSchema: {
788
+ type: "object";
789
+ properties: {
790
+ filePath: {
791
+ type: string;
792
+ description: string;
793
+ };
794
+ projectRoot: {
795
+ type: string;
796
+ description: string;
797
+ };
798
+ symbolName: {
799
+ type: string;
800
+ description: string;
801
+ };
802
+ className: {
803
+ type: string;
804
+ description: string;
805
+ };
806
+ rootDir: {
807
+ type: string;
808
+ description: string;
809
+ };
810
+ directoryPath?: undefined;
811
+ format?: undefined;
812
+ startLine?: undefined;
813
+ endLine?: undefined;
814
+ aroundPattern?: undefined;
815
+ contextLines?: undefined;
816
+ pattern?: undefined;
817
+ fileExtensions?: undefined;
818
+ excludeDirs?: undefined;
819
+ maxResults?: undefined;
820
+ startIndex?: undefined;
821
+ fuzzyMatch?: undefined;
822
+ fuzzyThreshold?: undefined;
823
+ newContent?: undefined;
824
+ confirm?: undefined;
825
+ confirmationToken?: undefined;
826
+ diffFormat?: undefined;
827
+ code?: undefined;
828
+ anchorSymbol?: undefined;
829
+ position?: undefined;
830
+ force?: undefined;
831
+ oldName?: undefined;
832
+ newName?: undefined;
833
+ transform?: undefined;
834
+ query?: undefined;
835
+ fuzzy?: undefined;
836
+ types?: undefined;
837
+ reads?: undefined;
838
+ };
839
+ required: string[];
840
+ };
841
+ } | {
842
+ name: string;
843
+ description: string;
844
+ inputSchema: {
845
+ type: "object";
846
+ properties: {
847
+ reads: {
848
+ type: string;
849
+ description: string;
850
+ items: {
851
+ type: string;
852
+ properties: {
853
+ filePath: {
854
+ type: string;
855
+ description: string;
856
+ };
857
+ symbolName: {
858
+ type: string;
859
+ description: string;
860
+ };
861
+ className: {
862
+ type: string;
863
+ description: string;
864
+ };
865
+ };
866
+ required: string[];
867
+ };
868
+ };
869
+ projectRoot: {
870
+ type: string;
871
+ description: string;
872
+ };
873
+ directoryPath?: undefined;
874
+ format?: undefined;
875
+ filePath?: undefined;
876
+ symbolName?: undefined;
877
+ className?: undefined;
878
+ rootDir?: undefined;
879
+ startLine?: undefined;
880
+ endLine?: undefined;
881
+ aroundPattern?: undefined;
882
+ contextLines?: undefined;
883
+ pattern?: undefined;
884
+ fileExtensions?: undefined;
885
+ excludeDirs?: undefined;
886
+ maxResults?: undefined;
887
+ startIndex?: undefined;
888
+ fuzzyMatch?: undefined;
889
+ fuzzyThreshold?: undefined;
890
+ newContent?: undefined;
891
+ confirm?: undefined;
892
+ confirmationToken?: undefined;
893
+ diffFormat?: undefined;
894
+ code?: undefined;
895
+ anchorSymbol?: undefined;
896
+ position?: undefined;
897
+ force?: undefined;
898
+ oldName?: undefined;
899
+ newName?: undefined;
900
+ transform?: undefined;
901
+ query?: undefined;
902
+ fuzzy?: undefined;
903
+ types?: undefined;
904
+ };
905
+ required: string[];
906
+ };
907
+ } | {
908
+ name: string;
909
+ description: string;
910
+ inputSchema: {
911
+ type: "object";
912
+ properties: {
913
+ directoryPath?: undefined;
914
+ projectRoot?: undefined;
915
+ format?: undefined;
916
+ filePath?: undefined;
917
+ symbolName?: undefined;
918
+ className?: undefined;
919
+ rootDir?: undefined;
920
+ startLine?: undefined;
921
+ endLine?: undefined;
922
+ aroundPattern?: undefined;
923
+ contextLines?: undefined;
924
+ pattern?: undefined;
925
+ fileExtensions?: undefined;
926
+ excludeDirs?: undefined;
927
+ maxResults?: undefined;
928
+ startIndex?: undefined;
929
+ fuzzyMatch?: undefined;
930
+ fuzzyThreshold?: undefined;
931
+ newContent?: undefined;
932
+ confirm?: undefined;
933
+ confirmationToken?: undefined;
934
+ diffFormat?: undefined;
935
+ code?: undefined;
936
+ anchorSymbol?: undefined;
937
+ position?: undefined;
938
+ force?: undefined;
939
+ oldName?: undefined;
940
+ newName?: undefined;
941
+ transform?: undefined;
942
+ query?: undefined;
943
+ fuzzy?: undefined;
944
+ types?: undefined;
945
+ reads?: undefined;
946
+ };
947
+ required: never[];
948
+ };
949
+ })[];