@invarn/cli 0.9.332 → 0.9.333
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 +29 -3
- package/dist/invarn.cjs +9 -10
- package/dist/local-run-worker.mjs +1 -1
- package/dist/sdk.mjs +23 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,29 @@ generated pipeline.
|
|
|
79
79
|
|
|
80
80
|
## Getting Started
|
|
81
81
|
|
|
82
|
+
### One step: sign in and connect your AI clients
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npx -y @invarn/cli@latest install
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
This signs you in if you are not signed in yet (in the browser; with a code over SSH or on a machine without a display), then adds the Invarn MCP server to each AI client it finds on this computer: Claude Code, Cursor, Claude Desktop and Codex. Every client gets the same entry, `npx -y @invarn/cli@latest mcp serve`, so it always runs the newest published CLI, and no token is ever written into a client's config. It shows each change and asks before making it, backs each file up beside itself first, keeps your other servers as they are, and leaves a file it cannot read safely untouched. It finishes by checking your login and starting the server once to make sure it answers.
|
|
89
|
+
|
|
90
|
+
| Flag | Description |
|
|
91
|
+
|---|---|
|
|
92
|
+
| `--yes` | Make the changes without asking |
|
|
93
|
+
| `--shell` / `--no-shell` | Add (or don't offer) an `invarn` command in `~/.local/bin` that runs the newest published CLI. Off with `--yes` unless `--shell` is given; only offered when that folder is already on your `PATH` |
|
|
94
|
+
| `--token <token>` | Sign in with a token from the dashboard |
|
|
95
|
+
| `--device-auth` | Sign in with a code |
|
|
96
|
+
|
|
97
|
+
`invarn uninstall` removes what `install` added (the MCP entries and the shell command), asking first; add `--logout` to also remove the login saved on this computer.
|
|
98
|
+
|
|
99
|
+
Reconnect the MCP server in any AI session that was already open.
|
|
100
|
+
|
|
101
|
+
Cursor and Claude Desktop are apps opened outside a terminal, which do not see your shell's `PATH`, so they get the full path of `npx` and a `PATH` with its folder. After a Node version change (nvm and the like) that folder is gone: run `install` again and it offers to update the path.
|
|
102
|
+
|
|
103
|
+
Windows support is best effort: the client entry runs `cmd /c npx …`, and the shell command is not offered.
|
|
104
|
+
|
|
82
105
|
### 1. Authenticate
|
|
83
106
|
|
|
84
107
|
```bash
|
|
@@ -105,7 +128,7 @@ Start the MCP server and your AI coding agent can register agents, run builds, a
|
|
|
105
128
|
invarn mcp serve
|
|
106
129
|
```
|
|
107
130
|
|
|
108
|
-
|
|
131
|
+
`invarn install` (above) adds it to Claude Code, Cursor, Claude Desktop and Codex for you. To add it by hand: if you installed `@invarn/cli` globally,
|
|
109
132
|
|
|
110
133
|
```json
|
|
111
134
|
{
|
|
@@ -118,7 +141,7 @@ Add it to Claude Code, Cursor, Claude Desktop, or Codex. If you installed `@inva
|
|
|
118
141
|
}
|
|
119
142
|
```
|
|
120
143
|
|
|
121
|
-
Or without a global install, using `npx` (
|
|
144
|
+
Or without a global install, using `npx` (always the newest published version):
|
|
122
145
|
|
|
123
146
|
```json
|
|
124
147
|
{
|
|
@@ -135,6 +158,8 @@ Or without a global install, using `npx` (pins a specific version for reproducib
|
|
|
135
158
|
|
|
136
159
|
| Command | Description |
|
|
137
160
|
|---|---|
|
|
161
|
+
| `invarn install` | Sign in if needed and add the MCP server to the AI clients on this computer |
|
|
162
|
+
| `invarn uninstall [--logout]` | Remove what `install` added (and the login, with `--logout`) |
|
|
138
163
|
| `invarn auth login` | Authenticate via browser (PKCE) |
|
|
139
164
|
| `invarn auth login --device-auth` | Authenticate via device code (headless) |
|
|
140
165
|
| `invarn auth login --token <token>` | Authenticate with a token directly |
|
|
@@ -187,10 +212,11 @@ invarn run --pipeline .ci/pipelines/agent-verify.yml --workflow test
|
|
|
187
212
|
|
|
188
213
|
## MCP server (for AI agents)
|
|
189
214
|
|
|
190
|
-
`invarn mcp serve` exposes build, artifact, secret, and agent operations as MCP tools:
|
|
215
|
+
`invarn mcp serve` exposes build, artifact, secret, and agent operations as MCP tools. It reads the login `invarn auth login` (or `invarn install`) saved on this computer, or `INVARN_TOKEN`. Without a login it still starts: the agent signs it in with `invarn_auth_login`, and every tool works in the same session afterwards, without a restart.
|
|
191
216
|
|
|
192
217
|
| Tool | Description |
|
|
193
218
|
|---|---|
|
|
219
|
+
| `invarn_auth_login` | Sign this MCP server in (opens the browser, or returns a code to approve on any device) |
|
|
194
220
|
| `invarn_agent_find` | Search for an existing agent by intent/type |
|
|
195
221
|
| `invarn_agent_register` | Register a new AI agent with its own pipeline |
|
|
196
222
|
| `invarn_agent_list` | List all agents in the organization |
|