fix!: remove server_info from DiscoverResult (#1065)
Fixes https://github.com/modelcontextprotocol/rust-sdk/issues/1064 Replaces https://github.com/modelcontextprotocol/rust-sdk/pull/1044 This removes the `server_info` field which is not part of the spec: https://modelcontextprotocol.io/specification/draft/schema#discoverresult.
This commit is contained in:
parent
e54c2220af
commit
9a41811a66
1 changed files with 373 additions and 155 deletions
|
|
@ -316,7 +316,7 @@ where
|
|||
let client = serve_directly::<RoleClient, _, _, _, _>(
|
||||
MrtrClient,
|
||||
client_transport,
|
||||
Some(client_peer_info),
|
||||
Some(client_peer_info.into()),
|
||||
);
|
||||
|
||||
let result = body(client).await;
|
||||
|
|
@ -580,7 +580,7 @@ async fn request_state_codec_seals_and_verifies_through_the_loop() -> anyhow::Re
|
|||
let client = serve_directly::<RoleClient, _, _, _, _>(
|
||||
MrtrClient,
|
||||
client_transport,
|
||||
Some(server_info(ProtocolVersion::V_2026_07_28)),
|
||||
Some(server_info(ProtocolVersion::V_2026_07_28).into()),
|
||||
);
|
||||
|
||||
let result = client
|
||||
|
|
|
|||
Loading…
Reference in a new issue