MCPcopy Create free account
hub / github.com/github/copilot-sdk / connected

Function connected

python/e2e/test_rpc_mcp_lifecycle_e2e.py:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

listMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…