@levr-one/cli 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,14 +17,25 @@ replaces the `levr` bin from the deprecated `@levr-one/setup` package.
17
17
 
18
18
  ## Get started
19
19
 
20
+ Pushing test results needs authentication and nothing else — log in once
21
+ (or set `LEVR_TOKEN` in CI):
22
+
23
+ ```bash
24
+ levr auth login # browser PKCE (or --device-code for SSH/headless)
25
+ levr push ./results.xml
26
+ ```
27
+
28
+ Using an AI client (Claude Desktop/Code, Cursor, Windsurf, Zed)? Wire the
29
+ Levr MCP server into it with one command — no login needed; the client opens
30
+ a browser to authorize the first time it connects:
31
+
20
32
  ```bash
21
- npx @levr-one/cli init # authenticate and list your workspaces
33
+ npx @levr-one/cli mcp add # detect installed clients and pick interactively
22
34
  ```
23
35
 
24
- `levr init` is the first-run onboarding command: it logs you in (browser
25
- PKCE by default, `--device-code` for SSH/headless) and lists the workspaces
26
- you can push to. Re-running it reuses your stored session — it never
27
- re-opens the browser unnecessarily.
36
+ Config edits preserve your existing MCP servers and comments, and re-running
37
+ is a no-op. Use `--all`, `--client <id>`, or `--yes` for non-interactive
38
+ runs and `--dry-run` to preview.
28
39
 
29
40
  ### Shell completion (optional)
30
41
 
@@ -166,6 +177,7 @@ All configuration is via environment variables. Flags take precedence.
166
177
  | `LEVR_TOKEN` | Personal Access Token (for CI / headless) | |
167
178
  | `LEVR_URL` | API base URL (`--url` flag > `LEVR_URL` > URL stored at login > default) | `https://api.levr.one` |
168
179
  | `LEVR_AUTH_URL` | Auth server URL for the browser login page (derived from the API URL when unset) | derived |
180
+ | `LEVR_MCP_URL` | MCP server URL written by `levr mcp add` (derived from the API URL when unset) | derived |
169
181
  | `LEVR_TEAM_ID` | Default team ID (optional; server resolves from automation source or workspace default) | |
170
182
  | `LEVR_SOURCE` | Automation source name override (groups imports, remembers team) | |
171
183