save_login_item
Save a login credential (username, password, URL, optional TOTP seed) as an encrypted Vaultwarden login item in the mcp-agent-created collection, enabling get_totp_code support.
Instructions
Save login credentials (username, password, URL, optional TOTP seed) as a Vaultwarden login item in the mcp-agent-created collection. Use this instead of save_generated_secret when the credential is a sign-in (username + password), so it surfaces as a real login item with get_totp_code support. CREATE-only — cannot overwrite an existing item (name collision returns an error). At least one of username or password is required. All fields are E2E-encrypted with the vault org key before transmission. Sets mcp-created-by, mcp-created-at, mcp-expires-at, and mcp-used-in custom fields automatically. Blocked when READ_ONLY=1. Logs to DRY_RUN without creating a real cipher when DRY_RUN=1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | No | Optional login URL (e.g. "https://app.example.com/login"). Stored as the login URI. | |
| name | Yes | Unique name for this login within the mcp-agent-created collection. Case-sensitive. Name collision returns an error — pick a distinct name. | |
| totp | No | Optional TOTP seed (otpauth:// URI or raw base32 secret). Enables get_totp_code on this item. | |
| notes | No | Optional non-sensitive annotation. Not the credential itself. | |
| used_in | No | Free-form context string, e.g. "smallinvoice portal login". Stored as mcp-used-in custom field. | |
| password | No | Login password (max 4096 chars). Optional, but at least one of username or password is required. | |
| username | No | Login username / account identifier. Optional, but at least one of username or password is required. | |
| expires_in_days | No | Days until the item expires (sets mcp-expires-at). Default 30, max 365. |