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§
- Cancelled
Notification - Method: “notifications/cancelled”
- Cancelled
Notification Params - Initialized
Notification - Method: “notifications/initialized”
- Logging
Message Notification - Method: “notifications/message”
- Logging
Message Notification Params - Notification
- Base notification structure following MCP TypeScript specification
- Notification
Params - Base notification parameters that can include _meta
- Progress
Notification - Method: “notifications/progress”
- Progress
Notification Params - Prompt
List Changed Notification - Method: “notifications/prompts/listChanged” (per MCP spec)
- Resource
List Changed Notification - Method: “notifications/resources/listChanged” (per MCP spec)
- Resource
Updated Notification - Method: “notifications/resources/updated”
- Resource
Updated Notification Params - Roots
List Changed Notification - Method: “notifications/roots/listChanged” (per MCP spec)
- Tool
List Changed Notification - Method: “notifications/tools/listChanged” (per MCP spec)
Traits§
- HasNotification
Metadata - Trait for notification metadata (method, type info)
- HasNotification
Payload - Trait for notification payload and data structure
- HasNotification
Rules - Trait for notification delivery rules and filtering
- Notification
Definition - Complete MCP Notification Creation - Build real-time event broadcasting systems.