Skip to content

Commit 09f2f52

Browse files
Copilotstephentoub
andcommitted
Add ContentBlock[] to JsonSerializerContext for AOT compatibility
Co-authored-by: stephentoub <[email protected]>
1 parent 68133fd commit 09f2f52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ModelContextProtocol.Core/McpJsonUtilities.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ internal static bool IsValidMcpToolSchema(JsonElement element)
141141

142142
// MCP Content
143143
[JsonSerializable(typeof(ContentBlock))]
144+
[JsonSerializable(typeof(ContentBlock[]))]
144145
[JsonSerializable(typeof(TextContentBlock))]
145146
[JsonSerializable(typeof(ImageContentBlock))]
146147
[JsonSerializable(typeof(AudioContentBlock))]

0 commit comments

Comments
 (0)