Skip to content

Conversation

chughtapan
Copy link

@chughtapan chughtapan commented Oct 2, 2025

Reference implementation for SEP-1573 to enable Roots with any URI scheme (https://, s3://, git://, etc.) instead of only file:// URIs.

Motivation and Context

This allows servers to work with remote resources while maintaining full backward compatibility.

How Has This Been Tested?

All new and existing tests pass

Breaking Changes

No

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

Implements SEP-1573 to enable Roots with any URI scheme (https://, s3://, git://, etc.)
instead of only file:// URIs. This allows servers to work with remote resources while
maintaining full backward compatibility.

Changes:
- Update RootSchema to accept any URI scheme
- Add tests validating both file:// and https:// URIs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@chughtapan chughtapan changed the title Allow non-file URI schemes for Root resources SEP: Allow non-file URI schemes for Roots Oct 2, 2025
@KKonstantinov
Copy link
Contributor

KKonstantinov commented Oct 2, 2025

Saw your SEP at modelcontextprotocol/modelcontextprotocol#1573

If it gets accepted, then the zod validation should be further extended, and not fully removed (as currently on the PR).

@chughtapan chughtapan requested a review from olaservo October 6, 2025 07:43
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.

3 participants