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

Method disable

python/copilot/generated/rpc.py:26071–26075  ·  view source on GitHub ↗

Disables an MCP server for the session.\n\nArgs:\n params: Name of the MCP server to disable for the session.

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

Source from the content-addressed store, hash-verified

26069 await self._client.request("session.mcp.enable", params_dict, **_timeout_kwargs(timeout))
26070
26071 async def disable(self, params: MCPDisableRequest, *, timeout: float | None = None) -> None:
26072 "Disables an MCP server for the session.\n\nArgs:\n params: Name of the MCP server to disable for the session."
26073 params_dict: dict[str, Any] = {k: v for k, v in params.to_dict().items() if v is not None}
26074 params_dict["sessionId"] = self._session_id
26075 await self._client.request("session.mcp.disable", params_dict, **_timeout_kwargs(timeout))
26076
26077 async def reload(self, *, timeout: float | None = None) -> None:
26078 "Reloads MCP server connections for the session."

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45