What a root describes
A root has a file:// URI and an optional display name. It identifies a relevant filesystem location, not an operating-system permission grant.
Version and mechanism
Legacy 2025-11-25 clients advertise roots during initialization and answer roots/list; listChanged supports change notifications. Version 2026-07-28 carries capabilities per request and obtains roots through InputRequiredResult. Check the negotiated revision.
A hypothetical example
A client shares file:///work/docs as documentation context. This does not prove the server cannot read a sibling directory: actual filesystem permissions and isolation still need enforcement.
Why new integrations should avoid it
The 2026-07-28 revision deprecates roots and recommends tool parameters, resource URIs or server configuration instead. Deprecation is not immediate removal; the feature remains for at least twelve months after that revision before removal eligibility.
Common question
Does selecting a folder create a sandbox? No. Roots are informational guidance. Clients must validate URIs and apply access controls; servers should respect the supplied boundaries.