Add Conformance tests for the server (#983)
This commit is contained in:
parent
5a65af8ed7
commit
f45996d4b5
1 changed files with 981 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ public static partial class McpJsonUtilities
|
|||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// For Native AOT or applications disabling <see cref="JsonSerializer.IsReflectionEnabledByDefault"/>, this instance
|
||||
/// For Native AOT or applications disabling <see cref="JsonSerializer.IsReflectionEnabledByDefault"/>, this instance
|
||||
/// includes source generated contracts for all common exchange types contained in the ModelContextProtocol library.
|
||||
/// </para>
|
||||
/// <para>
|
||||
|
|
@ -88,7 +88,7 @@ public static partial class McpJsonUtilities
|
|||
[JsonSourceGenerationOptions(JsonSerializerDefaults.Web,
|
||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
NumberHandling = JsonNumberHandling.AllowReadingFromString)]
|
||||
|
||||
|
||||
// JSON-RPC
|
||||
[JsonSerializable(typeof(JsonRpcMessage))]
|
||||
[JsonSerializable(typeof(JsonRpcMessage[]))]
|
||||
|
|
@ -146,7 +146,10 @@ public static partial class McpJsonUtilities
|
|||
[JsonSerializable(typeof(AudioContentBlock))]
|
||||
[JsonSerializable(typeof(EmbeddedResourceBlock))]
|
||||
[JsonSerializable(typeof(ResourceLinkBlock))]
|
||||
[JsonSerializable(typeof(ContentBlock[]))]
|
||||
[JsonSerializable(typeof(IEnumerable<ContentBlock>))]
|
||||
[JsonSerializable(typeof(PromptMessage))]
|
||||
[JsonSerializable(typeof(IEnumerable<PromptMessage>))]
|
||||
[JsonSerializable(typeof(PromptReference))]
|
||||
[JsonSerializable(typeof(ResourceTemplateReference))]
|
||||
[JsonSerializable(typeof(BlobResourceContents))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue