Skip to content

Filesystem server access denied for allowed paths on Windows #470

Description

@robotdad

When using a local version of the filesystem server on Windows I am getting access denied for paths that are allowed directories on Windows. I was moving to this to get off of my own fork sine a prior PR was merged but it is not in release.

To Reproduce
Steps to reproduce the behavior:

  1. Setup some allowed directories on Windows
  2. Try and access file with them using a local build of filesystem server

Logs
There are no errors in the logs.

Additional context
Here is an example output of read_file showing the issue.

{
  `path`: `C:\\source\\servers\\src\\fetch\\README.md`
}
Error: Access denied - path outside allowed directories: C:\source\servers\src\fetch\README.md not in c:\source, C:\Users\mgoodner

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions