Co-authored-by: Stephen Halter <halter73@gmail.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Co-authored-by: tarekgh <tarek.mahmoud.sayed@gmail.com>
This commit is contained in:
parent
6787c0cc19
commit
26f60ab7f4
1 changed files with 894 additions and 101 deletions
|
|
@ -1158,8 +1158,14 @@ public class StreamableHttpServerConformanceTests(ITestOutputHelper outputHelper
|
|||
private static DiscoverResult AssertDiscoverServerInfo(JsonRpcResponse rpcResponse)
|
||||
{
|
||||
var discoverResult = AssertType<DiscoverResult>(rpcResponse.Result);
|
||||
Assert.Equal(nameof(StreamableHttpServerConformanceTests), discoverResult.ServerInfo.Name);
|
||||
Assert.Equal("73", discoverResult.ServerInfo.Version);
|
||||
|
||||
// Server identity is carried in the result _meta, not the discover body.
|
||||
var serverInfoNode = discoverResult.Meta?[MetaKeys.ServerInfo];
|
||||
Assert.NotNull(serverInfoNode);
|
||||
var serverInfo = JsonSerializer.Deserialize<Implementation>(serverInfoNode, McpJsonUtilities.DefaultOptions);
|
||||
Assert.NotNull(serverInfo);
|
||||
Assert.Equal(nameof(StreamableHttpServerConformanceTests), serverInfo.Name);
|
||||
Assert.Equal("73", serverInfo.Version);
|
||||
return discoverResult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue