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

Method update

python/copilot/generated/rpc.py:25162–25165  ·  view source on GitHub ↗

Updates an MCP server in user configuration.\n\nArgs:\n params: MCP server name and replacement configuration to write to user configuration.

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

Source from the content-addressed store, hash-verified

25160 await self._client.request("mcp.config.add", params_dict, **_timeout_kwargs(timeout))
25161
25162 async def update(self, params: MCPConfigUpdateRequest, *, timeout: float | None = None) -> None:
25163 "Updates an MCP server in user configuration.\n\nArgs:\n params: MCP server name and replacement configuration to write to user configuration."
25164 params_dict = {k: v for k, v in params.to_dict().items() if v is not None}
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."

Callers

nothing calls this directly

Calls 3

_timeout_kwargsFunction · 0.85
to_dictMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected