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:
@@ -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 =>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user