Module notifications

Module notifications 

Source
Expand description

Core MCP protocol types and error handling MCP Notifications Protocol Types

This module defines types for notifications in MCP according to the 2025-06-18 specification. MCP notifications are JSON-RPC notifications that inform clients about server state changes.

Structs§

CancelledNotification
Method: “notifications/cancelled”
CancelledNotificationParams
InitializedNotification
Method: “notifications/initialized”
LoggingMessageNotification
Method: “notifications/message”
LoggingMessageNotificationParams
Notification
Base notification structure following MCP TypeScript specification
NotificationParams
Base notification parameters that can include _meta
ProgressNotification
Method: “notifications/progress”
ProgressNotificationParams
PromptListChangedNotification
Method: “notifications/prompts/listChanged” (per MCP spec)
ResourceListChangedNotification
Method: “notifications/resources/listChanged” (per MCP spec)
ResourceUpdatedNotification
Method: “notifications/resources/updated”
ResourceUpdatedNotificationParams
RootsListChangedNotification
Method: “notifications/roots/listChanged” (per MCP spec)
ToolListChangedNotification
Method: “notifications/tools/listChanged” (per MCP spec)