feat!: align model types with MCP 2025-11-25 spec (#927)

* feat!: align model types with MCP 2025-11-25 spec

* fix: complete 2025-11-25 model spec conformance
This commit is contained in:
Dale Seo 2026-06-24 20:41:13 -04:00 • committed by GitHub
commit 77932141e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -71,12 +71,11 @@ impl MyServer {
))?;
for step in 0..10 {
let _ = client
.notify_progress(ProgressNotificationParam {
progress_token: progress_token.clone(),
progress: (step as f64),
total: Some(10.0),
message: Some("Some message".into()),
})
.notify_progress(
ProgressNotificationParam::new(progress_token.clone(), step as f64)
.with_total(10.0)
.with_message("Some message"),
)
.await;
tokio::time::sleep(tokio::time::Duration::from_millis(100)).await;
}