Skip to content

Commit 7e1d9d9

Browse files
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 <olaservo@users.noreply.github.com>
1 parent c5fec29 commit 7e1d9d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/filesystem/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,10 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
615615
{
616616
name: "list_allowed_directories",
617617
description:
618-
"Returns the list of root directories that this server is allowed to access. " +
619-
"Use this to understand which directories are available before trying to access files. ",
618+
"Returns the list of directories that this server is allowed to access. " +
619+
"Subdirectories within these allowed directories are also accessible. " +
620+
"Use this to understand which directories and their nested paths are available " +
621+
"before trying to access files.",
620622
inputSchema: {
621623
type: "object",
622624
properties: {},

0 commit comments

Comments
 (0)