Skip to content

Commit f403ae1

Browse files
committed
Less debugging noise
1 parent 8211530 commit f403ae1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/filesystem/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ function isPathExcluded(basePath: string, relativePath: string, exclusions: stri
124124
// Handle the path format exclusions (containing slashes)
125125
if (lowerExclusion.includes('/')) {
126126
// Check if the relative path matches or starts with the exclusion path
127-
if (lowerRelativePath === lowerExclusion ||
127+
if (lowerRelativePath === lowerExclusion ||
128128
lowerRelativePath.startsWith(lowerExclusion + '/')) {
129129
return true;
130130
}
@@ -865,9 +865,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
865865
for (const config of allowedDirectoriesConfig) {
866866
lines.push(`- ${config.path}`);
867867
if (config.exclusions.length > 0) {
868-
// Show all exclusions and their lowercase versions for debugging
869-
const exclusionsDebug = config.exclusions.map(ex => `${ex} (${ex.toLowerCase()})`);
870-
lines.push(` Excluded patterns: ${exclusionsDebug.join(', ')}`);
868+
lines.push(` Excluded patterns: ${config.exclusions.join(', ')}`);
871869
}
872870
}
873871

0 commit comments

Comments
 (0)