We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05e3550 commit e8f7012Copy full SHA for e8f7012
1 file changed
src/ModelContextProtocol.AspNetCore/Authentication/McpAuthenticationHandler.cs
@@ -5,6 +5,7 @@
5
using ModelContextProtocol.Authentication;
6
using ModelContextProtocol.Utils.Json;
7
using System.Text.Encodings.Web;
8
+using System.Text.Json;
9
10
namespace ModelContextProtocol.AspNetCore.Authentication;
11
@@ -102,7 +103,7 @@ private async Task HandleResourceMetadataRequestAsync()
102
103
Response.StatusCode = StatusCodes.Status200OK;
104
Response.ContentType = "application/json";
105
- var json = System.Text.Json.JsonSerializer.Serialize(
106
+ var json = JsonSerializer.Serialize(
107
metadata,
108
McpJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ProtectedResourceMetadata)));
109
0 commit comments