* Still dispose McpSession when MessageProcessingTask throws non-OCE exceptions * Put MapMcp in icrosoft.AspNetCore.Builder namespace
7 lines
161 B
C#
7 lines
161 B
C#
var builder = WebApplication.CreateBuilder(args);
|
|
builder.Services.AddMcpServer().WithToolsFromAssembly();
|
|
var app = builder.Build();
|
|
|
|
app.MapMcp();
|
|
|
|
app.Run();
|