Class SessionMcpRestartServerRequest
java.lang.Object
com.github.copilot.generated.rpc.SessionMcpRestartServerRequest
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public final class SessionMcpRestartServerRequest
extends Object
Server name and optional replacement configuration for an individual MCP server restart. Omit `config` for a config-free restart-by-name of an already-configured server.
Required inputs are constructor arguments. Optional inputs have fluent setters.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMcpRestartServerRequest(String serverName) Creates a request with its required inputs. -
Method Summary
Modifier and TypeMethodDescriptionReturns theconfigproperty.Returns theexpectedInstallationIdproperty.Returns theserverNameproperty.Sets theconfigproperty.setExpectedInstallationId(String value) Sets theexpectedInstallationIdproperty.
-
Constructor Details
-
SessionMcpRestartServerRequest
Creates a request with its required inputs.- Parameters:
serverName- Name of the MCP server to restart
-
-
Method Details
-
getServerName
Returns theserverNameproperty.- Returns:
- Name of the MCP server to restart
-
getConfig
Returns theconfigproperty.- Returns:
- Replacement MCP server configuration (stdio process or remote HTTP/SSE). Omit to restart the server with its already-registered configuration (config-free restart-by-name).
-
getExpectedInstallationId
Returns theexpectedInstallationIdproperty.- Returns:
- Exact receipt identity for an explicit owned restart; configuration overrides are refused.
-
setConfig
Sets theconfigproperty.- Parameters:
value- Replacement MCP server configuration (stdio process or remote HTTP/SSE). Omit to restart the server with its already-registered configuration (config-free restart-by-name).- Returns:
- this request
-
setExpectedInstallationId
Sets theexpectedInstallationIdproperty.- Parameters:
value- Exact receipt identity for an explicit owned restart; configuration overrides are refused.- Returns:
- this request
-