Module notifications

Module notifications 

Source
Expand description

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)

Traits§

HasNotificationMetadata
Trait for notification metadata (method, type info)
HasNotificationPayload
Trait for notification payload and data structure
HasNotificationRules
Trait for notification delivery rules and filtering
NotificationDefinition
Complete MCP Notification Creation - Build real-time event broadcasting systems.