Advanced Features
Client Roots
Provide local context and resource boundaries to MCP servers.
New in version: 2.0.0
Roots are a way for clients to inform servers about the resources they have access to. Servers can use this information to adjust behavior or provide more relevant responses.
Setting Static Roots
Provide a list of roots when creating the client: