YueGuobin 9e5b575d1c
refactor: replace MCP ready state polling with asyncio.Event
Replace the global variable + lock + polling mechanism with asyncio.Event
pattern for MCP server ready state tracking.

Benefits:
- Eliminates race conditions (Event.set() is thread-safe)
- Event-driven notification instead of polling (no 50x sleep overhead)
- Fixes test contamination from global state
- Reduces code from 54 lines to 30 lines
- Uses standard asyncio primitive for this pattern
2026-06-06 22:24:10 +08:00
..
2026-05-13 00:34:05 +08:00
2026-04-04 19:55:13 +08:00
2026-05-13 00:34:05 +08:00
2024-04-22 18:51:29 +07:00
2026-05-13 00:34:05 +08:00
2022-01-19 22:28:36 +10:30
2026-06-02 00:04:50 +02:00