Class SessionMcpStartServerRequest

java.lang.Object
com.github.copilot.generated.rpc.SessionMcpStartServerRequest

@CopilotExperimental @Generated("copilot-sdk-codegen") public final class SessionMcpStartServerRequest extends Object
Server name and optional configuration for an individual MCP server start. Omit `config` for a config-free start-by-name of an already-configured server.

Required inputs are constructor arguments. Optional inputs have fluent setters.

Since:
1.0.0
  • Constructor Details

    • SessionMcpStartServerRequest

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

    • getServerName

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

      public Object getConfig()
      Returns the config property.
      Returns:
      MCP server configuration (stdio process or remote HTTP/SSE). Omit to start the server with its already-registered configuration (config-free start-by-name).
    • getExpectedInstallationId

      public String getExpectedInstallationId()
      Returns the expectedInstallationId property.
      Returns:
      Exact receipt identity for explicit owned activation in this session.
    • setConfig

      public SessionMcpStartServerRequest setConfig(Object value)
      Sets the config property.
      Parameters:
      value - MCP server configuration (stdio process or remote HTTP/SSE). Omit to start the server with its already-registered configuration (config-free start-by-name).
      Returns:
      this request
    • setExpectedInstallationId

      public SessionMcpStartServerRequest setExpectedInstallationId(String value)
      Sets the expectedInstallationId property.
      Parameters:
      value - Exact receipt identity for explicit owned activation in this session.
      Returns:
      this request