From 7e1d9d9edee441e038698bfa6ac5bbb85b64320c Mon Sep 17 00:00:00 2001 From: Ola Hungerford Date: Sun, 17 Aug 2025 15:32:33 -0700 Subject: [PATCH] fix: clarify list_allowed_directories description to mention subdirectory access (#2571) The tool description was ambiguous about subdirectory access within allowed directories. Updated the description to explicitly state that subdirectories are also accessible. Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: Ola Hungerford --- src/filesystem/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/filesystem/index.ts b/src/filesystem/index.ts index 6723f436..09b0bd7a 100644 --- a/src/filesystem/index.ts +++ b/src/filesystem/index.ts @@ -615,8 +615,10 @@ server.setRequestHandler(ListToolsRequestSchema, async () => { { name: "list_allowed_directories", description: - "Returns the list of root directories that this server is allowed to access. " + - "Use this to understand which directories are available before trying to access files. ", + "Returns the list of directories that this server is allowed to access. " + + "Subdirectories within these allowed directories are also accessible. " + + "Use this to understand which directories and their nested paths are available " + + "before trying to access files.", inputSchema: { type: "object", properties: {},