Put MapMcp in Microsoft.AspNetCore.Builder namespace (#171)
* Still dispose McpSession when MessageProcessingTask throws non-OCE exceptions * Put MapMcp in icrosoft.AspNetCore.Builder namespace
This commit is contained in:
parent
065e3c6dbb
commit
57a526ec30
1 changed files with 21 additions and 21 deletions
|
|
@ -1,5 +1,3 @@
|
|||
using ModelContextProtocol.AspNetCore;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Services.AddMcpServer().WithToolsFromAssembly();
|
||||
var app = builder.Build();
|
||||
|
|
|
|||
Loading…
Reference in a new issue