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

Class ServerRpc

python/copilot/generated/rpc.py:25526–25549  ·  view source on GitHub ↗

Typed server-scoped RPC methods.

Source from the content-addressed store, hash-verified

25524
25525
25526class ServerRpc:
25527 """Typed server-scoped RPC methods."""
25528 def __init__(self, client: "JsonRpcClient"):
25529 self._client = client
25530 self.models = ServerModelsApi(client)
25531 self.tools = ServerToolsApi(client)
25532 self.account = ServerAccountApi(client)
25533 self.secrets = ServerSecretsApi(client)
25534 self.mcp = ServerMcpApi(client)
25535 self.plugins = ServerPluginsApi(client)
25536 self.skills = ServerSkillsApi(client)
25537 self.agents = ServerAgentsApi(client)
25538 self.instructions = ServerInstructionsApi(client)
25539 self.user = ServerUserApi(client)
25540 self.runtime = ServerRuntimeApi(client)
25541 self.session_fs = ServerSessionFsApi(client)
25542 self.llm_inference = ServerLlmInferenceApi(client)
25543 self.sessions = ServerSessionsApi(client)
25544 self.agent_registry = ServerAgentRegistryApi(client)
25545
25546 async def ping(self, params: PingRequest, *, timeout: float | None = None) -> PingResult:
25547 "Checks server responsiveness and returns protocol information.\n\nArgs:\n params: Optional message to echo back to the caller.\n\nReturns:\n Server liveness response, including the echoed message, current server timestamp, and protocol version.\n\n.. warning:: This API is experimental and may change or be removed in future versions."
25548 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25549 return PingResult.from_dict(await self._client.request("ping", params_dict, **_timeout_kwargs(timeout)))
25550
25551
25552# Experimental: this API group is experimental and may change or be removed.

Callers 2

_connect_via_stdioMethod · 0.50
_connect_via_tcpMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…