sjw1231
679d9214c2
feat(sdk): hold initialize until MCP servers finish their first attempt
...
MCP manager servers mount after the manager activates, outside Loader
settlement, so an SDK client that prompts right after `initialize` reached
the model before their tools registered.
`McpServerManager.whenSettled(signal)` resolves once no listed server is
`connecting` with `attempt: 0`; any later state counts, including failures
and reconnect attempts. The SDK server awaits it after Loader settlement for
at most `mcpStartupTimeoutMs` (30 seconds by default, `0` skips the wait),
then answers `initialize` and logs the servers still connecting. Desktop and
Web readiness are unchanged.
The `mcp-manager` SDK snapshot no longer waits for the fixture before
prompting; `initialize` alone puts both MCP tools in the first request.
2026-11-24 13:19:03 +08:00
..
2026-11-03 20:39:03 +08:00
2026-11-20 11:59:49 +08:00
2026-11-05 20:34:44 +08:00
2026-10-21 15:56:44 +08:00
2026-11-19 16:55:26 +08:00
2026-11-20 15:23:15 +08:00
2026-10-19 22:23:13 +08:00
2026-11-20 21:31:55 +08:00
2026-09-23 22:32:06 +08:00
2026-11-24 13:19:03 +08:00
2026-11-23 17:45:33 +08:00
2026-11-20 16:24:05 +08:00
2026-09-23 22:32:06 +08:00
2026-11-18 18:16:59 +08:00
2026-11-18 18:16:59 +08:00
2026-11-19 16:55:26 +08:00
2026-10-23 16:13:38 +08:00
2026-10-23 16:13:38 +08:00
2026-10-23 16:13:38 +08:00
2026-11-19 21:11:38 +08:00
2026-11-19 21:11:38 +08:00
2026-11-19 21:11:38 +08:00
2026-11-20 21:31:55 +08:00
2026-11-20 21:31:55 +08:00
2026-11-20 21:31:55 +08:00
2026-10-05 17:45:17 +08:00
2026-11-10 12:00:17 +08:00
2026-11-10 12:00:17 +08:00
2026-09-24 23:08:20 +08:00
2026-11-24 13:19:03 +08:00
2026-11-24 13:19:03 +08:00
2026-09-23 22:32:06 +08:00
2026-11-11 09:51:11 +08:00
2026-11-11 09:51:11 +08:00
2026-11-11 09:51:11 +08:00
2026-09-21 08:24:18 +00:00
2026-11-22 11:23:51 +08:00
2026-11-22 11:23:51 +08:00
2026-11-22 11:23:51 +08:00
2026-10-20 21:09:09 +08:00
2026-11-23 16:53:18 +08:00
2026-11-23 16:53:18 +08:00
2026-11-20 21:31:55 +08:00
2026-11-20 21:31:55 +08:00
2026-11-20 21:31:55 +08:00
2026-10-12 10:35:05 +08:00
2026-10-12 10:35:05 +08:00
2026-10-12 10:35:05 +08:00
2026-09-23 22:32:06 +08:00
2026-09-23 22:32:06 +08:00
2026-11-23 16:29:45 +08:00
2026-11-23 16:29:45 +08:00
2026-11-23 14:38:15 +08:00
2026-11-23 14:38:15 +08:00
2026-11-23 14:38:15 +08:00
2026-11-23 14:38:15 +08:00
2026-11-05 20:34:44 +08:00
2026-11-05 20:34:44 +08:00
2026-11-05 20:34:44 +08:00
2026-10-08 20:26:57 +08:00
2026-10-08 20:26:57 +08:00
2026-10-08 20:26:57 +08:00
2026-11-20 15:23:15 +08:00
2026-11-20 15:23:15 +08:00
2026-11-20 15:23:15 +08:00
2026-11-23 17:26:36 +08:00
2026-11-23 17:26:36 +08:00
2026-11-23 17:26:36 +08:00
2026-10-19 14:50:00 +08:00
2026-10-19 14:50:00 +08:00
2026-10-19 14:50:00 +08:00
2026-11-03 20:39:03 +08:00
2026-11-03 20:39:03 +08:00
2026-11-03 20:39:03 +08:00
2026-11-05 21:32:19 +08:00
2026-11-05 21:32:19 +08:00
2026-11-05 21:32:19 +08:00
2026-11-22 16:21:23 +08:00
2026-11-22 16:21:23 +08:00
2026-11-22 16:21:23 +08:00