* Add AspNetCoreSseMcpTransport sample * Fix build errors after rebase * React to McpServerFactory changes * Make Utf8JsonWriter non thread static * Fix test errors caused by not rebasing the HttpLister changes on factory overhaul commit
11 lines
236 B
C#
11 lines
236 B
C#
using McpDotNet;
|
|
using AspNetCoreSseServer;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
builder.Services.AddMcpServer().WithTools();
|
|
var app = builder.Build();
|
|
|
|
app.MapGet("/", () => "Hello World!");
|
|
app.MapMcpSse();
|
|
|
|
app.Run();
|