@yawlabs/mcp 0.79.0 → 0.79.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
4
4
 
5
+ ## 0.79.1 -- `classifyError` stops scanning bodies that cannot match, and two timing assertions stop flaking the release
6
+
7
+ **Fixed -- a release died on a perf tripwire that nothing had regressed**
8
+
9
+ The `classifyError` backtracking guard asserts that a 98 KB reply classifies in under 500 ms. A release run measured 822 ms and failed. The regex was not slower: the suite runs in parallel and packs 394 s of test time into 88 s of wall clock, so any wall-clock assertion inside it competes for CPU at roughly 4x oversubscription, and a 500 ms budget left nothing for that. The budget is now 3000 ms, which clears the contended worst case by about 3x while sitting about 6x under the regression it exists to catch -- re-introducing the quadratic shape costs 4.3 s in ONE of the four regexes, so roughly 17 s in the call the test times. The numbers and the reasoning are recorded next to the assertion, because a bare constant invites the next person to tighten it back.
10
+
11
+ The sibling failure had the same cause and a different surface: the five Windows shim-escaping tests spawn real `cmd /c` children -- the only thing that actually proves the argument escaping -- and the 11-spawn case ran past the 30 s global `testTimeout` under that same contention while passing in 6 s standalone. Those five now carry the 180 s budget this suite already uses for its `npm run build` step.
12
+
13
+ **Changed -- `classifyError` skips the status regexes on bodies that cannot contain a status code**
14
+
15
+ The four HTTP-status patterns are large four-shape alternations, and `reward.ts` runs `classifyError` over EVERY proxied result -- overwhelmingly successful replies carrying no status code at all. Each of those paid four full regex scans of the whole body. Each pattern now sits behind a `t.includes("<code>")` pre-check. All four shapes concatenate the code digits into the CONSUMING path, never inside an optional group or a lookaround, so the substring is a necessary condition for a match and the guard can only skip work -- it cannot change a classification. On a 98 KB body with no status code the call drops from 58 ms to under 1 ms; a 21,480-input differential against the previous implementation found zero disagreements, and no classification in the suite moves.
16
+
17
+ That guard would have quietly made the tripwire above meaningless -- a digit-free body now exits before the regexes it was written to time. The test input carries a suffix of `x401x x403x x404x x429x`: glued to word characters, so the pre-check opens but no shape can match (`429\b` needs a boundary after the 9) and all four patterns still scan the full 98 KB. The test also asserts the result is `upstream_error`, which is only true if no earlier branch returned -- so a future short-circuit added above them fails the test instead of hollowing it out.
18
+
19
+ ## 0.79.0 -- no code changes
20
+
21
+ Published 2026-09-01 carrying a `CHANGELOG.md` line recorded under the 0.78.0 heading, plus the version bump itself: no source change, no dependency change, no metadata change. Noted here for the same reason 0.76.2 is, so a reader who finds no entry can tell "nothing shipped" from "nobody wrote it down".
22
+
5
23
  ## 0.78.0 -- the vault passphrase prompt reaches the code that needed it, and sidecars stop drifting
6
24
 
7
25
  **Added -- sidecars stopped moving, and nothing said so**
@@ -38,10 +56,10 @@ The new SECRET VAULT section listed every server whose configured env carried `$
38
56
 
39
57
  `YAW_MCP_VAULT_PASSPHRASE` was absent from `yaw-mcp --help`'s environment table while the README pointed at that table for "the full list", and `doctor` said nothing about the vault at all. A user whose server refused to spawn had no surface connecting a `${secret:NAME}` in bundles.json to the variable that makes it work. The var is now in `--help`, and `doctor` reports the vault file, its entry NAMES, which servers reference which names, whether a passphrase is present, and any referenced name that is not stored -- mirrored into `--json` as `.vault`. Names and booleans only: no secret value, and no passphrase, appears in either surface, which is also why the passphrase stays out of `DOCTOR_ENV_VARS` (that block prints raw values). The section is informational and never moves the exit code -- an unset passphrase is the normal state for a terminal run, since it belongs in the env your MCP client spawns yaw-mcp with, which doctor cannot see.
40
58
 
41
- **Added -- `secrets set` says where the passphrase has to live, once, when it creates the vault**
42
-
43
- Storing a secret and using one happen in different processes. `secrets set` runs in the user's own shell, where the passphrase was just supplied; the `${secret:NAME}` substitution runs inside the yaw-mcp that the MCP CLIENT spawns, which has its own environment and cannot prompt for anything. Set the passphrase only in the shell that ran `set` and the result is a vault that works perfectly from the CLI and a server that refuses to start, with nothing on either surface connecting the two -- no SUCCESS path in the CLI mentioned `YAW_MCP_VAULT_PASSPHRASE` at all, so it was discoverable by reading the README, or by hitting the failure and reading the error. Creating the vault now prints a one-time note naming the variable and the environment it belongs in; the wording differs depending on whether it is already set in the current shell, because someone who has exported it needs to be told the client's process is a separate one, not told to set it again. It fires on vault CREATION only -- once per vault, never on the second or the hundredth `set` -- and always on stderr, so `--json` stdout stays a single parseable line and `get`'s cleartext is never polluted. It reports only WHETHER the variable is set, never its value, since CLI output gets pasted into bug reports.
44
-
59
+ **Added -- `secrets set` says where the passphrase has to live, once, when it creates the vault**
60
+
61
+ Storing a secret and using one happen in different processes. `secrets set` runs in the user's own shell, where the passphrase was just supplied; the `${secret:NAME}` substitution runs inside the yaw-mcp that the MCP CLIENT spawns, which has its own environment and cannot prompt for anything. Set the passphrase only in the shell that ran `set` and the result is a vault that works perfectly from the CLI and a server that refuses to start, with nothing on either surface connecting the two -- no SUCCESS path in the CLI mentioned `YAW_MCP_VAULT_PASSPHRASE` at all, so it was discoverable by reading the README, or by hitting the failure and reading the error. Creating the vault now prints a one-time note naming the variable and the environment it belongs in; the wording differs depending on whether it is already set in the current shell, because someone who has exported it needs to be told the client's process is a separate one, not told to set it again. It fires on vault CREATION only -- once per vault, never on the second or the hundredth `set` -- and always on stderr, so `--json` stdout stays a single parseable line and `get`'s cleartext is never polluted. It reports only WHETHER the variable is set, never its value, since CLI output gets pasted into bug reports.
62
+
45
63
  ## 0.77.0 -- the learning signal stops recording things it did not observe, the silent failures get loud, and the dead ends are retired
46
64
 
47
65
  Seven commits of full-pass review work, taken through repeated adversarial rounds. The two user-visible contract changes are first; the rest are fixes.
package/README.md CHANGED
@@ -207,14 +207,18 @@ The project `.yaw-mcp/` is found by walking up from the cwd -- stopping just bef
207
207
 
208
208
  ```jsonc
209
209
  {
210
+ // optional -- gives editors key completion + inline validation
211
+ "$schema": "https://raw.githubusercontent.com/YawLabs/mcp/main/schemas/yaw-mcp.config.v1.json",
210
212
  "version": 1, // schema version; newer versions log a warning
211
213
  "servers": ["gh", "pg", "linear"], // allow-list of namespaces (most-specific scope wins)
212
- "blocked": ["prod-db"], // deny-list (UNION across all scopes -- fail-safe on deny)
214
+ "blocked": ["prod_db"], // deny-list (UNION across all scopes -- fail-safe on deny)
213
215
  "installNudge": true // opt-in: discover may suggest installing MCP servers for
214
216
  // CLIs found in your recent shell history (off by default)
215
217
  }
216
218
  ```
217
219
 
220
+ That shape ships as a JSON Schema -- [`schemas/yaw-mcp.config.v1.json`](schemas/yaw-mcp.config.v1.json), served from the raw URL in the `$schema` line above -- so any editor that honors `$schema` completes the keys and flags a typo as you type. A namespace is `[a-z][a-z0-9_]{0,29}` (so `prod_db`, not `prod-db`); the schema rejects anything else, while the loader only warns and keeps loading.
221
+
218
222
  Malformed files log a warning and fall through (fail-open). yaw-mcp reads config at startup, so restart the client after editing; `mcp_connect_health` shows which files are applied.
219
223
 
220
224
  ### Project guide -- `YAW-MCP.md`
@@ -5,8 +5,7 @@ import {
5
5
  maybeAutoUpgrade,
6
6
  quoteArgForDisplay,
7
7
  quoteShellArgIfNeeded
8
- } from "./chunk-YS4SD3RS.js";
9
- import "./chunk-3RRZQPA5.js";
8
+ } from "./chunk-ODSIFM3N.js";
10
9
  export {
11
10
  acquireUpgradeLock,
12
11
  detectRunningInstallPrefix,