Add articles on logging and progress (#717)

* Add articles on logging and progress
* Address comments in PR review
This commit is contained in:
Mike Kistler 2025-08-25 20:51:41 -05:00 • committed by GitHub
commit 7cb3a64c06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,22 @@
using Progress.Tools;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddMcpServer()
.WithHttpTransport()
.WithTools<LongRunningTools>();
builder.Logging.AddConsole(options =>
{
options.LogToStandardErrorThreshold = LogLevel.Information;
});
var app = builder.Build();
app.UseHttpsRedirection();
app.MapMcp();
app.Run();