Skip to content

Commit e79dcb8

Browse files
committed
Update McpEndpointRouteBuilderExtensions.cs
1 parent 2cdee6e commit e79dcb8

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/ModelContextProtocol.AspNetCore/McpEndpointRouteBuilderExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ public static IEndpointConventionBuilder MapMcp(this IEndpointRouteBuilder endpo
5959
// Authorization is configured, so automatically map the OAuth protected resource endpoint
6060
var resourceMetadataService = endpoints.ServiceProvider.GetRequiredService<ResourceMetadataService>();
6161

62-
// Use an AOT-compatible approach with a statically compiled RequestDelegate
6362
var handler = new ResourceMetadataEndpointHandler(resourceMetadataService);
6463

65-
// Get the options to use the default resource metadata URI
6664
var options = endpoints.ServiceProvider.GetRequiredService<IOptions<McpAuthenticationOptions>>();
6765
var metadataPath = options.Value.ResourceMetadataUri.ToString();
6866

0 commit comments

Comments
 (0)