@ainecto/mcp 0.14.0-next.9.1 → 0.14.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
@@ -3,7 +3,7 @@
3
3
  Published as `ainecto`, `@ainecto/mcp` and `@ainecto/cli` — the same code. Command: `ainecto`.
4
4
 
5
5
  **Once per machine:** `npx -y ainecto@latest setup` — signs you in through the browser (once), checks the
6
- connection, and connects Claude Code, Cursor, and Codex to the AiNecto server address
6
+ connection, and connects Claude Code, Cursor, Codex, and Antigravity to the AiNecto server address
7
7
  (`https://ainecto.com/mcp`). Each agent then signs in to AiNecto by itself the first time it connects.
8
8
 
9
9
  Every AI session sees the same AiNecto tools. What a tool may change is decided by your AiNecto
@@ -18,7 +18,8 @@ to 5 minutes for the user). Then run `npx -y ainecto@latest doctor` and do what
18
18
  - `setup` registers the server address, so each agent signs in on its own the first time: Claude Code —
19
19
  run `/mcp` in a session and sign in to `ainecto`; Cursor — sign in when `ainecto` asks in its MCP
20
20
  settings; Codex — signs in while `setup` connects it (a browser tab opens and the sign-in link is
21
- printed to stderr; if it did not finish, run `codex mcp login ainecto`).
21
+ printed to stderr; if it did not finish, run `codex mcp login ainecto`); Antigravity — open
22
+ Customizations › Installed › MCP Servers and choose Authenticate for `ainecto`.
22
23
  - To add AiNecto's working rules to a repository, run `npx -y ainecto@latest init` from its root. It
23
24
  does not ask for a role or a project.
24
25
  - **A server added during a session is not available in that session.** Keep working through the CLI:
@@ -33,7 +34,7 @@ to 5 minutes for the user). Then run `npx -y ainecto@latest doctor` and do what
33
34
  ## Set up this machine
34
35
 
35
36
  ```bash
36
- npx -y ainecto@latest setup # sign in, check, connect Claude Code · Cursor · Codex
37
+ npx -y ainecto@latest setup # sign in, check, connect Claude Code · Cursor · Codex · Antigravity
37
38
  npx -y ainecto@latest setup --dry-run # show what it would do — no sign-in, no changes
38
39
  npx -y ainecto@latest setup --local # connect through the local relay instead (see below)
39
40
  npx -y ainecto@latest setup --undo # remove the connections setup made (sign-in stays)
@@ -53,6 +54,10 @@ exits 1:
53
54
  (a browser tab opens; `setup` passes Codex's output, with the sign-in link, through to stderr). If that
54
55
  did not finish within 90 seconds, Codex shows as `failed` but stays connected — run
55
56
  `codex mcp login ainecto` (re-running `setup` says the same).
57
+ - Antigravity — merges `"ainecto": { "serverUrl": "https://ainecto.com/mcp" }` into
58
+ `~/.gemini/config/mcp_config.json` (shared by the Antigravity app, IDE and `agy` CLI), keeping your other servers.
59
+ Sign in from Customizations › Installed › MCP Servers › Authenticate. Antigravity asks before each AiNecto tool
60
+ call unless you allow it.
56
61
 
57
62
  With `--env dev` (or `--endpoint`) the address is that environment's. The server address has no version
58
63
  to pin: a server update reaches every agent at once. Entries an older `setup` wrote
@@ -71,7 +76,7 @@ it to pitch explanations — it does not change permissions.
71
76
 
72
77
  ```bash
73
78
  npx -y ainecto@latest init # .ainecto/HARNESS.md, an AGENTS.md block (and CLAUDE.md if present), .ainecto/config.json
74
- npx -y ainecto@latest init --mcp # also .mcp.json (Claude Code) and .cursor/mcp.json (Cursor), with the server address
79
+ npx -y ainecto@latest init --mcp # also .mcp.json (Claude Code), .cursor/mcp.json (Cursor) and .agents/mcp_config.json (Antigravity), with the server address
75
80
  npx -y ainecto@latest init --mcp --local # the same files with the local relay instead
76
81
  npx -y ainecto@latest init --dry-run # the same plan, nothing written
77
82
  npx -y ainecto@latest init --undo # remove what init wrote
@@ -79,8 +84,8 @@ npx -y ainecto@latest init --agent tester # name the agent working in this fold
79
84
  ```
80
85
 
81
86
  - `--agent <name>` names the agent that works in this folder. It writes the name to
82
- `.ainecto/agent.local` (keep it out of git) and puts it in `.mcp.json`, `.cursor/mcp.json` and
83
- `.codex/config.toml` — the server address entries get the header `X-AiNecto-Agent-Name`, the local relay
87
+ `.ainecto/agent.local` (keep it out of git) and puts it in `.mcp.json`, `.cursor/mcp.json`,
88
+ `.agents/mcp_config.json` and `.codex/config.toml` — the server address entries get the header `X-AiNecto-Agent-Name`, the local relay
84
89
  gets `--agent <name>`. Re-running `init` keeps the name. `ainecto tools call …` run in this folder sends
85
90
  the same name. The server checks the name; a name it refuses stops `init` before any file is written.
86
91
  `.codex/config.toml` is written only when it does not exist yet (or init wrote it); Codex reads it only in
@@ -93,7 +98,8 @@ npx -y ainecto@latest init --agent tester # name the agent working in this fold
93
98
  - It stops when run from a sub-folder of a git repository, and tells you the root.
94
99
  - `--mcp` writes the server address, like `setup`: `.mcp.json` gets
95
100
  `"ainecto": { "type": "http", "url": "https://ainecto.com/mcp" }` (Claude Code needs the `type`) and
96
- `.cursor/mcp.json` gets `"ainecto": { "url": "https://ainecto.com/mcp" }`. Each agent signs in by
101
+ `.cursor/mcp.json` gets `"ainecto": { "url": "https://ainecto.com/mcp" }` and `.agents/mcp_config.json` gets
102
+ `"ainecto": { "serverUrl": "https://ainecto.com/mcp" }` (merged — your other servers stay). Each agent signs in by
97
103
  itself the first time. `--local` writes the pinned local relay instead (see Connector Mode).
98
104
  - **Repositories set up earlier** (`.mcp.json` with `npx -y @ainecto/mcp…`, with or without `--role`):
99
105
  re-run `npx -y ainecto@latest init`. It rewrites the existing `ainecto` entry to the server address
@@ -197,7 +203,8 @@ The server tools behind them (`list_notifications`, `list_agent_todos`, `update_
197
203
  `ainecto term` keeps terminal sessions running after you close the terminal window — no tmux or cmux
198
204
  needed. A background process, started on demand, owns each session and keeps its screen, so agents and
199
205
  scripts can type into a session and read its screen, and you can attach from any terminal app. It runs on
200
- this machine only; it does not use your AiNecto sign-in, except `term remote`.
206
+ this machine only; it does not use your AiNecto sign-in. To use these sessions from AiNecto on the web, see
207
+ the last point below.
201
208
 
202
209
  ```bash
203
210
  ainecto term new api --cwd ~/code/api -- claude # start a session (without a command: your login shell)
@@ -210,7 +217,6 @@ ainecto term attach api # detach with Ctrl-\ then d
210
217
  ainecto term kill api
211
218
  ainecto term kill-server # every session and the background process
212
219
  ainecto term restore # after a reboot: start again what was running
213
- ainecto term remote api # show it in AiNecto on the web and type there (Ctrl+C to stop)
214
220
  ```
215
221
 
216
222
  - Keys for `key`: `enter`, `tab`, `shift-tab`, `escape`, `backspace`, `delete`, `space`, `up`, `down`,
@@ -219,15 +225,17 @@ ainecto term remote api # show it in AiNecto on the we
219
225
  - `send --paste` sends the text as a bracketed paste when the app asked for one. To send text that starts
220
226
  with `-`, put it after `--`.
221
227
  - In `attach`, press `Ctrl-\` twice to send one `Ctrl-\` to the app.
222
- - Inside a session, `AINECTO_TERM_SESSION` holds its name. A name does not change; to rename, kill the
223
- session and start it again.
228
+ - Inside a session, `AINECTO_TERM_SESSION` holds its name. A name does not change; renaming on the web
229
+ changes only the name you see (`term ls` shows it as the label).
224
230
  - `restore` starts again each session that was running (name, folder, command) with the environment of the
225
231
  shell you run it from. It does not bring back what the programs had in memory, and nothing restarts on its
226
232
  own after a reboot. A session that exits by itself is forgotten; `kill` and `kill-server` forget theirs.
227
- - `remote` uses your AiNecto sign-in: open Terminal in AiNecto on the web to see the session as plain text
228
- (no colors yet) and type into it. It runs until you press Ctrl+C, close it on the web, or the session
229
- ends. If AiNecto restarts, it opens the remote terminal again on its own. One remote terminal per
230
- account; its log is `~/.ainecto/term/remote.log`.
233
+ - From AiNecto on the web: `ainecto` (the PC connection) lists every term session of this PC in Terminal
234
+ on the web — see a session as plain text (no colors yet), type into it, and start, rename or end
235
+ sessions there. Allow it once with `ainecto remote on` (`ainecto remote off` blocks it). «Disconnect»
236
+ on the web turns it off until you run `ainecto` again. If AiNecto restarts, it reconnects on its own.
237
+ Without Claude Code or Codex on this PC, `ainecto` still connects the terminals (when allowed); your PC
238
+ agent starts once you install one and run `ainecto` again. Its log is `~/.ainecto/term/remote.log`.
231
239
  - Files are in `~/.ainecto/term/` (folder only you can read): the control socket, `sessions.json` (what
232
240
  `restore` starts) and `daemon.log` (one line per request and one per answer; kept to 10 MB plus one older
233
241
  file, `daemon.log.1`). Typed text, screens and environment values are not logged.
@@ -236,9 +244,10 @@ ainecto term remote api # show it in AiNecto on the we
236
244
  command stops with an error and removes nothing.
237
245
  - Starting the background process waits up to 10 seconds per try for it to report ready, at most 3 tries.
238
246
  - `wait` itself waits until `--timeout` (without it, until the pattern appears or the session ends).
239
- - Platforms: macOS, and Linux with glibc on Node.js 20.8.0 or newer (the rest of the CLI runs on Node 18).
240
- Not Windows yet. It uses the optional dependency `node-pty`, which ships prebuilt binaries — no compiler
241
- needed. If it could not be installed, `ainecto term` says so and the other commands keep working.
247
+ - Platforms: macOS; Linux with glibc on Node.js 20.8.0 or newer; Windows 10 version 1809 or later on x64
248
+ and arm64 (the rest of the CLI runs on Node 18). It uses the optional dependency `node-pty`, which ships
249
+ prebuilt binaries — no compiler needed. If it could not be installed, `ainecto term` says so and the other
250
+ commands keep working.
242
251
 
243
252
  ## Connector Mode
244
253
 
@@ -259,7 +268,7 @@ This is the entry `setup --local` and `init --mcp --local` write — you normall
259
268
  "mcpServers": {
260
269
  "ainecto": {
261
270
  "command": "npx",
262
- "args": ["-y", "@ainecto/mcp@0.13.1"]
271
+ "args": ["-y", "@ainecto/mcp@0.14.0"]
263
272
  }
264
273
  }
265
274
  }
@@ -278,7 +287,7 @@ the npm package `@ainecto/mcp` (the bridge `setup --local` and `init --mcp --loc
278
287
  publication requires the npm version it references to carry that `mcpName`, so publish npm first.
279
288
  Registration is done by a person:
280
289
 
281
- 1. `npm run release -- --otp=<code>` (below) so that `@ainecto/mcp@<version>` is on npm.
290
+ 1. Publish npm with the GitHub Actions workflow (below, «Releasing») so that `@ainecto/mcp@<version>` is on npm.
282
291
  2. Domain login for `ainecto.com` (HTTP: `https://ainecto.com/.well-known/mcp-registry-auth` must
283
292
  serve the public key; the private key is in the macOS keychain):
284
293
  `mcp-publisher login http --domain ainecto.com --private-key "$(security find-generic-password -s codelive-mcp-registry -a ainecto.com -w)"`.
@@ -346,11 +355,18 @@ temp file, and stored upload file unless `--keep` is supplied.
346
355
 
347
356
  ### Releasing
348
357
 
349
- `npm run release -- --otp=<code>` runs typecheck, test and build once, then publishes that build under
350
- three names: `@ainecto/mcp` (primary), `ainecto`, and `@ainecto/cli` (only the `ainecto` command).
351
- `--dry-run` shows what would go out. An already-published name is skipped, so a retry after an expired
352
- code is safe. The npm account needs write access to the `@ainecto` org (the script checks). Do not
353
- unpublish any name.
358
+ Releases go out through GitHub Actions (`.github/workflows/publish.yml`): Actions → **publish** → Run
359
+ workflow → pick the branch (the commit to publish) and the npm tag (`next` for versions with a `-`,
360
+ `latest` otherwise), then an approver of the `npm-publish` environment approves the run. It uses npm
361
+ trusted publishing (OIDC — no npm token is stored) and attaches provenance. From a terminal:
362
+ `gh workflow run publish.yml --repo codelives/ainecto --ref <branch> -f tag=next`.
363
+
364
+ The workflow runs `scripts/publish.mjs`: typecheck, test and build once, then that build under three
365
+ names — `@ainecto/mcp` (primary), `ainecto`, and `@ainecto/cli` (only the `ainecto` command). An
366
+ already-published name is skipped, so a re-run is safe. Do not unpublish any name.
367
+
368
+ Fallback only (when Actions cannot run): `npm run release -- --otp=<code>` publishes the same way from
369
+ your machine (`--dry-run` shows what would go out; the npm account needs write access to `@ainecto`).
354
370
 
355
371
  ## Known Limitations
356
372