fix(worker): derive planning MCP URL from configured SignalRPort
Hard-coded 47821 meant .mcp.json pointed at the wrong port for any worker running on a custom signalr_port (e.g. 37821), causing "Unable to connect" auth failures in the planning session. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ namespace ClaudeDo.Worker.Planning;
|
||||
|
||||
public sealed class PlanningSessionManager
|
||||
{
|
||||
private const string McpServerUrl = "http://127.0.0.1:47821/mcp";
|
||||
private string McpServerUrl => $"http://127.0.0.1:{_cfg.SignalRPort}/mcp";
|
||||
|
||||
private readonly IDbContextFactory<ClaudeDoDbContext>? _factory;
|
||||
private readonly TaskRepository? _tasksOverride;
|
||||
@@ -261,7 +261,7 @@ public sealed class PlanningSessionManager
|
||||
.TrimEnd('=');
|
||||
}
|
||||
|
||||
private static string BuildMcpConfigJson()
|
||||
private string BuildMcpConfigJson()
|
||||
{
|
||||
var payload = new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user