ConnectionsOperations
The connections.* operations.
Methods
Section titled “Methods”list()
Section titled “list()”list(options?): Promise<Connection[]>;List the caller's accounts.
Each OAuth app the caller signs in with, and each MCP server's own sign-in, by the server's name. Says whether the caller holds each, and whether a sign-in to it is under way. Only the caller's own.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options? |
CallOptions |
Returns
Section titled “Returns”Promise<Connection[]>
connect()
Section titled “connect()”connect(provider, options?): Promise<Connecting>;Sign the caller in to an account.
Answers that the caller holds it already, or where they sign in: the page, and for a device sign-in the code to enter there.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
provider |
string |
options? |
CallOptions |
Returns
Section titled “Returns”Promise<Connecting>
disconnect()
Section titled “disconnect()”disconnect(provider, options?): Promise<void>;Forget the caller's account.
The next call that needs it asks the caller to sign in again. not_found where the caller holds no such account. Recorded in the audit.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
provider |
string |
options? |
CallOptions |
Returns
Section titled “Returns”Promise<void>