-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Description
Is your feature request related to a problem? Please describe.
I'd like to configure on a given Filesystem MCP path, the ability to follow symlinks to dirs outside of any of the allowed directories.
Describe the solution you'd like
I'd like a configuration option as part of the official Filesystem MCP that I install in Claude Desktop, so that I can have it, for a given dir, follow symlinks to a dir/file not in the list of allowed dirs. Obviously this should NOT be the default, and also for security consideration, have a default follow of 1. Meaning follow only follow to a depth of 1 symlink outside of the allowed dirs.
So symlinks within allowed dirs are, as currently supported, just fine, but as soon as there is a symlink outside of an allowed dir, the count starts. Even if it symlinks back into an allowed dir, it still increments the count so going back into an allowed dir won't reset, and let it symlink down to infinity.
This would let me work naturally (unix style) with symlinks, while still providing boundaries for security and not needing to add/manage extra configuration.
Describe alternatives you've considered
Currently need to make sure the symlinked file/directory is in the MCP allowed list, although that can be annoying to manage.
Additional context