part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
Roots lets the client inform the server of which directories or files it considers relevant. It is informational guidance, not access control: the protocol does not prevent a server from stepping outside the roots. It is Deprecated (SEP-2577); migration: pass directories or files via tool parameters, resource URIs or server configuration.
{ "_meta": { "io.modelcontextprotocol/clientCapabilities": { "roots": {} } } }
(In the legacy era there was roots.listChanged and the notifications/roots/list_changed notification, removed on 2026-07-28.)
{ "method": "roots/list" }
Client response in inputResponses:
{ "roots": [ { "uri": "file:///home/user/projects/myproject", "name": "My Project" } ] }
Root.uri MUST be file://; name is optional.
Clients MUST: expose only roots with appropriate permissions, validate URIs against traversal, enforce access control, monitor accessibility; they SHOULD ask for consent before exposing them and offer a management UI. Servers SHOULD: check the capability before using it, respect the boundaries, validate paths against the roots, tolerate a root becoming unavailable.
With statelessness, "the client's list of roots" is not server state; moreover, the real-world pattern (the file server asks which directories it may touch) is better expressed as configuration or an explicit argument. The Inspector still allows roots to be configured per server for legacy servers such as server-filesystem.
1. Which scheme MUST a root's URI have?
Only file:// in the current specification.
2. Are roots an access-control mechanism?
The protocol does not oblige the server to respect them.