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
|
|
@ -70,8 +70,8 @@ async fn client_discover_helper_returns_typed_result() {
|
|||
.expect("discover should succeed");
|
||||
|
||||
assert_eq!(
|
||||
result.server_info,
|
||||
Implementation::new("discovery-server", "1.0.0")
|
||||
result.server_info(),
|
||||
Some(Implementation::new("discovery-server", "1.0.0"))
|
||||
);
|
||||
client.cancel().await.expect("client should cancel");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue