Class SessionMcpApi
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.Opaque auth info used to configure GitHub MCP.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.Server name to check running status for.list()Identifies the target session.listTools(SessionMcpListToolsParams params) Server name whose tool list should be returned.Registration parameters for an external MCP client.reload()Identifies the target session.Opaque MCP reload configuration.Identifies the target session.Server name and opaque configuration for an individual MCP server restart.Mode controlling how MCP server env values are resolved (`direct` or `indirect`).Server name and opaque configuration for an individual MCP server start.stopServer(SessionMcpStopServerParams params) Server name for an individual MCP server stop.Server name identifying the external client to remove.
-
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
-
listTools
@CopilotExperimental public CompletableFuture<SessionMcpListToolsResult> listTools(SessionMcpListToolsParams params) Server name whose tool list should be returned.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- 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
-
reloadWithConfig
@CopilotExperimental public CompletableFuture<SessionMcpReloadWithConfigResult> reloadWithConfig(SessionMcpReloadWithConfigParams params) Opaque MCP reload configuration.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
executeSampling
@CopilotExperimental 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
@CopilotExperimental 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
@CopilotExperimental 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
-
configureGitHub
@CopilotExperimental public CompletableFuture<SessionMcpConfigureGitHubResult> configureGitHub(SessionMcpConfigureGitHubParams params) Opaque auth info used to configure GitHub MCP.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
startServer
Server name and opaque configuration for an individual MCP server start.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
restartServer
@CopilotExperimental public CompletableFuture<Void> restartServer(SessionMcpRestartServerParams params) Server name and opaque configuration for an individual MCP server restart.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
stopServer
Server name for an individual MCP server stop.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
registerExternalClient
@CopilotExperimental public CompletableFuture<Void> registerExternalClient(SessionMcpRegisterExternalClientParams params) Registration parameters for an external MCP client.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
unregisterExternalClient
@CopilotExperimental public CompletableFuture<Void> unregisterExternalClient(SessionMcpUnregisterExternalClientParams params) Server name identifying the external client to remove.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
isServerRunning
@CopilotExperimental public CompletableFuture<SessionMcpIsServerRunningResult> isServerRunning(SessionMcpIsServerRunningParams params) Server name to check running status for.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-