ListRootsResult

data class ListRootsResult(val roots: List<Root>, val meta: JsonObject? = null) : ClientResult(source)

The client's response to a ListRootsRequest from the server.

This result contains an array of Root objects, each representing a root directory or file that the server can operate on. Roots define the boundaries of what the server is allowed to access.

Constructors

Link copied to clipboard
constructor(roots: List<Root>, meta: JsonObject? = null)

Properties

Link copied to clipboard
@SerialName(value = "_meta")
open override val meta: JsonObject?

Optional metadata for this response.

Link copied to clipboard

The list of root URIs that the server can access. Each root represents a top-level directory, file, or other location that the server has permission to work with.