()
| 50 | last_status = "<not listed>" |
| 51 | |
| 52 | async def connected() -> bool: |
| 53 | nonlocal last_status |
| 54 | result = await session.rpc.mcp.list() |
| 55 | server = next((s for s in result.servers if s.name == server_name), None) |
| 56 | if server is not None: |
| 57 | last_status = server.status |
| 58 | if server is None: |
| 59 | last_status = "<not listed>" |
| 60 | return False |
| 61 | return server.status == expected_status |
| 62 | |
| 63 | await wait_for_condition( |
| 64 | connected, |
nothing calls this directly
no test coverage detected
searching dependent graphs…