Adds an MCP server to user configuration.\n\nArgs:\n params: MCP server name and configuration to add to user configuration.
(self, params: MCPConfigAddRequest, *, timeout: float | None = None)
| 25155 | return MCPConfigList.from_dict(await self._client.request("mcp.config.list", {}, **_timeout_kwargs(timeout))) |
| 25156 | |
| 25157 | async def add(self, params: MCPConfigAddRequest, *, timeout: float | None = None) -> None: |
| 25158 | "Adds an MCP server to user configuration.\n\nArgs:\n params: MCP server name and configuration to add to user configuration." |
| 25159 | params_dict = {k: v for k, v in params.to_dict().items() if v is not None} |
| 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." |
nothing calls this directly
no test coverage detected