Fix _meta properties to use JsonObject (#1341)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
Copilot 2026-02-21 07:54:06 -05:00 • committed by GitHub
commit d429b0bf64
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
using System.Diagnostics.CodeAnalysis;
using System.Text.Json;
using System.Text.Json.Nodes;
using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
@ -35,5 +35,5 @@ public sealed class Root
/// This is reserved by the protocol for future use.
/// </remarks>
[JsonPropertyName("_meta")]
public JsonElement? Meta { get; set; }
public JsonObject? Meta { get; set; }
}