use crate::mcp::{GenericMeta, IntoMcpNotification, McpNotification}; use serde::{Deserialize, Serialize};
#[serde_with::skip_serializing_none]
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct RootsListChangedNotificationParams {
#[serde(rename = "_meta")]
pub meta: Option<GenericMeta>,
}
impl RootsListChangedNotificationParams {
pub fn new() -> Self {
Self::default()
}
pub fn with_meta(mut self, meta: GenericMeta) -> Self {
self.meta = Some(meta);
self
}
}
impl IntoMcpNotification for RootsListChangedNotificationParams {
const METHOD: &'static str = "notifications/roots/list_changed";
}
pub type RootsListChangedNotification = McpNotification<RootsListChangedNotificationParams>;