Fix windows absolute path parsing bug#3205
Merged
olaservo merged 1 commit intomodelcontextprotocol:mainfrom Feb 19, 2026
Merged
Fix windows absolute path parsing bug#3205olaservo merged 1 commit intomodelcontextprotocol:mainfrom
olaservo merged 1 commit intomodelcontextprotocol:mainfrom
Conversation
olaservo
approved these changes
Feb 19, 2026
Member
olaservo
left a comment
There was a problem hiding this comment.
LGTM - correct use of fileURLToPath() to replace the naive slice(7) for Windows file:// URI parsing. Minimal change, all CI green, existing try-catch covers edge cases. Will follow up with a small PR for quote style consistency and a regression test.
olaservo
added a commit
to olaservo/servers
that referenced
this pull request
Feb 19, 2026
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>
This was referenced Feb 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix Windows absolute path parsing bug described in #3174
Publishing Your Server
Note: We are no longer accepting PRs to add servers to the README. Instead, please publish your server to the MCP Server Registry to make it discoverable to the MCP ecosystem.
To publish your server, follow the quickstart guide. You can browse published servers at https://registry.modelcontextprotocol.io/.
Server Details
Motivation and Context
Fix Windows path parsing bug where any path isn't recognized as valid path except ones starting with
./How Has This Been Tested?
Manully tested on Windows and Linux.
Breaking Changes
No
Types of changes
Checklist
Additional context