Skip to content

Commit 91f8bf5

Browse files
Migrate from Server.Sse to Server.Http project
Replaced Server.Sse with Server.Http across the solution. Updated Dockerfile, solution, and project files. Adjusted appsettings, launch settings, and docker-compose.yml. Cleaned up .dockerignore and reorganized related files for consistency.
1 parent 907121a commit 91f8bf5

File tree

9 files changed

+13
-38
lines changed

9 files changed

+13
-38
lines changed

MCP.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
4-
VisualStudioVersion = 17.14.36414.22 d17.14
4+
VisualStudioVersion = 17.14.36414.22
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI", "AI\AI.csproj", "{A2CA751E-3EE7-4FAB-B41D-EAC3CACC5DD6}"
77
EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Data", "Data\Data.csproj", "{AC72A28A-BB33-4F0F-9B57-45D7DCFEA00F}"
99
EndProject
1010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server.Stdio", "Server.Stdio\Server.Stdio.csproj", "{9C82BD5C-B375-4A08-883A-95968317419D}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server.Sse", "Server.Sse\Server.Sse.csproj", "{AA9FA2CC-0A0A-4AF2-8F4F-466A22385EDF}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server.Http", "Server.Http\Server.Http.csproj", "{AA9FA2CC-0A0A-4AF2-8F4F-466A22385EDF}"
1313
EndProject
1414
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
1515
ProjectSection(SolutionItems) = preProject
16-
LICENSE = LICENSE
17-
README.md = README.md
1816
docker-compose.override.yml = docker-compose.override.yml
1917
docker-compose.prod.yml = docker-compose.prod.yml
2018
docker-compose.yml = docker-compose.yml
19+
LICENSE = LICENSE
20+
README.md = README.md
2121
EndProjectSection
2222
EndProject
2323
Global
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
33
WORKDIR /src
44

55
# Copy project files for dependency resolution
6-
COPY ["Server.Sse/Server.Sse.csproj", "Server.Sse/"]
6+
COPY ["Server.Http/Server.Http.csproj", "Server.Http/"]
77
COPY ["AI/AI.csproj", "AI/"]
88
COPY ["Data/Data.csproj", "Data/"]
99

1010
# Restore dependencies
11-
RUN dotnet restore "Server.Sse/Server.Sse.csproj"
11+
RUN dotnet restore "Server.Http/Server.Http.csproj"
1212

1313
# Copy all source code
1414
COPY . .
1515

1616
# Build the application
17-
WORKDIR "/src/Server.Sse"
18-
RUN dotnet build "Server.Sse.csproj" -c Release -o /app/build
17+
WORKDIR "/src/Server.Http"
18+
RUN dotnet build "Server.Http.csproj" -c Release -o /app/build
1919

2020
# Publish the application
21-
RUN dotnet publish "Server.Sse.csproj" -c Release -o /app/publish --no-restore
21+
RUN dotnet publish "Server.Http.csproj" -c Release -o /app/publish --no-restore
2222

2323
# Use the official .NET 9 runtime image for the final image
2424
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime
@@ -37,4 +37,4 @@ ENV ASPNETCORE_URLS=http://+:8080
3737
ENV ASPNETCORE_ENVIRONMENT=Production
3838

3939
# Run the application
40-
ENTRYPOINT ["dotnet", "Server.Sse.dll"]
40+
ENTRYPOINT ["dotnet", "Server.Http.dll"]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using OpenTelemetry.Trace;
1414
using Serilog;
1515

16-
namespace Server.Sse;
16+
namespace Server.Http;
1717

1818
public abstract class Program
1919
{
@@ -37,7 +37,7 @@ public static int Main(string[] args)
3737
// Configure System.Text.Json defaults
3838
builder.Services.PostConfigure<JsonSerializerOptions>(options => { options.NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals; });
3939

40-
builder.Services.AddSingleton<JsonSerializerOptions>(sp =>
40+
builder.Services.AddSingleton(sp =>
4141
{
4242
Console.Error.WriteLine("✅ JsonOptions created with NumberHandling=" +
4343
JsonNumberHandling.AllowNamedFloatingPointLiterals);
File renamed without changes.

Server.Sse/.dockerignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
mcp-server:
55
build:
66
context: .
7-
dockerfile: Server.Sse/Dockerfile
7+
dockerfile: Server.Http/Dockerfile
88
ports:
99
- "8080:8080"
1010
- "8081:8081"

0 commit comments

Comments
 (0)