After npm publication: email-code helper
The helper keeps one MCP refresh credential for this exact origin, saves it with user-only
permissions, and does not write into Codex or Claude Code OAuth caches.
- Ask which email to use, then run:
npx --yes @regnewswire/agent@0.1.0 request-code --email <EMAIL> --origin https://regnewswire.com --json
- Ask the user to paste the short-lived six-digit code into the agent conversation, then pass
it only through stdin to this separate operation:
npx --yes @regnewswire/agent@0.1.0 verify-code --code-stdin --origin https://regnewswire.com --json
Do not require a separate/private terminal or HTML widget, and never echo, retain, log, or put
the code in command arguments, shell history, source files, or URLs. - Configure the current client with one complete command:
npx --yes @regnewswire/agent@0.1.0 setup --client codex --origin https://regnewswire.com --json
npx --yes @regnewswire/agent@0.1.0 setup --client claude-code --origin https://regnewswire.com --json
Then start a fresh client session if tools do not reload in place. - Call
usage_get and help through MCP, then search one company plus one recent
artifact.
New-account creation is controlled per environment. A closed environment returns a clear
error; existing invited accounts can still sign in. The npm package must be published before
these commands are available from a fresh machine.