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

Method remove

python/copilot/generated/rpc.py:25167–25170  ·  view source on GitHub ↗

Removes an MCP server from user configuration.\n\nArgs:\n params: MCP server name to remove from user configuration.

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

Source from the content-addressed store, hash-verified

25165 await self._client.request("mcp.config.update", params_dict, **_timeout_kwargs(timeout))
25166
25167 async def remove(self, params: MCPConfigRemoveRequest, *, timeout: float | None = None) -> None:
25168 "Removes an MCP server from user configuration.\n\nArgs:\n params: MCP server name to remove from user configuration."
25169 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
25170 await self._client.request("mcp.config.remove", params_dict, **_timeout_kwargs(timeout))
25171
25172 async def enable(self, params: MCPConfigEnableRequest, *, timeout: float | None = None) -> None:
25173 "Enables MCP servers in user configuration for new sessions.\n\nArgs:\n params: MCP server names to enable for new sessions."

Callers

nothing calls this directly

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected