Check a user's connected accounts for a server
Returns the user's connected account on each connection the server uses, with its status. Call it before you mint a session token, and send the user the authorization link for any account that isn't ACTIVE. With include_auth_link set to true, the call creates any account the user doesn't have yet and returns a fresh authorization link for every connection, in authentication_link. Without it, nothing is created, and a connection where the user has no account comes back with an empty connected_account_id.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
config_idstringrequiredBody
identifierstringrequiredinclude_auth_linkbooleantrue to get a fresh authorization link for every connection, creating any connected account the user doesn't have yet.scalekit_client.actions.mcp.list_mcp_connected_accounts
Lists the user's connected account on each connection a Virtual MCP server uses. Returns each account's status and, with include_auth_link=True, an authorization link the user opens to connect or reconnect. Call it before you mint a session token.
scalekit_client.actions.mcp.list_mcp_connected_accounts( config_id: str, identifier: str, include_auth_link: Optional[bool] = None,) -> ListMcpConnectedAccountsResponseParameters
config_idstrrequired"cfg_01abc123".identifierstrrequiredinclude_auth_linkOptional[bool]true to get a fresh authorization link for every connection, creating any connected account the user doesn't have yet.Returns ListMcpConnectedAccountsResponse: One entry per connection in connected_accounts, with connection_name, provider, connected_account_id, connected_account_status, such as ACTIVE or PENDING_AUTH, and authentication_link, the authorization link when you set include_auth_link.
From scalekit-sdk-python 2.19.1.
scalekit.actions.mcp.listConnectedAccounts
Lists the connected accounts backing a configuration for one user. Call this before minting a session token: OAuth credentials can expire or be revoked at any time, and an agent that starts without an active connection fails on every tool call. Surface authenticationLink for any account whose connectedAccountStatus is not "ACTIVE".
scalekit.actions.mcp.listConnectedAccounts( params: { configId: string; identifier: string; includeAuthLink?: boolean; },): Promise<ListMcpConnectedAccountsResponse>Parameters
configIdstringrequiredidentifierstringrequiredincludeAuthLinkbooleantrue to get a fresh authorization link for every connection, creating any connected account the user doesn't have yet.Returns Promise<ListMcpConnectedAccountsResponse>.
From @scalekit-sdk/node 2.18.0.
Response 200
connected_accountsarray of objectShow 6 child attributes
authentication_linkstringinclude_auth_link.connected_account_idstringconnected_account_statusstringACTIVE or PENDING_AUTH. Empty when the user has no account.connection_idstringconnection_namestringproviderstringGITHUB.Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Bad request - config_id or identifier is missing or invalid404Not found - no MCP configuration exists with the given config_id