java.lang.Object
com.github.copilot.generated.rpc.SessionMcpApi
API methods for the
mcp namespace.- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SessionMcpAppsApiAPI methods for themcp.appssub-namespace.final SessionMcpOauthApiAPI methods for themcp.oauthsub-namespace. -
Method Summary
Modifier and TypeMethodDescriptionThe requestId previously passed to executeSampling that should be cancelled.disable(SessionMcpDisableParams params) Name of the MCP server to disable for the session.enable(SessionMcpEnableParams params) Name of the MCP server to enable for the session.Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference.list()Identifies the target session.reload()Identifies the target session.Identifies the target session.Mode controlling how MCP server env values are resolved (`direct` or `indirect`).
-
Field Details
-
oauth
API methods for themcp.oauthsub-namespace. -
apps
API methods for themcp.appssub-namespace.
-
-
Method Details
-
list
Identifies the target session.- Since:
- 1.0.0
-
enable
Name of the MCP server to enable for the session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
disable
Name of the MCP server to disable for the session.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
reload
Identifies the target session.- Since:
- 1.0.0
-
executeSampling
public CompletableFuture<SessionMcpExecuteSamplingResult> executeSampling(SessionMcpExecuteSamplingParams params) Identifiers and raw MCP CreateMessageRequest params used to run a sampling inference.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
cancelSamplingExecution
public CompletableFuture<SessionMcpCancelSamplingExecutionResult> cancelSamplingExecution(SessionMcpCancelSamplingExecutionParams params) The requestId previously passed to executeSampling that should be cancelled.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
setEnvValueMode
public CompletableFuture<SessionMcpSetEnvValueModeResult> setEnvValueMode(SessionMcpSetEnvValueModeParams params) Mode controlling how MCP server env values are resolved (`direct` or `indirect`).Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
removeGitHub
Identifies the target session.- Since:
- 1.0.0
-