test_account_create
Makes a sign-in a tester can use to drive the product's real interface, kept per environment. mode provision creates the user in the environment's managed auth: Helm7 generates a strong password, stores only a hash in auth and an encrypted copy of its own, confirms the address, and tags the user (app_metadata.is_test = true, email +helm7test@) so analytics and revenue views can leave it out. Needs managed auth enabled, so run auth_enable first. mode external does the same in the Product's own auth service instead, with auth_provider (today: supabase): Helm7 reads the project URL and admin key from the environment's stored variables (NEXT_PUBLIC_SUPABASE_URL or SUPABASE_URL, and SUPABASE_SERVICE_ROLE_KEY), uses them for that one call and never returns them, so a Product whose auth lives elsewhere needs no key handed to the caller. The user is confirmed and tagged app_metadata.is_test; rotate and delete only ever touch a tagged user. mode register records an account somebody created elsewhere (a product hosted outside Helm7): send its email and password, and optionally a TOTP seed. Nothing here is ever returned: the password and seed are write-only, and list and get show a fingerprint and whether a seed exists. The one way to read them is test_account_checkout. Pass expires_in (for example 24h or 7d) or expires_at to make the account temporary: once it passes, the account is disabled, its stored secrets are wiped and, for provision, its auth user is removed, within about five minutes. Leave both out for a long-lived account. Test accounts must never pay for anything real; a flow that reaches a live paywall should stop there.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"productId": "<productId>",
"label": "<label>",
"mode": "<mode>"
},
"name": "test_account_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | provision creates the user in managed auth. external creates it in the Product's own auth service (see auth_provider). register records an account that already exists. | |
| role | No | What the account is for, in your words: member, admin, free-tier, paid. Shown beside it; Helm7 does not interpret it. | |
| No | register: required. provision: leave out to use <label>+helm7test@<domain>; if given it must still carry the +helm7test tag so it is recognisable as a test user. | ||
| label | Yes | Lower case letters, digits and hyphens. Names the account and, for provision, its email local part. Unique within the environment. | |
| notes | No | Free text for people, up to 500 characters. Never put a secret here. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| password | No | register: required. provision: leave out, Helm7 generates one. Write-only. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| expires_at | No | Make the account temporary until this moment. Between 5 minutes and 90 days away. Exclusive with expires_in. | |
| expires_in | No | Make the account temporary: minutes, hours or days from now, e.g. 90m, 24h, 7d. From 5 minutes to 90 days. Exclusive with expires_at. | |
| environment | No | Environment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro. | |
| totp_secret | No | Base32 seed of the account's authenticator app, if it has two-factor sign-in. Helm7 stores it and generates codes with test_account_totp; it does not enrol it anywhere. Write-only. | |
| auth_provider | No | external only: which auth service holds the Product's users. | |
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. |