Reloads MCP server connections for the session.
(self, *, timeout: float | None = None)
| 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." |
| 26079 | await self._client.request("session.mcp.reload", {"sessionId": self._session_id}, **_timeout_kwargs(timeout)) |
| 26080 | |
| 26081 | async def execute_sampling(self, params: MCPExecuteSamplingParams, *, timeout: float | None = None) -> MCPSamplingExecutionResult: |
| 26082 | "Runs an MCP sampling inference on behalf of an MCP server.\n\nArgs:\n params: Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference.\n\nReturns:\n Outcome of an MCP sampling execution: success result, failure error, or cancellation." |