GET /api/v1/mcp/servers/{server_id}/accounts lists connected-account selectors available to the authenticated caller for a connector. Use a server ID from server discovery. Pass team_id to select the permitted team scope.
OAuth requires gumloop_api.mcp. Personal and team API keys are supported where the connector and requested scope permit them. A team key does not authorize the acting member’s personal accounts. Tokens that cannot choose accounts per call receive 403 with account_choice_not_enabled; those calls use their permitted default account.
The response identifies the server and available account choices without returning provider secrets. Use the returned selector with a tool call; the call rechecks access. Discovery does not create an account or complete OAuth consent.
client.mcp.list_accounts(server_id), with await on the async client. See gumloop mcp for discovery, account selection, and interactive setup.