Skip to content

Filesystem tool description is ambiguous #670

Open
@moonray

Description

@moonray

The tool description is ambiguous, causing Claude to not clearly know that subdirs are allowed access.

See:

Yes, the tool description could be clarified to explicitly state that the tool supports accessing subdirectories of allowed directories. 

Here's a revised description for the filesystem tools (particularly `list_allowed_directories`):

```typescript
name: "list_allowed_directories",
description:
  "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.",
```

This addition makes it clear that when a parent directory is allowed, its entire directory tree is accessible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingserver-filesystemReference implementation for the Filesystem MCP server - src/filesystem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions