fix(mcp): register ticket import tools in the external MCP container

The external MCP server has its own DI container; TicketMcpTools could not
resolve TicketImportService there, so both tools failed at runtime. Also
surface a skipped import in the prime outcome and treat a sweep where every
project board fails as an error instead of an empty backlog.
This commit is contained in:
mika kuns
2026-10-01 08:49:31 +02:00
parent 7724f5eb70
commit 2b40ea2d2b
5 changed files with 28 additions and 3 deletions
+5 -1
View File
@@ -63,7 +63,11 @@ public sealed class PrimeRunner : IPrimeRunner
private Task<PrimeRunOutcome> RunImportTicketsAsync(PrimeScheduleDto schedule, CancellationToken ct)
{
if (!_tickets.IsConfigured)
return RunPrepAsync("Daily prep", log => FillMyDayStepAsync(schedule, log, ct));
return RunPrepAsync("Daily prep", async log =>
{
var day = await FillMyDayStepAsync(schedule, log, ct);
return day with { Message = $"Ticket system not configured, import skipped; {day.Message}" };
});
return RunPrepAsync("Ticket import", async log =>
{