@feedzy/mcp 0.3.0 → 0.3.2

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.
Files changed (3) hide show
  1. package/README.md +85 -18
  2. package/dist/index.js +13159 -7167
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -12,6 +12,8 @@ recovery phrase. Nothing is uploaded; no account, no server.
12
12
 
13
13
  ## What the agent gets
14
14
 
15
+ The tool descriptions the agent receives are short on purpose (what the tool does, when to call it, which tool comes next, the safety rules); the detailed manual lives in the Feedzy plugin's skill `feedzy:feedzy-outils`. The table below is the fuller picture for humans.
16
+
15
17
  | Tool | What it does |
16
18
  | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
17
19
  | `feedzy_list_feedback` | List the feedback queue (filter by `status` / `project` / text `query`). Start with `awaiting: "agent"`: the threads where the human spoke last — a new report, a reply after your comment, or the answer to a decision you asked. Items with decision sheets carry `decisions: {open, answered, read}` (counts only; listing never marks anything read). |
@@ -68,8 +70,9 @@ the extension on its next sync.
68
70
 
69
71
  `FEEDZY_ENTREE=capture|ask|pilote` does the same as the argument. The plan is read from the signed plan token the extension
70
72
  pushes to the bridge — never from a setting; no token, the Free plan. On the Free plan a Max Cloud tool does its free part
71
- (`feedzy_view` keeps the view, `feedzy_propose_link` files the proposal; `feedzy_publier` publishes nothing and says so on
72
- every call with `status: "max_cloud"`), then adds one sentence — at most once a day per tool — saying what Max Cloud would
73
+ (`feedzy_view` keeps the view, `feedzy_propose_link` files the proposal; `feedzy_publier` publishes nothing, `feedzy_status`
74
+ reads nothing and `feedzy_answer` posts nothing — Jarvis, the voice mode, is Max Cloud — and they say so on every call
75
+ with `status: "max_cloud"` and the free way out: the Fil, or the sheet, in the Feedzy panel), then adds one sentence — at most once a day per tool — saying what Max Cloud would
73
76
  have done, the free way out, and the 30-day trial while it is available. The last verified token is kept in
74
77
  `~/.feedzy/offre/` (`FEEDZY_OFFRE_DIR`) for folder mode and the commands below; it is re-verified on every read.
75
78
 
@@ -84,7 +87,8 @@ have done, the free way out, and the 30-day trial while it is available. The las
84
87
  ## Configure your AI client
85
88
 
86
89
  Two env vars: `FEEDZY_FOLDER` (absolute path, **required**) and
87
- `FEEDZY_RECOVERY_PHRASE` (only if the folder is encrypted).
90
+ `FEEDZY_RECOVERY_PHRASE` (only if the folder is encrypted — a folder linked from the extension always is; without it, or
91
+ with a wrong one, every tool refuses instead of reading an empty folder).
88
92
 
89
93
  ### Cursor — `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project)
90
94
 
@@ -167,6 +171,19 @@ comment what you changed."_
167
171
  hash is FNV-1a change-detection (≈2⁻³² false-unchanged, recoverable via `rappel`),
168
172
  **not** integrity/security.
169
173
 
174
+ ## Command line (no MCP needed)
175
+
176
+ For agents without MCP (Codex, Gemini CLI, Aider), CI, hooks and scripts: the same tools, through the bridge your Feedzy extension already keeps open. Nothing leaves your machine.
177
+
178
+ ```bash
179
+ npx @feedzy/mcp liste --attend agent # list (English: list --awaiting agent)
180
+ npx @feedzy/mcp voir <id> # get
181
+ npx @feedzy/mcp commenter <id> "text" # comment
182
+ npx @feedzy/mcp resoudre <id> --statut shipped # resolve
183
+ ```
184
+
185
+ `--json` prints the tool's result as is. Exit: 0 done, 1 bad usage, 2 refused, 3 no bridge reachable.
186
+
170
187
  ## Bridge mode — free, no account
171
188
 
172
189
  Set `FEEDZY_BRIDGE=1` (instead of `FEEDZY_FOLDER`) to run as a **live bridge**: the
@@ -201,7 +218,7 @@ there's no read-exfiltration hole. The push/poll endpoints are gated by an `Orig
201
218
  > local process can squat a free port in that range and answer `/ping`. The extension
202
219
  > only trusts a bridge that **proves knowledge of the token** (HMAC challenge/response),
203
220
  > and the bridge now **rejects every authenticated route without one** (403). Copy the
204
- > token from the extension's Settings → MCP.
221
+ > token from the extension's Settings › Claude Code and sending › Connect Claude Code.
205
222
  >
206
223
  > This paragraph used to say the token was "not optional in practice", because a
207
224
  > tokenless bridge is never _discovered_. That was true of the extension and false of
@@ -210,6 +227,15 @@ there's no read-exfiltration hole. The push/poll endpoints are gated by an `Orig
210
227
  > **write**: a program on the machine could deposit a fabricated feedback corpus that
211
228
  > the coding agent then reads as genuine. That is an injection into the agent, not a
212
229
  > leak. A tokenless bridge now really does sit there, silent.
230
+ >
231
+ > The proof on `/snapshot`, `/mutations` and `/fil` is bound to **one port and one moment**: the `x-feedzy-nonce` header
232
+ > is `<random>:<port>:<timestamp in ms>`, signed as HMAC(token, `feedzy-snapshot:` + nonce). The bridge accepts it only
233
+ > for its own port, within ±60 s of its clock, and once (it remembers the nonces it has seen). A bare nonce — what an
234
+ > extension released before this rule sends — is refused (403): update the extension before this package. The two
235
+ > clocks must agree to ±60 s, which a bridge in WSL or a container whose clock drifts can miss.
236
+ > On `/snapshot`, the only one of the three that writes what it receives, the nonce carries a fourth piece — the
237
+ > SHA-256 of the exact body, `<random>:<port>:<timestamp in ms>:<sha256(body)>` — and the bridge refuses a body that
238
+ > does not match it (403); `/mutations` and `/fil`, which read no body, refuse that fourth piece.
213
239
 
214
240
  ### Snapshot wire format
215
241
 
@@ -251,7 +277,7 @@ decided under the launcher's lock, on disk: another launch waiting in `<conversa
251
277
  `<conversation>.lus.json`, gives `neuve_prise`, whatever server process receives it. A `POST /lancer` carrying
252
278
  `annuler: true` withdraws a launch that the plugin has not taken yet (the server takes it in the plugin's place,
253
279
  `<conversation>.<id>.pris`, and removes its text): `{ ok: true, annule: true | false }`. The extension
254
- lists these conversations in Settings → MCP ("Connected conversations"). Outside Claude Code (Cursor's own agent,
280
+ lists these conversations in Settings › Claude Code and sending › The advanced path ("Connected conversations"). Outside Claude Code (Cursor's own agent,
255
281
  Claude Desktop…) there is no conversation id: the line shows the folder and the editor only.
256
282
 
257
283
  **Thirty ports, one conversation too many.** When 51483-51512 are all taken (thirty conversations already hold a
@@ -391,23 +417,29 @@ where the `.refus` would be). stdout is one JSON line (`{ ok, via: "pont" | "dos
391
417
  plain words. Exit code: `0` delivered (or left in the folder) · `1` bad usage or shape · `2` refused by Feedzy (source cut,
392
418
  token) · `3` nothing could be delivered · `4` a Max Cloud feature: on the Free plan nothing is published.
393
419
 
394
- ### The six routines (FZ-162, FZ-293)
420
+ ### The nine routines (FZ-162, FZ-293, FZ-460, FZ-462, FZ-463)
395
421
 
396
422
  Work that comes back on its own and publishes in your Fil through the same door, as a source like any other: your extension
397
423
  asks you once to accept it, and you can cut it at any time.
398
424
 
399
- | Routine | When | AI | What it publishes |
400
- | ---------- | ----- | --- | --------------------------------------------------------------------------------------------- |
401
- | `matin` | 08:00 | yes | your day: what to decide first, what is ready to go — and at most ONE « for you » |
402
- | `veille` | 08:00 | no | a new Node LTS or Claude Code release (once per version) — `nodejs.org`, `registry.npmjs.org` |
403
- | `services` | 08:00 | no | one line per service from the command you give it, and a « for you » per alert |
404
- | `point` | 13:00 | yes | where each project stands |
405
- | `actus` | 13:00 | yes | the tools spotted in the AI news you chose (`actus.sources`), added to the tool candidates |
406
- | `soir` | 18:00 | yes | what got done today (task queue and today's commits), what is left |
425
+ | Routine | When | AI | What it publishes |
426
+ | ---------- | ----- | --- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
427
+ | `matin` | 08:00 | yes | your day: what to decide first, what is ready to go — and at most ONE « for you » |
428
+ | `veille` | 08:00 | no | a new Node LTS or Claude Code release (once per version) — `nodejs.org`, `registry.npmjs.org` |
429
+ | `services` | 08:00 | no | one line per service from the command you give it, and a « for you » per alert |
430
+ | `agenda` | 08:00 | no | your appointments of the next days, each at its hour, gone when it ends — from `.ics` |
431
+ | `flux` | 08:00 | no | Actus: the new articles of the RSS feeds you added, one link each, gone after a day |
432
+ | `point` | 13:00 | yes | where each project stands |
433
+ | `actus` | 13:00 | yes | the tools spotted in the AI news you chose (`actus.sources`), added to the tool candidates |
434
+ | `videos` | 13:00 | yes | Vidéos: the new videos of the channels you added (`routines videos ajouter`), summarized by Claude Code from the description the channel publishes (never the subtitles), one call a run, none when nothing is new; gone after seven days |
435
+ | `soir` | 18:00 | yes | what got done today (task queue and today's commits), what is left |
407
436
 
408
437
  ```bash
409
438
  npx @feedzy/mcp routine veille # run one now
410
- npx @feedzy/mcp routines # the six, their time and their measured cost
439
+ npx @feedzy/mcp routines # the eight, their time and their measured cost
440
+ npx @feedzy/mcp routines flux # the RSS feeds Actus reads (none until you add one)
441
+ npx @feedzy/mcp routines flux ajouter https://example.com/feed.xml # add one: Feedzy will read this address
442
+ npx @feedzy/mcp routines flux retirer <id> # remove one (its id, from the list — or its address)
411
443
  npx @feedzy/mcp routines mesurer ia # run the AI ones once, publish nothing, keep their cost
412
444
  npx @feedzy/mcp routines installer all # Windows Task Scheduler, folder "Feedzy.ai" (an AI routine needs its measure)
413
445
  npx @feedzy/mcp routines retirer all
@@ -431,7 +463,10 @@ npx @feedzy/mcp routines retirer-cloud all # pause them there
431
463
  - **AI routines** make ONE `claude -p` call to your own Claude Code (`--safe-mode`, no tools, no MCP server, nothing kept in
432
464
  your conversations): the routine reads your task queue (`~/.feedzy/espaces.json`) and, for `soir`, today's commit subjects
433
465
  of your repositories (`FEEDZY_DEPOTS`), and hands them to Claude framed as data. Model per routine: `modeles` in
434
- `~/.feedzy/routines/config.json` (`sonnet` by default, `haiku` for `actus`).
466
+ `~/.feedzy/routines/config.json` (`sonnet` by default, `haiku` for `actus`). Language of what they write: `langue` in the
467
+ same file (`en`, `de`…), otherwise your system's language, otherwise French — also for a routine installed in the cloud
468
+ (set at install time: reinstall it after a change). Installing from the extension (Settings → MCP) writes the extension's
469
+ language there (`langue`), so the routines speak the language you see in Feedzy.ai.
435
470
  - **Their cost, in % of your window.** Claude Code tells the usage of your window to the percent, not what one call takes.
436
471
  The calibration: what your Claude Code logs cost since the window started (API prices, cache included) divided by its
437
472
  usage. Usage outside Claude Code (claude.ai) counts in the window and not in the logs, so the figure is too HIGH, never
@@ -446,12 +481,44 @@ npx @feedzy/mcp routines retirer-cloud all # pause them there
446
481
  ordinary day with `sonnet`, ≈ 0.0001 % with `haiku`, its default. A day without new posts makes no call.
447
482
  - **Services** runs `services.commande` from `~/.feedzy/routines/config.json` (an argv array) and reads
448
483
  `{ sources: { name: { etat, … } }, alertes: [{ source, texte, quoi }] }` from its stdout.
484
+ - **Agenda** is a _moulinette_: plain mechanics, no AI, no quota. It reads the `.ics` files and `https://` addresses you list in
485
+ `agenda.sources` of `~/.feedzy/routines/config.json` (`webcal://` reads as https, never plain `http://`) and deposits each appointment
486
+ of the next `agenda.jours` days (3 by default, 1 to 14) as an ephemeral entry: it goes up in your Fil at its hour (`agenda.avant`
487
+ minutes earlier if you want, 0 by default; an all-day appointment at `agenda.heureToutLeJour`, 08:00) and leaves when the appointment
488
+ ends. One stable key per appointment (the UID, plus the original start for a repeat) — so a pass updates instead of doubling, a moved
489
+ appointment is followed, a cancelled or removed one is withdrawn. Time zones (`TZID`, `Z`, all-day dates), repeats (`DAILY`,
490
+ `WEEKLY`, `MONTHLY`, `YEARLY`, `COUNT`, `UNTIL`, `INTERVAL`, `BYDAY`, `EXDATE`, moved occurrences) are read; what is not read is counted
491
+ and said. A calendar address is often a secret link: it stays in `config.json`, never in an entry, a report or `etat.json`, and an
492
+ unreachable source withdraws nothing. Under the hood it is the template in `src/moulinettes.js` (`docs/claude/cap-fil.md`,
493
+ « Les moulinettes »): the next moulinettes only write what they read.
494
+ - **Actus** (`flux`) is the second moulinette: the RSS and Atom feeds YOU add, turned into ephemeral entries, no AI, no quota.
495
+ **Each feed you add is an address Feedzy will reach from your PC** — once when you add it (to check it answers with a feed),
496
+ then once per run; nothing is read until you add one. Add it with `routines flux ajouter <address>` or in the extension
497
+ (Settings → MCP → Your routines → Your feeds); ten feeds at most, kept in `flux.sources` of `config.json`. Only `https://`
498
+ (`feed:` reads as https), port 443 only: plain `http://`, another port, an address of this PC or of your local network, an IP
499
+ address, and any redirect towards one are refused. The guard judges the address the name RESOLVES to, before each request and at
500
+ each redirect (loopback, private, link-local, carrier-shared, unique-local: refused) — one limit: the connection resolves the
501
+ name again by itself, so a name that changes its answer in between could still get one https connection attempt, from which
502
+ nothing is read without a valid certificate for that name. Each run deposits the newest articles of each feed — 5 by default (`flux.parFlux`, 1 to 20), not
503
+ older than a week — as one entry each under « À voir »: the title (masked), the feed’s name and the day, the link (https
504
+ only, its query parameters named like a secret — `token`, `key`, `auth`, `sig`… — removed; two articles that would differ only
505
+ by such a parameter are not deposited, and the report says so). The key is a fingerprint of that link (several articles at one
506
+ link — a changelog — get one key each), so a pass updates instead of doubling; an entry leaves one day after the article was
507
+ first seen (`flux.duree`, 1 to 7 days) unless you pin it, and an article already seen never comes back — even after it left the
508
+ feed (`etat.json` remembers a fingerprint, never a title or a link, 90 days after it was last seen, 2,000 at most). A deposit
509
+ that failed is tried again at the next run, for a week at most. The
510
+ reader is bounded and uses no XML parser: 5 MB, 100 articles, no entity declared by a feed is ever expanded, one deadline for the
511
+ whole read; a broken or hostile feed is said (« flux 2 : pas lu ») and the others are still read. A feed address can be
512
+ private (a token in it): it stays in `config.json`, is never printed, logged or returned — the list shows the host, the
513
+ title the feed gives itself and an id — and the tokens Feedzy recognizes in the address (a best effort, not a guarantee) are
514
+ masked in a title, a link carrying one dropped. `config.json` is written atomically, and never rewritten when it cannot be read.
515
+ By hand, `routine Actus` — the name the list shows — is this routine; the id `actus`, in lower case, is Actus IA (with AI).
449
516
  - `~/.feedzy/routines/`: `config.json` (yours), `etat.json` (versions already announced, the door's last answer),
450
517
  `mesures.json` (the cost of each AI routine, and the calibration: dollars and calls of your logs — numbers only).
451
518
  `FEEDZY_ROUTINES_DIR` replaces it, `FEEDZY_CLAUDE` names the Claude Code binary (default: the newest one of the VS Code
452
519
  extension, else `claude`). Exit code: `0` done · `1` bad usage or nothing to read · `2` source cut · `3` Claude Code did
453
- not answer · `4` a Max Cloud feature: on the Free plan `routine`, `routines mesurer` and `routines installer` run nothing
454
- (the list and `routines retirer` stay free).
520
+ not answer · `4` a Max Cloud feature: on the Free plan `routine`, `routines mesurer`, `routines installer` and `routines flux ajouter`
521
+ run nothing (the list, `routines retirer`, `routines flux` and `routines flux retirer` stay free).
455
522
 
456
523
  ## Compatibility — the extension × this package
457
524