Module roots

Module roots 

Source
Expand description

MCP Roots Protocol Types

This module defines types for root directory listing in MCP.

Structs§

ListRootsParams
Parameters for roots/list request (per MCP spec - no params required but can have _meta)
ListRootsRequest
Complete roots/list request (matches TypeScript ListRootsRequest interface)
ListRootsResult
Response for roots/list (per MCP spec)
Root
Root directory entry (per MCP spec)
RootsListChangedNotification
Notification for when roots list changes (matches TypeScript RootsListChangedNotification interface)
RootsListChangedParams
Parameters for roots list changed notification (per MCP spec - optional _meta only)

Traits§

HasRootAnnotations
Trait for root annotations and custom metadata
HasRootFiltering
Trait for root filtering and exclusions
HasRootMetadata
Trait for root metadata (URI, name, path info)
HasRootPermissions
Trait for root permissions and security
RootDefinition
Complete MCP Root Creation - Build secure file system access boundaries.