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

Method list

python/copilot/generated/rpc.py:26055–26057  ·  view source on GitHub ↗

Lists MCP servers configured for the session, their connection status, and host-level state. The host-level state (disabled/filtered servers, failed/needs-auth/pending connections, mcp3p policy, full config) is empty/zero when no MCP host has been initialized for the session.\n\nReturns:\n MCP se

(self, *, timeout: float | None = None)

Source from the content-addressed store, hash-verified

26053 self.apps = McpAppsApi(client, session_id)
26054
26055 async def list(self, *, timeout: float | None = None) -> MCPServerList:
26056 "Lists MCP servers configured for the session, their connection status, and host-level state. The host-level state (disabled/filtered servers, failed/needs-auth/pending connections, mcp3p policy, full config) is empty/zero when no MCP host has been initialized for the session.\n\nReturns:\n MCP servers configured for the session, with their connection status and host-level state."
26057 return MCPServerList.from_dict(await self._client.request("session.mcp.list", {"sessionId": self._session_id}, **_timeout_kwargs(timeout)))
26058
26059 async def list_tools(self, params: MCPListToolsRequest, *, timeout: float | None = None) -> MCPListToolsResult:
26060 "Lists the tools exposed by a connected MCP server on this session's host.\n\nArgs:\n params: Server name whose tool list should be returned.\n\nReturns:\n Tools exposed by the connected MCP server. Throws when the server is not connected."

Calls 3

_timeout_kwargsFunction · 0.85
from_dictMethod · 0.45
requestMethod · 0.45