@j0hanz/fs-context-mcp 2.7.2 → 2.7.3
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.
|
@@ -107,7 +107,7 @@ export function registerReadMultipleFilesTool(server, options = {}) {
|
|
|
107
107
|
};
|
|
108
108
|
const wrappedHandler = wrapToolHandler(handler, {
|
|
109
109
|
guard: options.isInitialized,
|
|
110
|
-
progressMessage: (args) =>
|
|
110
|
+
progressMessage: (args) => `🕮 read_many: ${args.paths.length} files`,
|
|
111
111
|
});
|
|
112
112
|
const taskOptions = options.isInitialized
|
|
113
113
|
? { guard: options.isInitialized }
|
|
@@ -169,7 +169,7 @@ export function registerSearchContentTool(server, options = {}) {
|
|
|
169
169
|
const normalizedArgs = SearchContentInputSchema.parse(args);
|
|
170
170
|
notifyProgress(extra, {
|
|
171
171
|
current: 0,
|
|
172
|
-
message:
|
|
172
|
+
message: `🔎︎ grep: ${normalizedArgs.pattern}`,
|
|
173
173
|
});
|
|
174
174
|
const result = await handleSearchContent(normalizedArgs, extra.signal, options.resourceStore, createProgressReporter(extra));
|
|
175
175
|
const sc = result.structuredContent;
|
|
@@ -177,7 +177,7 @@ export function registerSearchContentTool(server, options = {}) {
|
|
|
177
177
|
const finalCurrent = (sc.filesScanned ?? 0) + 1;
|
|
178
178
|
notifyProgress(extra, {
|
|
179
179
|
current: finalCurrent,
|
|
180
|
-
message:
|
|
180
|
+
message: `🔎︎ grep: ${normalizedArgs.pattern} → ${suffix}`,
|
|
181
181
|
});
|
|
182
182
|
return result;
|
|
183
183
|
}, (error) => buildToolErrorResponse(error, ErrorCode.E_UNKNOWN, args.path ?? '.')), { path: args.path ?? '.' });
|
|
@@ -82,7 +82,7 @@ export function registerSearchFilesTool(server, options = {}) {
|
|
|
82
82
|
const handler = (args, extra) => withToolDiagnostics('find', () => withToolErrorHandling(async () => {
|
|
83
83
|
notifyProgress(extra, {
|
|
84
84
|
current: 0,
|
|
85
|
-
message:
|
|
85
|
+
message: `🔎︎ find: ${args.pattern}`,
|
|
86
86
|
});
|
|
87
87
|
const { signal, cleanup } = createTimedAbortSignal(extra.signal, DEFAULT_SEARCH_TIMEOUT_MS);
|
|
88
88
|
try {
|
|
@@ -94,7 +94,7 @@ export function registerSearchFilesTool(server, options = {}) {
|
|
|
94
94
|
const finalCurrent = (sc.filesScanned ?? 0) + 1;
|
|
95
95
|
notifyProgress(extra, {
|
|
96
96
|
current: finalCurrent,
|
|
97
|
-
message:
|
|
97
|
+
message: `🔎︎ find: ${args.pattern} → ${suffix}`,
|
|
98
98
|
});
|
|
99
99
|
return result;
|
|
100
100
|
}
|