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 Summary
ConstructorsConstructorDescriptionSessionMcpStartServerRequest(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
-
SessionMcpStartServerRequest
Creates a request with its required inputs.- Parameters:
serverName- Name of the MCP server to start
-
-
Method Details
-
getServerName
Returns theserverNameproperty.- Returns:
- Name of the MCP server to start
-
getConfig
Returns theconfigproperty.- 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
Returns theexpectedInstallationIdproperty.- Returns:
- Exact receipt identity for explicit owned activation in this session.
-
setConfig
Sets theconfigproperty.- 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
Sets theexpectedInstallationIdproperty.- Parameters:
value- Exact receipt identity for explicit owned activation in this session.- Returns:
- this request
-