Skip to content

Commit e8f7012

Browse files
committed
Update McpAuthenticationHandler.cs
1 parent 05e3550 commit e8f7012

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ModelContextProtocol.AspNetCore/Authentication/McpAuthenticationHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using ModelContextProtocol.Authentication;
66
using ModelContextProtocol.Utils.Json;
77
using System.Text.Encodings.Web;
8+
using System.Text.Json;
89

910
namespace ModelContextProtocol.AspNetCore.Authentication;
1011

@@ -102,7 +103,7 @@ private async Task HandleResourceMetadataRequestAsync()
102103
Response.StatusCode = StatusCodes.Status200OK;
103104
Response.ContentType = "application/json";
104105

105-
var json = System.Text.Json.JsonSerializer.Serialize(
106+
var json = JsonSerializer.Serialize(
106107
metadata,
107108
McpJsonUtilities.DefaultOptions.GetTypeInfo(typeof(ProtectedResourceMetadata)));
108109

0 commit comments

Comments
 (0)