File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed
samples/AspNetCoreSseServer
src/ModelContextProtocol.AspNetCore
tests/ModelContextProtocol.TestSseServer Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1- using ModelContextProtocol . AspNetCore ;
2-
31var builder = WebApplication . CreateBuilder ( args ) ;
42builder . Services . AddMcpServer ( ) . WithToolsFromAssembly ( ) ;
53var app = builder . Build ( ) ;
Original file line number Diff line number Diff line change 1- using Microsoft . AspNetCore . Builder ;
2- using Microsoft . AspNetCore . Http ;
1+ using Microsoft . AspNetCore . Http ;
32using Microsoft . AspNetCore . Routing ;
43using Microsoft . AspNetCore . WebUtilities ;
54using Microsoft . Extensions . DependencyInjection ;
1211using System . Collections . Concurrent ;
1312using System . Security . Cryptography ;
1413
15- namespace ModelContextProtocol . AspNetCore ;
14+ namespace Microsoft . AspNetCore . Builder ;
1615
1716/// <summary>
1817/// Extension methods for <see cref="IEndpointRouteBuilder"/> to add MCP endpoints.
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ dotnet add package ModelContextProtocol.AspNetCore --prerelease
3030
3131``` csharp
3232// Program.cs
33- using ModelContextProtocol .AspNetCore ;
3433using ModelContextProtocol .Server ;
3534using System .ComponentModel ;
3635
Original file line number Diff line number Diff line change 1- using ModelContextProtocol . AspNetCore ;
2- using ModelContextProtocol . Protocol . Types ;
1+ using ModelContextProtocol . Protocol . Types ;
32using ModelContextProtocol . Server ;
43using Serilog ;
54using System . Text ;
You can’t perform that action at this time.
0 commit comments