Coding agents
Settings and files
Environment variables for the Usercase MCP, and the files it keeps in your repository.
Environment variables
Pass them with claude mcp add ... -e NAME=value, codex mcp add ... --env NAME=value, or the env block of your MCP settings.
| Name | What it does |
|---|---|
USERCASE_API_KEY | A project API key, instead of connecting in the browser. Used before a saved connection. |
USERCASE_AGENT_KEY | Your firewall secret, 16 characters or more. See Production sites. |
USERCASE_ALLOW_WRITE_PATHS | Comma-separated path patterns where non-GET requests are allowed, for sites that load pages with POST after sign-in. Everything else stays blocked. |
USERCASE_DIAGNOSTICS | off stops sending diagnostics. On by default. |
USERCASE_HEADED | 1 shows the visitors’ browser on screen. |
USERCASE_DIR | Working folder. Default: .usercase in your repository. |
Files it creates
In .usercase/ in your repository:
| File | What it is |
|---|---|
people.json | The virtual users. Edit them freely, and commit it if you want to reuse them. |
settings.json | Whether visitors may send writes to your site. |
runs/ | Visit records. |
sessions/ | One sign-in session per demo account. |
paths/ | Screenshots of the expected paths your agent recorded, one folder per task. |
outbox.jsonl | Visits waiting to be sent, if an upload failed. |
runs/ and sessions/ are git-ignored by a .gitignore inside the folder.