@feedzy/mcp 0.3.0 → 0.3.1
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 +58 -8
- package/dist/index.js +11122 -5908
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -84,7 +84,8 @@ have done, the free way out, and the 30-day trial while it is available. The las
|
|
|
84
84
|
## Configure your AI client
|
|
85
85
|
|
|
86
86
|
Two env vars: `FEEDZY_FOLDER` (absolute path, **required**) and
|
|
87
|
-
`FEEDZY_RECOVERY_PHRASE` (only if the folder is encrypted
|
|
87
|
+
`FEEDZY_RECOVERY_PHRASE` (only if the folder is encrypted — a folder linked from the extension always is; without it, or
|
|
88
|
+
with a wrong one, every tool refuses instead of reading an empty folder).
|
|
88
89
|
|
|
89
90
|
### Cursor — `~/.cursor/mcp.json` (or `.cursor/mcp.json` in a project)
|
|
90
91
|
|
|
@@ -201,7 +202,7 @@ there's no read-exfiltration hole. The push/poll endpoints are gated by an `Orig
|
|
|
201
202
|
> local process can squat a free port in that range and answer `/ping`. The extension
|
|
202
203
|
> only trusts a bridge that **proves knowledge of the token** (HMAC challenge/response),
|
|
203
204
|
> and the bridge now **rejects every authenticated route without one** (403). Copy the
|
|
204
|
-
> token from the extension's Settings
|
|
205
|
+
> token from the extension's Settings › Claude Code and sending › Connect Claude Code.
|
|
205
206
|
>
|
|
206
207
|
> This paragraph used to say the token was "not optional in practice", because a
|
|
207
208
|
> tokenless bridge is never _discovered_. That was true of the extension and false of
|
|
@@ -210,6 +211,15 @@ there's no read-exfiltration hole. The push/poll endpoints are gated by an `Orig
|
|
|
210
211
|
> **write**: a program on the machine could deposit a fabricated feedback corpus that
|
|
211
212
|
> the coding agent then reads as genuine. That is an injection into the agent, not a
|
|
212
213
|
> leak. A tokenless bridge now really does sit there, silent.
|
|
214
|
+
>
|
|
215
|
+
> The proof on `/snapshot`, `/mutations` and `/fil` is bound to **one port and one moment**: the `x-feedzy-nonce` header
|
|
216
|
+
> is `<random>:<port>:<timestamp in ms>`, signed as HMAC(token, `feedzy-snapshot:` + nonce). The bridge accepts it only
|
|
217
|
+
> for its own port, within ±60 s of its clock, and once (it remembers the nonces it has seen). A bare nonce — what an
|
|
218
|
+
> extension released before this rule sends — is refused (403): update the extension before this package. The two
|
|
219
|
+
> clocks must agree to ±60 s, which a bridge in WSL or a container whose clock drifts can miss.
|
|
220
|
+
> On `/snapshot`, the only one of the three that writes what it receives, the nonce carries a fourth piece — the
|
|
221
|
+
> SHA-256 of the exact body, `<random>:<port>:<timestamp in ms>:<sha256(body)>` — and the bridge refuses a body that
|
|
222
|
+
> does not match it (403); `/mutations` and `/fil`, which read no body, refuse that fourth piece.
|
|
213
223
|
|
|
214
224
|
### Snapshot wire format
|
|
215
225
|
|
|
@@ -251,7 +261,7 @@ decided under the launcher's lock, on disk: another launch waiting in `<conversa
|
|
|
251
261
|
`<conversation>.lus.json`, gives `neuve_prise`, whatever server process receives it. A `POST /lancer` carrying
|
|
252
262
|
`annuler: true` withdraws a launch that the plugin has not taken yet (the server takes it in the plugin's place,
|
|
253
263
|
`<conversation>.<id>.pris`, and removes its text): `{ ok: true, annule: true | false }`. The extension
|
|
254
|
-
lists these conversations in Settings
|
|
264
|
+
lists these conversations in Settings › Claude Code and sending › The advanced path ("Connected conversations"). Outside Claude Code (Cursor's own agent,
|
|
255
265
|
Claude Desktop…) there is no conversation id: the line shows the folder and the editor only.
|
|
256
266
|
|
|
257
267
|
**Thirty ports, one conversation too many.** When 51483-51512 are all taken (thirty conversations already hold a
|
|
@@ -391,7 +401,7 @@ where the `.refus` would be). stdout is one JSON line (`{ ok, via: "pont" | "dos
|
|
|
391
401
|
plain words. Exit code: `0` delivered (or left in the folder) · `1` bad usage or shape · `2` refused by Feedzy (source cut,
|
|
392
402
|
token) · `3` nothing could be delivered · `4` a Max Cloud feature: on the Free plan nothing is published.
|
|
393
403
|
|
|
394
|
-
### The
|
|
404
|
+
### The eight routines (FZ-162, FZ-293, FZ-460, FZ-462)
|
|
395
405
|
|
|
396
406
|
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
407
|
asks you once to accept it, and you can cut it at any time.
|
|
@@ -401,13 +411,18 @@ asks you once to accept it, and you can cut it at any time.
|
|
|
401
411
|
| `matin` | 08:00 | yes | your day: what to decide first, what is ready to go — and at most ONE « for you » |
|
|
402
412
|
| `veille` | 08:00 | no | a new Node LTS or Claude Code release (once per version) — `nodejs.org`, `registry.npmjs.org` |
|
|
403
413
|
| `services` | 08:00 | no | one line per service from the command you give it, and a « for you » per alert |
|
|
414
|
+
| `agenda` | 08:00 | no | your appointments of the next days, each at its hour, gone when it ends — from `.ics` |
|
|
415
|
+
| `flux` | 08:00 | no | Actus: the new articles of the RSS feeds you added, one link each, gone after a day |
|
|
404
416
|
| `point` | 13:00 | yes | where each project stands |
|
|
405
417
|
| `actus` | 13:00 | yes | the tools spotted in the AI news you chose (`actus.sources`), added to the tool candidates |
|
|
406
418
|
| `soir` | 18:00 | yes | what got done today (task queue and today's commits), what is left |
|
|
407
419
|
|
|
408
420
|
```bash
|
|
409
421
|
npx @feedzy/mcp routine veille # run one now
|
|
410
|
-
npx @feedzy/mcp routines # the
|
|
422
|
+
npx @feedzy/mcp routines # the eight, their time and their measured cost
|
|
423
|
+
npx @feedzy/mcp routines flux # the RSS feeds Actus reads (none until you add one)
|
|
424
|
+
npx @feedzy/mcp routines flux ajouter https://example.com/feed.xml # add one: Feedzy will read this address
|
|
425
|
+
npx @feedzy/mcp routines flux retirer <id> # remove one (its id, from the list — or its address)
|
|
411
426
|
npx @feedzy/mcp routines mesurer ia # run the AI ones once, publish nothing, keep their cost
|
|
412
427
|
npx @feedzy/mcp routines installer all # Windows Task Scheduler, folder "Feedzy.ai" (an AI routine needs its measure)
|
|
413
428
|
npx @feedzy/mcp routines retirer all
|
|
@@ -431,7 +446,10 @@ npx @feedzy/mcp routines retirer-cloud all # pause them there
|
|
|
431
446
|
- **AI routines** make ONE `claude -p` call to your own Claude Code (`--safe-mode`, no tools, no MCP server, nothing kept in
|
|
432
447
|
your conversations): the routine reads your task queue (`~/.feedzy/espaces.json`) and, for `soir`, today's commit subjects
|
|
433
448
|
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`).
|
|
449
|
+
`~/.feedzy/routines/config.json` (`sonnet` by default, `haiku` for `actus`). Language of what they write: `langue` in the
|
|
450
|
+
same file (`en`, `de`…), otherwise your system's language, otherwise French — also for a routine installed in the cloud
|
|
451
|
+
(set at install time: reinstall it after a change). Installing from the extension (Settings → MCP) writes the extension's
|
|
452
|
+
language there (`langue`), so the routines speak the language you see in Feedzy.ai.
|
|
435
453
|
- **Their cost, in % of your window.** Claude Code tells the usage of your window to the percent, not what one call takes.
|
|
436
454
|
The calibration: what your Claude Code logs cost since the window started (API prices, cache included) divided by its
|
|
437
455
|
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 +464,44 @@ npx @feedzy/mcp routines retirer-cloud all # pause them there
|
|
|
446
464
|
ordinary day with `sonnet`, ≈ 0.0001 % with `haiku`, its default. A day without new posts makes no call.
|
|
447
465
|
- **Services** runs `services.commande` from `~/.feedzy/routines/config.json` (an argv array) and reads
|
|
448
466
|
`{ sources: { name: { etat, … } }, alertes: [{ source, texte, quoi }] }` from its stdout.
|
|
467
|
+
- **Agenda** is a _moulinette_: plain mechanics, no AI, no quota. It reads the `.ics` files and `https://` addresses you list in
|
|
468
|
+
`agenda.sources` of `~/.feedzy/routines/config.json` (`webcal://` reads as https, never plain `http://`) and deposits each appointment
|
|
469
|
+
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`
|
|
470
|
+
minutes earlier if you want, 0 by default; an all-day appointment at `agenda.heureToutLeJour`, 08:00) and leaves when the appointment
|
|
471
|
+
ends. One stable key per appointment (the UID, plus the original start for a repeat) — so a pass updates instead of doubling, a moved
|
|
472
|
+
appointment is followed, a cancelled or removed one is withdrawn. Time zones (`TZID`, `Z`, all-day dates), repeats (`DAILY`,
|
|
473
|
+
`WEEKLY`, `MONTHLY`, `YEARLY`, `COUNT`, `UNTIL`, `INTERVAL`, `BYDAY`, `EXDATE`, moved occurrences) are read; what is not read is counted
|
|
474
|
+
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
|
|
475
|
+
unreachable source withdraws nothing. Under the hood it is the template in `src/moulinettes.js` (`docs/claude/cap-fil.md`,
|
|
476
|
+
« Les moulinettes »): the next moulinettes only write what they read.
|
|
477
|
+
- **Actus** (`flux`) is the second moulinette: the RSS and Atom feeds YOU add, turned into ephemeral entries, no AI, no quota.
|
|
478
|
+
**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),
|
|
479
|
+
then once per run; nothing is read until you add one. Add it with `routines flux ajouter <address>` or in the extension
|
|
480
|
+
(Settings → MCP → Your routines → Your feeds); ten feeds at most, kept in `flux.sources` of `config.json`. Only `https://`
|
|
481
|
+
(`feed:` reads as https), port 443 only: plain `http://`, another port, an address of this PC or of your local network, an IP
|
|
482
|
+
address, and any redirect towards one are refused. The guard judges the address the name RESOLVES to, before each request and at
|
|
483
|
+
each redirect (loopback, private, link-local, carrier-shared, unique-local: refused) — one limit: the connection resolves the
|
|
484
|
+
name again by itself, so a name that changes its answer in between could still get one https connection attempt, from which
|
|
485
|
+
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
|
|
486
|
+
older than a week — as one entry each under « À voir »: the title (masked), the feed’s name and the day, the link (https
|
|
487
|
+
only, its query parameters named like a secret — `token`, `key`, `auth`, `sig`… — removed; two articles that would differ only
|
|
488
|
+
by such a parameter are not deposited, and the report says so). The key is a fingerprint of that link (several articles at one
|
|
489
|
+
link — a changelog — get one key each), so a pass updates instead of doubling; an entry leaves one day after the article was
|
|
490
|
+
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
|
|
491
|
+
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
|
|
492
|
+
that failed is tried again at the next run, for a week at most. The
|
|
493
|
+
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
|
|
494
|
+
whole read; a broken or hostile feed is said (« flux 2 : pas lu ») and the others are still read. A feed address can be
|
|
495
|
+
private (a token in it): it stays in `config.json`, is never printed, logged or returned — the list shows the host, the
|
|
496
|
+
title the feed gives itself and an id — and the tokens Feedzy recognizes in the address (a best effort, not a guarantee) are
|
|
497
|
+
masked in a title, a link carrying one dropped. `config.json` is written atomically, and never rewritten when it cannot be read.
|
|
498
|
+
By hand, `routine Actus` — the name the list shows — is this routine; the id `actus`, in lower case, is Actus IA (with AI).
|
|
449
499
|
- `~/.feedzy/routines/`: `config.json` (yours), `etat.json` (versions already announced, the door's last answer),
|
|
450
500
|
`mesures.json` (the cost of each AI routine, and the calibration: dollars and calls of your logs — numbers only).
|
|
451
501
|
`FEEDZY_ROUTINES_DIR` replaces it, `FEEDZY_CLAUDE` names the Claude Code binary (default: the newest one of the VS Code
|
|
452
502
|
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
|
|
454
|
-
(the list and `routines retirer` stay free).
|
|
503
|
+
not answer · `4` a Max Cloud feature: on the Free plan `routine`, `routines mesurer`, `routines installer` and `routines flux ajouter`
|
|
504
|
+
run nothing (the list, `routines retirer`, `routines flux` and `routines flux retirer` stay free).
|
|
455
505
|
|
|
456
506
|
## Compatibility — the extension × this package
|
|
457
507
|
|