using AspNetCoreMcpServer.Resources; using AspNetCoreMcpServer.Tools; var builder = WebApplication.CreateBuilder(args); // 添加 HttpClientFactory 支持 builder.Services.AddHttpClient(); builder.Services.AddMcpServer() .WithHttpTransport() .WithTools() .WithTools() .WithTools() .WithTools() .WithResources(); var app = builder.Build(); app.MapMcp(); app.Run();