MCPcopy Index your code
hub / github.com/github/copilot-sdk / get_status

Method get_status

python/copilot/client.py:2889–2907  ·  view source on GitHub ↗

Get CLI status including version and protocol information. Returns: A GetStatusResponse object containing version and protocolVersion. Raises: RuntimeError: If the client is not connected. Example: >>> status = await client.get_

(self)

Source from the content-addressed store, hash-verified

2887 return PingResponse.from_dict(result)
2888
2889 async def get_status(self) -> GetStatusResponse:
2890 """
2891 Get CLI status including version and protocol information.
2892
2893 Returns:
2894 A GetStatusResponse object containing version and protocolVersion.
2895
2896 Raises:
2897 RuntimeError: If the client is not connected.
2898
2899 Example:
2900 >>> status = await client.get_status()
2901 >>> print(f"CLI version: {status.version}")
2902 """
2903 if not self._client:
2904 raise RuntimeError("Client not connected")
2905
2906 result = await self._client.request("status.get", {})
2907 return GetStatusResponse.from_dict(result)
2908
2909 async def get_auth_status(self) -> GetAuthStatusResponse:
2910 """

Calls 2

requestMethod · 0.45
from_dictMethod · 0.45