We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cdee6e commit e79dcb8Copy full SHA for e79dcb8
1 file changed
src/ModelContextProtocol.AspNetCore/McpEndpointRouteBuilderExtensions.cs
@@ -59,10 +59,8 @@ public static IEndpointConventionBuilder MapMcp(this IEndpointRouteBuilder endpo
59
// Authorization is configured, so automatically map the OAuth protected resource endpoint
60
var resourceMetadataService = endpoints.ServiceProvider.GetRequiredService<ResourceMetadataService>();
61
62
- // Use an AOT-compatible approach with a statically compiled RequestDelegate
63
var handler = new ResourceMetadataEndpointHandler(resourceMetadataService);
64
65
- // Get the options to use the default resource metadata URI
66
var options = endpoints.ServiceProvider.GetRequiredService<IOptions<McpAuthenticationOptions>>();
67
var metadataPath = options.Value.ResourceMetadataUri.ToString();
68
0 commit comments