Teknium
04918345ea
fix(cron): initialize MCP servers before constructing the cron AIAgent ( #21354 )
...
cron/scheduler.py:run_job() constructed AIAgent(...) without ever calling
discover_mcp_tools(). The CLI and gateway paths do this at startup; cron
jobs inherited none of it and the user's configured mcp_servers were
invisible inside every cron run.
Insert discover_mcp_tools() right before AIAgent(), wrapped in try/except
so a broken MCP server can't kill an otherwise-working cron job. The call
is idempotent: register_mcp_servers() short-circuits on already-connected
servers, so subsequent ticks in the same scheduler process pay ~0ms.
Scoped to the LLM path only; no_agent script jobs skip it entirely.
Closes #4219 .
2026-05-07 07:53:03 -07:00
..
2026-05-05 10:18:28 -07:00
2026-04-30 22:45:14 -07:00
2026-05-07 06:42:32 -07:00
2026-05-07 05:27:45 -07:00
2026-05-07 07:53:03 -07:00
2026-05-04 01:39:23 -07:00
2026-04-07 17:28:37 -07:00
2026-05-07 07:48:15 -07:00
2026-05-07 07:29:02 -07:00
2026-04-24 03:04:42 -07:00
2026-04-27 12:37:33 -07:00
2026-04-16 16:50:15 -07:00
2026-04-30 02:35:29 -07:00
2026-05-07 07:39:57 -07:00
2026-05-05 13:40:01 -07:00
2026-05-07 06:40:30 -07:00
2026-05-04 12:43:14 -07:00
2026-04-30 13:36:47 -07:00
2026-05-07 07:39:50 -07:00
2026-05-05 15:42:39 -05:00
2026-05-05 13:46:20 -07:00
2026-05-07 07:05:05 -07:00
2026-04-21 01:56:35 -07:00
2026-04-28 04:58:22 -07:00
2026-04-21 06:06:16 -07:00
2026-04-24 14:32:21 -07:00
2026-04-21 08:00:00 -07:00
2026-04-28 05:21:49 -07:00
2026-04-29 23:18:55 -07:00
2026-04-13 10:50:24 -07:00
2026-04-12 03:53:30 -07:00
2026-04-30 04:32:06 -07:00
2026-04-12 16:36:11 -07:00
2026-05-02 01:49:55 -07:00
2026-04-26 19:01:26 -07:00
2026-05-04 12:07:17 -07:00
2026-04-02 15:33:51 -07:00
2026-05-06 04:02:02 -07:00
2026-04-28 06:45:55 -07:00
2026-04-11 23:12:11 -07:00
2026-05-06 01:11:49 +05:30
2026-05-07 07:17:12 -07:00
2026-04-20 12:23:05 -07:00
2026-04-19 22:44:47 -07:00
2026-04-29 09:53:42 -07:00
2026-04-07 17:59:42 -07:00
2026-04-29 05:00:40 -07:00
2026-04-29 12:43:39 -07:00
2026-04-07 22:23:28 -07:00
2026-05-05 10:15:31 -07:00
2026-05-07 06:35:54 -07:00
2026-04-17 13:31:53 -07:00
2026-04-08 00:41:36 -07:00
2026-04-10 13:37:45 -07:00
2026-04-17 14:21:22 -07:00
2026-05-05 10:14:17 -07:00
2026-04-20 12:23:05 -07:00
2026-04-20 12:23:05 -07:00
2026-05-07 05:46:05 -07:00
2026-04-20 23:20:33 -07:00
2026-05-07 06:37:23 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 18:50:49 -07:00