File tree Expand file tree Collapse file tree
samples/AspNetCoreMcpServer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using OpenTelemetry ;
22using OpenTelemetry . Metrics ;
33using OpenTelemetry . Trace ;
4- using TestServerWithHosting . Tools ;
5- using TestServerWithHosting . Resources ;
4+ using AspNetCoreMcpServer . Tools ;
5+ using AspNetCoreMcpServer . Resources ;
66
77var builder = WebApplication . CreateBuilder ( args ) ;
88builder . Services . AddMcpServer ( )
Original file line number Diff line number Diff line change 1- using ModelContextProtocol . Protocol ;
21using ModelContextProtocol . Server ;
32using System . ComponentModel ;
43
5- namespace TestServerWithHosting . Resources ;
4+ namespace AspNetCoreMcpServer . Resources ;
65
76[ McpServerResourceType ]
87public class SimpleResourceType
Original file line number Diff line number Diff line change 11using ModelContextProtocol . Server ;
22using System . ComponentModel ;
33
4- namespace TestServerWithHosting . Tools ;
4+ namespace AspNetCoreMcpServer . Tools ;
55
66[ McpServerToolType ]
77public sealed class EchoTool
Original file line number Diff line number Diff line change 22using ModelContextProtocol . Server ;
33using System . ComponentModel ;
44
5- namespace TestServerWithHosting . Tools ;
5+ namespace AspNetCoreMcpServer . Tools ;
66
77/// <summary>
88/// This tool uses dependency injection and async method
You can’t perform that action at this time.
0 commit comments