MCP tool · Orientation
manage_two_factor
Turn authenticator-app (TOTP) two-factor login on or off for this account.
manage_two_factor
Description
Turn authenticator-app (TOTP) two-factor login on or off for this account. action=enable starts enrolment and returns a one-time secret object (its value seed + otpauthUri) to scan into an authenticator app — this is returned once and is never re-fetchable, so surface it to the user immediately; nothing is turned on yet. action=confirm (code) verifies a live 6-digit code from that app and switches 2FA on. action=disable (code) verifies a live code and switches it off.
Input
| Name | Type | Description |
|---|---|---|
action
required
|
enum |
enable to start enrolment (returns the one-time secret), confirm to switch it on with a live code, disable to switch it off with a live code. One of enable, confirm, disable.
|
code
|
string | The current 6-digit code from the user's authenticator app. |