Skip to content

fix(filesystem): fix quote style and add fileURLToPath regression test#3353

Open
olaservo wants to merge 1 commit intomodelcontextprotocol:mainfrom
olaservo:fix/filesystem-roots-utils-followup
Open

fix(filesystem): fix quote style and add fileURLToPath regression test#3353
olaservo wants to merge 1 commit intomodelcontextprotocol:mainfrom
olaservo:fix/filesystem-roots-utils-followup

Conversation

@olaservo
Copy link
Member

Summary

Follow-up to #3205 with two small improvements:

  • Fix import quote style: Changed import { fileURLToPath } from "url" to use single quotes, matching the rest of the file
  • Add regression test: New test using pathToFileURL() to verify properly-encoded file:// URIs (the format VS Code sends via MCP roots) are handled correctly on all platforms

Test plan

  • npx vitest run src/filesystem/__tests__/roots-utils.test.ts — all 4 tests pass (3 existing + 1 new)

🦉 Generated with Claude Code

Follow-up to modelcontextprotocol#3205. Fixes import quote style inconsistency (double to
single quotes) and adds a regression test using pathToFileURL() to
verify properly-encoded file:// URIs are handled correctly on all
platforms.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments