McpClient.setRoots

Register the client's filesystem roots using the typed Root API, mirroring the typed result types the SDK provides for tools, resources and prompts. This installs an onListRoots handler that answers roots/list with a properly-shaped {roots: [{uri, name}]} envelope, so callers need not hand-construct the raw JSON. Each uri MUST be a file:// URI per client/roots §Data Types.

class McpClient
@safe
void
setRoots