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:
parent
42a1069833
commit
77932141e3
1 changed files with 4321 additions and 3886 deletions
|
|
@ -59,12 +59,11 @@ impl ProgressTimeoutServer {
|
|||
for step in 0..4 {
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
let _ = client
|
||||
.notify_progress(ProgressNotificationParam {
|
||||
progress_token: progress_token.clone(),
|
||||
progress: step as f64,
|
||||
total: Some(4.0),
|
||||
message: Some("working".into()),
|
||||
})
|
||||
.notify_progress(
|
||||
ProgressNotificationParam::new(progress_token.clone(), step as f64)
|
||||
.with_total(4.0)
|
||||
.with_message("working"),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
|
|
@ -79,12 +78,14 @@ impl ProgressTimeoutServer {
|
|||
for step in 0..4 {
|
||||
tokio::time::sleep(Duration::from_millis(50)).await;
|
||||
let _ = client
|
||||
.notify_progress(ProgressNotificationParam {
|
||||
progress_token: ProgressToken(NumberOrString::Number(999_999)),
|
||||
progress: step as f64,
|
||||
total: Some(4.0),
|
||||
message: Some("unrelated".into()),
|
||||
})
|
||||
.notify_progress(
|
||||
ProgressNotificationParam::new(
|
||||
ProgressToken(NumberOrString::Number(999_999)),
|
||||
step as f64,
|
||||
)
|
||||
.with_total(4.0)
|
||||
.with_message("unrelated"),
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue