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 Details

    • SessionMcpRestartServerRequest

      public SessionMcpRestartServerRequest(String serverName)
      Creates a request with its required inputs.
      Parameters:
      serverName - Name of the MCP server to restart
  • Method Details

    • getServerName

      public String getServerName()
      Returns the serverName property.
      Returns:
      Name of the MCP server to restart
    • getConfig

      public Object getConfig()
      Returns the config property.
      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

      public String getExpectedInstallationId()
      Returns the expectedInstallationId property.
      Returns:
      Exact receipt identity for an explicit owned restart; configuration overrides are refused.
    • setConfig

      public SessionMcpRestartServerRequest setConfig(Object value)
      Sets the config property.
      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

      public SessionMcpRestartServerRequest setExpectedInstallationId(String value)
      Sets the expectedInstallationId property.
      Parameters:
      value - Exact receipt identity for an explicit owned restart; configuration overrides are refused.
      Returns:
      this request