Class Nexus\Mcp\Core\Schema\Request\ListRootsRequest

final
readonly
extends JsonRpcRequest<'roots/list'>
implements ServerRequest

Sent from the server to request a list of root URIs from the client. Roots allow servers to ask for specific directories or files to operate on. A common example for roots is providing a set of repositories or directories a server should operate on. This request is typically used when the server needs to understand the file system structure or access specific locations that the client has permission to read from.

Methods
Methods inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest
__construct(), toArray(), jsonSerialize()
Constants inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcMessage
JSONRPC_VERSION
Properties inherited from Nexus\Mcp\Core\Schema\JsonRpc\JsonRpcRequest
$id
Properties inherited from Nexus\Mcp\Core\Schema\Request
$params