Module roots

Module roots 

Source
Expand description

Core MCP protocol types and error handling 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)