From 380768b11012653afef7c74053567126e5a3f50a Mon Sep 17 00:00:00 2001 From: Shahovalov MIkhail Date: Mon, 13 Apr 2026 17:52:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D0=BF=D0=BE=D1=80=D1=82=20=D1=87=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B7=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD?= =?UTF-8?q?=D1=83=D1=8E=20=D0=BE=D0=BA=D1=80=D1=83=D0=B6=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20ASPNETCORE=5FURLS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LazyBear.MCP/Program.cs | 4 ++-- LazyBear.MCP/Properties/launchSettings.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LazyBear.MCP/Program.cs b/LazyBear.MCP/Program.cs index 7957c98..eb4849e 100644 --- a/LazyBear.MCP/Program.cs +++ b/LazyBear.MCP/Program.cs @@ -4,7 +4,6 @@ using LazyBear.MCP.Services.Kubernetes; using LazyBear.MCP.Services.Logging; using LazyBear.MCP.Services.ToolRegistry; using LazyBear.MCP.TUI; -using ModelContextProtocol.Server; var builder = WebApplication.CreateBuilder(args); @@ -38,4 +37,5 @@ var app = builder.Build(); app.MapMcp(); -app.Run("http://localhost:5000"); +var urls = Environment.GetEnvironmentVariable("ASPNETCORE_URLS") ?? "http://localhost:5000"; +app.Run(urls); diff --git a/LazyBear.MCP/Properties/launchSettings.json b/LazyBear.MCP/Properties/launchSettings.json index d57599a..95839dc 100644 --- a/LazyBear.MCP/Properties/launchSettings.json +++ b/LazyBear.MCP/Properties/launchSettings.json @@ -7,7 +7,8 @@ "launchBrowser": true, "applicationUrl": "http://localhost:5079", "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "Development" + "ASPNETCORE_ENVIRONMENT": "Development", + "ASPNETCORE_URLS": "http://localhost:5152" } } }