LoomalLoomal
MCPTools Reference

vault.totp

Generate a TOTP 2FA code

Scope: vault:read

Generate the current 6-digit TOTP code from a stored credential with a TOTP secret.

Parameters

NameTypeRequiredDescription
namestringYesCredential name with TOTP

Example

Agent: "Get my AWS 2FA code"

-> vault.totp({ name: "aws-login" })

Returns

{
  "code": "482901",
  "remaining": 18
}

remaining is seconds until the code expires.

REST Equivalent

GET /v0/vault/:name/totp

On this page