Skip to content

filesystem MCP server doesn't support legal Windows pathnames in claude_desktop_config.json #447

@NemanSyed

Description

@NemanSyed

Describe the bug
In claude_desktop_config.json, legal Windows characters in pathnames appear unsupported:
Accepted: "C:\\NS\\AI" (works with no spaces and doubled up \ characters)
Accepted: "/Users/NEMANS~1/FOO~2/BAR~1/Thing/Other~1" (used short name / 8.3 name since it avoids risk of spaces or LFN problems)
Unaccepted: "C:\\NS\\My Kindle Content" (problem: spaces)
Unaccepted: "/c/NS/MyKindleContent" (problem: inclusion of drive letter)
Unaccepted: "/mnt/c/NS/MyKindleContent" (problem: inclusion of drive letter)

There are probably other examples too, but I've run out of patience.

Error message:
MCP server filesystem disconnected. For troubleshooting guidance, please visit our debugging documentation.
image

Note "/Users/NEMANS~1/FOO~2/BAR~1/Thing/Other~1", displays with strikethrough in the UI after the "c:\users\nemans" portion of the resolved pathname string. It's exactly what we see when "/Users/NEMANS1/FOO2/BAR1/Thing/Other1" isn't marked as code in the bug report editor.
image

To Reproduce
Add a path into the config that includes spaces (and probably other legal-in-Windows characters) or add a path that includes the drive letter.

Expected behavior

  1. Accept pathnames allowable in Windows in the Windows application's config file
  2. Improved documentation in the Windows section of https://modelcontextprotocol.io/quickstart/user#2-add-the-filesystem-mcp-server that shows how to include other legal forms of Windows pathnames into the config.
    image

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