Skip to content

Conversation

dr03ramos
Copy link

Added a "file://" prefix to prevent the JSON library from not identifying the URI correctly.

Motivation and Context

Fixes #131. The lib wasn't working for STDIO servers on any Windows environment i tested.

How Has This Been Tested?

Tested on Windows and Linux.
(The issue was occuring only on Windows, but i wanted to see if it would break Linux and it didn't.

Breaking Changes

Not expected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Fixes modelcontextprotocol#131.
Tested on Windows and Linux.

Added a "file://" prefix to prevent the JSON library from not identifying the URI correctly.
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.

JSON validation error on Windows
1 participant