Skip to content

Commit 5e5b1af

Browse files
authored
Remove 'Sse' from AspNetCoreSseServer sample name (#665)
1 parent da86d52 commit 5e5b1af

File tree

19 files changed

+22
-23
lines changed

19 files changed

+22
-23
lines changed

ModelContextProtocol.slnx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<File Path=".github/workflows/release.yml" />
1010
</Folder>
1111
<Folder Name="/samples/">
12-
<Project Path="samples/AspNetCoreSseServer/AspNetCoreSseServer.csproj" />
12+
<Project Path="samples/AspNetCoreMcpServer/AspNetCoreMcpServer.csproj" />
1313
<Project Path="samples/ChatWithTools/ChatWithTools.csproj" />
1414
<Project Path="samples/EverythingServer/EverythingServer.csproj" />
1515
<Project Path="samples/InMemoryTransport/InMemoryTransport.csproj" />
16-
<Project Path="samples/ProtectedMCPClient/ProtectedMCPClient.csproj" />
17-
<Project Path="samples/ProtectedMCPServer/ProtectedMCPServer.csproj" />
16+
<Project Path="samples/ProtectedMcpClient/ProtectedMcpClient.csproj" />
17+
<Project Path="samples/ProtectedMcpServer/ProtectedMcpServer.csproj" />
1818
<Project Path="samples/QuickstartClient/QuickstartClient.csproj" />
1919
<Project Path="samples/QuickstartWeatherServer/QuickstartWeatherServer.csproj" />
2020
<Project Path="samples/TestServerWithHosting/TestServerWithHosting.csproj" />

samples/AspNetCoreSseServer/Program.cs renamed to samples/AspNetCoreMcpServer/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using OpenTelemetry;
22
using OpenTelemetry.Metrics;
33
using OpenTelemetry.Trace;
4-
using TestServerWithHosting.Tools;
5-
using TestServerWithHosting.Resources;
4+
using AspNetCoreMcpServer.Tools;
5+
using AspNetCoreMcpServer.Resources;
66

77
var builder = WebApplication.CreateBuilder(args);
88
builder.Services.AddMcpServer()

samples/AspNetCoreSseServer/Properties/launchSettings.json renamed to samples/AspNetCoreMcpServer/Properties/launchSettings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"applicationUrl": "http://localhost:3001",
88
"environmentVariables": {
99
"ASPNETCORE_ENVIRONMENT": "Development",
10-
"OTEL_SERVICE_NAME": "sse-server",
10+
"OTEL_SERVICE_NAME": "aspnetcore-mcp-server",
1111
}
1212
},
1313
"https": {
@@ -16,7 +16,7 @@
1616
"applicationUrl": "https://localhost:7133;http://localhost:3001",
1717
"environmentVariables": {
1818
"ASPNETCORE_ENVIRONMENT": "Development",
19-
"OTEL_SERVICE_NAME": "sse-server",
19+
"OTEL_SERVICE_NAME": "aspnetcore-mcp-server",
2020
}
2121
}
2222
}

samples/AspNetCoreSseServer/Resources/SimpleResourceType.cs renamed to samples/AspNetCoreMcpServer/Resources/SimpleResourceType.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
using ModelContextProtocol.Protocol;
21
using ModelContextProtocol.Server;
32
using System.ComponentModel;
43

5-
namespace TestServerWithHosting.Resources;
4+
namespace AspNetCoreMcpServer.Resources;
65

76
[McpServerResourceType]
87
public class SimpleResourceType

samples/AspNetCoreSseServer/Tools/EchoTool.cs renamed to samples/AspNetCoreMcpServer/Tools/EchoTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using ModelContextProtocol.Server;
22
using System.ComponentModel;
33

4-
namespace TestServerWithHosting.Tools;
4+
namespace AspNetCoreMcpServer.Tools;
55

66
[McpServerToolType]
77
public sealed class EchoTool

samples/AspNetCoreSseServer/Tools/SampleLlmTool.cs renamed to samples/AspNetCoreMcpServer/Tools/SampleLlmTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using ModelContextProtocol.Server;
33
using System.ComponentModel;
44

5-
namespace TestServerWithHosting.Tools;
5+
namespace AspNetCoreMcpServer.Tools;
66

77
/// <summary>
88
/// This tool uses dependency injection and async method

0 commit comments

Comments
 (0)