From 700aa726fcefa717ebcc8289d5d17821f88f2c94 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 12 Mar 2026 14:04:32 -0400 Subject: [PATCH] fix: update MCP server base URL to port 5270 and suppress logging Point API client at the deployed service port and clear logging providers to prevent interference with MCP stdio transport. Co-Authored-By: Claude Opus 4.6 --- CutList.Mcp/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CutList.Mcp/Program.cs b/CutList.Mcp/Program.cs index 4f9b12e..520c0ca 100644 --- a/CutList.Mcp/Program.cs +++ b/CutList.Mcp/Program.cs @@ -1,6 +1,7 @@ using CutList.Mcp; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Logging; using ModelContextProtocol.Server; var builder = Host.CreateApplicationBuilder(args); @@ -8,9 +9,12 @@ var builder = Host.CreateApplicationBuilder(args); // Register HttpClient for API calls to CutList.Web builder.Services.AddHttpClient(client => { - client.BaseAddress = new Uri("http://localhost:5009"); + client.BaseAddress = new Uri("http://localhost:5270"); }); +// Suppress all logging so it doesn't interfere with MCP stdio transport +builder.Logging.ClearProviders(); + builder.Services .AddMcpServer() .WithStdioServerTransport()