using Elicitation.Tools; var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddMcpServer() .WithHttpTransport(options => { // Elicitation requires stateful mode because it sends server-to-client requests. // Set Stateless = false explicitly for forward compatibility in case the default changes. options.Stateless = false; }) .WithTools(); builder.Logging.AddConsole(options => { options.LogToStandardErrorThreshold = LogLevel.Information; }); var app = builder.Build(); app.UseHttpsRedirection(); app.MapMcp(); app.Run();