Class SessionMcpOauthApi
mcp.oauth namespace.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionIdentifies the MCP server whose persisted OAuth credentials were updated.Targets only the original prepared/applying owned login on this exact session requester.Pending MCP OAuth request ID and host-provided token or cancellation response.login(SessionMcpOauthLoginParams params) Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.login(SessionMcpOauthLoginRequest request) Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.Effect-free preparation bound to the existing local session, requester and installation, with frozen options.probe(SessionMcpOauthProbeParams params) Remote MCP server name for a passive OAuth status probe.probe(SessionMcpOauthProbeRequest request) Remote MCP server name for a passive OAuth status probe.respond(SessionMcpOauthRespondParams params) Pending MCP OAuth request id to respond to.
-
Method Details
-
handlePendingRequest
@CopilotExperimental public CompletableFuture<SessionMcpOauthHandlePendingRequestResult> handlePendingRequest(SessionMcpOauthHandlePendingRequestParams params) Pending MCP OAuth request ID and host-provided token or cancellation response.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
authenticationStateChanged
@CopilotExperimental public CompletableFuture<Void> authenticationStateChanged(SessionMcpOauthAuthenticationStateChangedParams params) Identifies the MCP server whose persisted OAuth credentials were updated.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
prepareLogin
@CopilotExperimental public CompletableFuture<SessionMcpOauthPrepareLoginResult> prepareLogin(SessionMcpOauthPrepareLoginParams params) Effect-free preparation bound to the existing local session, requester and installation, with frozen options.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
login
@CopilotExperimental public CompletableFuture<SessionMcpOauthLoginResult> login(SessionMcpOauthLoginParams params) Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
login
@CopilotExperimental public CompletableFuture<SessionMcpOauthLoginResult> login(SessionMcpOauthLoginRequest request) Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.Accepts the extensible request, including inputs added after the params record.
- Since:
- 1.0.0
-
probe
@CopilotExperimental public CompletableFuture<McpOauthProbeResult> probe(SessionMcpOauthProbeParams params) Remote MCP server name for a passive OAuth status probe.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
probe
@CopilotExperimental public CompletableFuture<McpOauthProbeResult> probe(SessionMcpOauthProbeRequest request) Remote MCP server name for a passive OAuth status probe.Accepts the extensible request, including inputs added after the params record.
- Since:
- 1.0.0
-
cancelLogin
@CopilotExperimental public CompletableFuture<SessionMcpOauthCancelLoginResult> cancelLogin(SessionMcpOauthCancelLoginParams params) Targets only the original prepared/applying owned login on this exact session requester.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-
respond
@CopilotExperimental public CompletableFuture<SessionMcpOauthRespondResult> respond(SessionMcpOauthRespondParams params) Pending MCP OAuth request id to respond to.Note: the
sessionIdfield in the params record is overridden by the session-scoped wrapper; any value provided is ignored.- Since:
- 1.0.0
-