Expand description
MCP Roots Protocol Types
This module defines types for root directory listing in MCP.
Structs§
- List
Roots Params - Parameters for roots/list request (per MCP spec - no params required but can have _meta)
- List
Roots Request - Complete roots/list request (matches TypeScript ListRootsRequest interface)
- List
Roots Result - Response for roots/list (per MCP spec)
- Root
- Root directory entry (per MCP spec)
- Roots
List Changed Notification - Notification for when roots list changes (matches TypeScript RootsListChangedNotification interface)
- Roots
List Changed Params - Parameters for roots list changed notification (per MCP spec - optional _meta only)
Traits§
- HasRoot
Annotations - Trait for root annotations and custom metadata
- HasRoot
Filtering - Trait for root filtering and exclusions
- HasRoot
Metadata - Trait for root metadata (URI, name, path info)
- HasRoot
Permissions - Trait for root permissions and security
- Root
Definition - Complete MCP Root Creation - Build secure file system access boundaries.