servers icon indicating copy to clipboard operation
servers copied to clipboard

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

Open NemanSyed opened this issue 1 year ago • 21 comments

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/NEMANS~1/FOO~2/BAR~1/Thing/Other~1" 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

NemanSyed avatar Dec 30 '24 08:12 NemanSyed