@yawlabs/mcp 1.1.10 → 1.1.12

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
@@ -1,9 +1,139 @@
1
1
  # Changelog
2
2
 
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.
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 + the oam floor check + build + the client matrix, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 1.1.12
8
+
9
+ **Changed -- the oam floor moves to 0.20.1**
10
+
11
+ `npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.20.1 through `oam run` on 2026-11-12 -- both protocol eras, 2025-11-25 (initialize) and 2026-07-28 (server/discover), each through tools/list and tools/call -- and raised `MIN_OAM_VERSION` to it; the floor was 0.20.0. A machine whose oam is older hosts its node/npx sidecars on node instead, and logs a warning naming both versions, `oam self-update` as the fix, and that yaw-mcp needs a restart afterwards.
12
+
13
+ **Changed -- a `node --max-old-space-size` below 16 is hosted on oam again**
14
+
15
+ oam 0.20.1 raises a heap cap under 16 MB to 16 MB instead of failing at startup (YawLabs/oam#479), from the launch flag, `NODE_OPTIONS` and `OAM_MAX_HEAP_MB` alike, and its out-of-memory message says so (`set by --max-old-space-size to 5 MB, raised to oam's 16 MB minimum`). With that oam as the floor, a `node` launch whose `--max-old-space-size` is any positive whole number now moves onto `oam run`; 1.1.11 kept 1-15 on node. The README and `--help` no longer warn that a `NODE_OPTIONS` or `OAM_MAX_HEAP_MB` cap below 8 fails at startup on oam.
16
+
17
+ ## 1.1.11
18
+
19
+ **Breaking -- exit codes, `--json` failure output and `LOG_LEVEL`**
20
+
21
+ `yaw-mcp update` no longer pins a new git build that fails its start check. On a move to a new commit, and for an entry with no commit pinned, nothing is written to bundles.json (no new commit, and no `--ref` or `--git-token-secret` change either); on a move the previous build stays pinned and keeps running, and an entry with no commit pinned has no previous build. In both cases the new build stays on disk until the next cleanup, so a re-run of the same commit (after a fix to the environment, a secret or the machine) does not rebuild it. The entry reports `status: "failed"` (was `"updated"`) with `started: false`, `startError` and an `error` naming the re-run, `to` is `null`, the command exits 1 (was 0) and `--json` has `ok: false` (was `true`). When the commit does not move (only `--ref <ref>` or `--git-token-secret <name>` changed), the build that failed is the one already pinned, so the server was already broken and refusing the change would protect nothing: the ref / token change is still written, as before, but the entry now also reports `status: "failed"` (was `"updated"`) with `started: false` and `startError`, the command exits 1 (was 0) with `ok: false`, `to` is the unmoved commit, and the `error` says the change was written and the pinned build does not start, offering `yaw-mcp update <name> --to <sha>` when another build of the server's own repository is kept on this machine. If bundles.json cannot be written then, the entry keeps the old `ref` (with `kind: null` and empty `newerTags`, since neither was worked out for it), still reports `started: false` with the `startError`, and says the change was not written. A script that read `started: false` on an `updated` entry must now read the failed entry instead; `--no-start-check` still pins without checking.
22
+
23
+ Ctrl+C at the "Proceed? [Y/n]" prompt that allows a git repo's install and build scripts to run now exits 130 in `add --git`, `update`, `sidecars install` and `trust` (was 1), and stops the command there: no further git entry is built, and `sidecars install` skips its npm step. Entries built or failed earlier in the same run are still reported. A bare Enter still consents and Ctrl+D still declines. Ctrl+C at `trust`'s "Build it now?" prompt now exits 130 (was 0); the approval is still recorded, and the message names `yaw-mcp sidecars install` to build later.
24
+
25
+ `yaw-mcp install --all` now exits 130 when you press Ctrl+C at a client's overwrite prompt, the same code a single-client cancel returns, instead of 1; a script that treated exit 1 from `--all` as "cancelled" must check for 130. Answering `[a]bort` at that prompt now ends the whole run instead of failing only that client and moving on: the remaining clients are not attempted, they are named on stderr (`yaw-mcp install --all: aborted at <client>; not attempted: ...`), and the run exits 1 as before.
26
+
27
+ Failures under `--json` now print a document on stdout in three more places. `yaw-mcp secrets ... --json` with bad arguments writes ONE compact line, `{"ok":false,"error":"<message>","exitCode":2}`, where `error` is the plain message; it used to write a pretty-printed multi-line document whose `error` was the stderr envelope as a JSON string, so a script that parsed `error` a second time must now read it directly (stderr and exit code 2 are unchanged). `yaw-mcp call --json` prints one `{"ok":false,"error":"yaw-mcp call: ...","exitCode":N}` document for every failure (bad or unreadable arguments, an unknown server or tool, a disabled, profile-blocked or below-floor server, a `blockedTools` deny, a connect or transport failure), where stdout used to be empty; a tool that answers with `isError` still prints only its raw MCP envelope (exit 1). `yaw-mcp add --json` (catalog, `--command` and `--url` adds) prints one `{"ok":false,"error":"yaw-mcp add: ...","exitCode":N}` document for every failure, in the same pretty layout `add --git --json` already used, where stdout used to be empty. The one exception: an `add --git --json` that was written but failed its start check still prints the `ok:true` document (`"started":false`, `startError`) and exits 1, as before -- only an add that writes nothing prints `ok:false`. In all three the message still goes to stderr (`error` is that message, or a one-line summary of a multi-line one) and the exit codes are unchanged; a script that took empty stdout to mean "failed" must check `ok` or the exit code instead.
28
+
29
+ `LOG_LEVEL` no longer switches subcommands (`list`, `doctor`, ...) to the server's JSON log lines; they keep printing plain `yaw-mcp: warning: ...` lines, and under `LOG_LEVEL` alone they drop debug and info lines, so there `LOG_LEVEL` can only raise the threshold (`warn`, `error`). `LOG_LEVEL=debug yaw-mcp call|add|list ...` used to print the debug lines and now prints nothing extra. Set the new `YAW_MCP_LOG_LEVEL` to get the JSON lines, debug included (`YAW_MCP_LOG_LEVEL=debug`). `YAW_MCP_LOG_LEVEL` takes the same values, also sets the level for the server, and wins over `LOG_LEVEL` when both are set; an unrecognized value is ignored, as for `LOG_LEVEL`. `yaw-mcp upgrade` still keeps the oam probe's own below-floor warning off stderr under either variable (it prints the prose note instead).
30
+
31
+ **Breaking (release tooling only) -- `release.sh`**
32
+
33
+ These affect only whoever runs `./release.sh` from the repo, not the npm package. A release whose CHANGELOG.md does not start with a `## Unreleased` section holding notes now fails in the pre-flight (exit 1, before any gate, bump or tag), unless the notes are already headed `## <version>`, the `v<version>` tag exists, or a `v<version>` bump commit is already made (see step 3 under **Changed** below); before, it went ahead. Step 4 no longer retries an OTP-class `npm publish` failure (EOTP, EAUTH, a one-time-password prompt) three times 30 s apart: it fails on the first one and says to restore the automation token in `~/.npmrc`, never `npm login --auth-type=web`.
34
+
35
+ **Fixed -- `install vscode` on Linux follows `$XDG_CONFIG_HOME`**
36
+
37
+ `yaw-mcp install vscode` (and `uninstall`, `doctor`, `try` and `install --list`) on Linux now use `$XDG_CONFIG_HOME/Code/User/mcp.json` when `XDG_CONFIG_HOME` is set to an absolute path, which is where VS Code reads it. Before, the entry went to `~/.config/Code/User/mcp.json`, which VS Code does not read on such a machine. An entry an earlier version wrote there is left in place and can be deleted by hand.
38
+
39
+ **Fixed -- `install`, `uninstall`, `try` and `import` on client configs**
40
+
41
+ `install --all` now stops when you press Ctrl+C at a client's overwrite prompt, instead of going on to prompt for or write the remaining clients, and names the clients it did not attempt (its exit code is under **Breaking** above). `install` and `--repair` keep the `env` of a Cline entry stored in the nested `transport` form when they rewrite it flat, and so does the heal pass; it was dropped before (`--force` still drops it). `install cline` no longer reports an editor copy as already correct when that file has comments or trailing commas, which Cline cannot load; it warns and says how to fix the file. The overwrite diff says `env: empty block would be removed` for an entry whose stored `env` is `{}`, rather than reporting differing values.
42
+
43
+ A JSON client config in which the key being edited is written twice is still refused, and now says why (`"mcp" is defined 2 times under "mcpServers"`, with the advice to delete the extra definitions by hand) instead of a read-back failure. A `config.toml` that is not valid TOML is refused with the line and column of the error. The post-write check on a Codex `config.toml` now sees a table named `__proto__` instead of ignoring it. `uninstall` no longer says the client "no longer launches yaw-mcp" and needs a restart when the only thing it removed was a leftover `mcp__mcp__*` permission grant; it says only the grant was removed. When nothing was removed because an editor copy of the config could not be edited, `uninstall` ends "Not unwired", names that copy and says any yaw-mcp entry there is still wired; the exit code is still 0. When it removed the entry from some files but could not edit one of a client's editor copies (Cline), it no longer ends with "no longer launches yaw-mcp": the closing line, "Not fully unwired", names each copy it left as it was, says any yaw-mcp entry there is still wired, and still tells you to restart the client for the files that were cleared; the exit code is still 0. `uninstall --keep-legacy` now names any editor copy (for example Cline's settings file under Cursor) whose yaw-mcp entry could not be removed, in the same words, instead of mentioning only the kept legacy entry. On Windows, a path that wraps an upstream launch in `cmd /c` (`try`, for one) refuses a server command or argument containing a line break, instead of writing an entry cmd.exe would silently truncate.
44
+
45
+ `import` on Windows reads client configs from the real `%APPDATA%` when it is redirected away from `<home>\AppData\Roaming`; it used to report the file as missing. `import cline` skips, by name, a server whose entry uses Cline's `${env:NAME}` variable instead of importing the literal text. `import --remove-originals` re-reads the client config right before removing entries, so changes the client made while the import ran are kept, an entry that was edited in the meantime is left in place and named, and one the client removed in the meantime is reported as already gone. The closing hint about credentials imported as plain values now says that `yaw-mcp set <server> env.KEY --secret` asks for the value again (a no-echo prompt, or piped stdin) before it stores it and writes the reference.
46
+
47
+ `import codex-cli` now honours what Codex's config says about each server. A server Codex stores with `enabled = false` is imported into bundles.json as `"isActive": false` (it used to be imported active), and the run says to turn it on with `yaw-mcp enable <namespace>`; re-importing one over an active bundles.json entry turns that entry off, shown in the overwrite diff first. Every Codex key bundles.json cannot hold (`cwd`, `startup_timeout_sec`, `enabled_tools`, ...) is named in a stderr warning instead of being dropped silently. The closing "would now run twice" warning counts only the servers Codex still launches, and an import whose servers are all switched off says removing the originals only tidies Codex's config. The importer also honours a client reader's not-importable reason, skipping that server by name (no shipped reader sets one yet). Flags, exit codes and output keys are unchanged.
48
+
49
+ **Fixed -- `doctor`, `status`, `heal` and trials**
50
+
51
+ `doctor` flags a client entry whose oam entry path is a directory (it used to read as OK); the line reads "its entry file does not exist (or is not a file)", the same test `heal` uses. `heal`, and the startup heal pass, no longer rewrite an entry whose oam entry path is relative, since such a path resolves against the client's working directory. `doctor` no longer calls a JSON client config malformed when the file parses and a later check fails; the row says the launch check failed. Expired trials are reported as warnings (exit 2) when the sweep itself fails, instead of being dropped from the report, and the warning for an expired trial whose marker could not be deleted says the entry "is no longer in" the client config. The SHADOWED CLI USAGE section reads a relocated `HISTFILE` in zsh's extended-history format. `try-cleanup` and `doctor` both reject a trial marker whose `containerPath` holds a non-string element (`try-cleanup` exits 1).
52
+
53
+ `status` (text view) no longer says the vault is unlocked just because a passphrase is set; it says a passphrase is set and not verified, and points at `doctor`, which actually tries it. `status --json` is unchanged there. `status` no longer prints the server's "Failed to load yaw-mcp state, starting fresh" / "Could not read yaw-mcp state file" warning on stderr for a malformed or unreadable state.json; it already reports that file itself as `learning: unreadable` (`learning.readable: false` in `--json`), the same way `doctor` does. When the bundles loader itself fails, `status` now prints its payload, with `config.readable: false` and the reason in `config.warnings`, and still exits 1; stdout used to be empty. `audit` on Windows no longer prints a credential when it refuses a server whose command line contains a cmd.exe metacharacter. A credential-shaped value echoed in an upstream error after a word like "invalid" or "expected" is now redacted in warnings. `upgrade`, the UPGRADE AVAILABLE section of `doctor` and the server's "out of date" log line say that restarting the client fetches the new version only when the client entry runs `@yawlabs/mcp@latest`, and point at `yaw-mcp install <client>` otherwise. `doctor`'s hint beside a stale managed sidecar still says the daily background refresh will update it, and now names the two cases where it will not: a tree installed from another config, and a version npm could not deliver.
54
+
55
+ **Changed -- `doctor` caches registry answers for 24 hours**
56
+
57
+ `yaw-mcp doctor` now caches each npm-registry "latest version" answer (for @yawlabs/mcp and for each installed managed sidecar package) for 24 hours in `~/.yaw-mcp/registry-cache.json` (written 0600; if doctor is the first command to create `~/.yaw-mcp/`, it creates it 0700). A repeated run inside that window makes no registry request, so a newly published version can take up to a day to appear in UPGRADE AVAILABLE or as a stale sidecar. A missing, corrupt or expired cache falls back to the request, and an unreachable registry is never cached. Under `YAW_MCP_READONLY_DIAGNOSTICS`, doctor reads the cache but never writes it, and the text header now reads `... no trial sweep, no config migration, no registry-cache write`; the Yaw Terminal panel therefore saves requests only on answers an ordinary `doctor` run stored in the last 24 hours. `YAW_MCP_DISABLE_PERSISTENCE=1` turns the cache off: `~/.yaw-mcp/registry-cache.json` is neither read nor written, and every run asks the registry, as it did before the cache existed (the variable's `--help` and README entries say so). Exit codes and the `--json` shape are unchanged.
58
+
59
+ **Fixed -- `[Y/n]` prompts decline on end-of-input**
60
+
61
+ End-of-input (Ctrl+D, or a stdin that runs dry) at a `[Y/n]` prompt in `add`, `update`, `sidecars install` and `trust` now declines; it used to be taken as the default yes, which for `trust` and the repo-consent prompt meant running a repository's install and build scripts. A `secrets` or `trust` prompt whose input ends without an answer counts as an empty entry or a decline instead of leaving the command to exit 0 with nothing decided.
62
+
63
+ **Fixed -- git servers: `add --git`, `update`, `share` and `trust`**
64
+
65
+ An `add --git` that is refused after building (a name collision, say) deletes the build it just made instead of leaving it unpinned under `~/.yaw-mcp/git`; a build that was already there, or that another bundles.json pins, is kept. A name collision is now reported before the offer to store secrets and before the start check. `add <name> --git <url>` refuses, with nothing written, when bundles.json already has a server of that name under a different namespace; it used to write an entry pointing at a build directory that did not exist. `--entry <dir>`, or a manifest entry naming a directory, fails with "is not a file" instead of writing a build that is rebuilt on every `sidecars install`. `--subdir ./pkg`, `pkg/` and `pkg` are one directory: the tidy form is stored, `--subdir .` means the repo root, and re-adding the same commit under another spelling reuses the build. A `yaw-mcp.json` whose version is not `1` is called newer than this yaw-mcp only when it is a number above 1. A `file://` URL with a stray `%` no longer crashes, and a git url, ref, subdir or entry in bundles.json holding a C1 control character (0x80-0x9f) is refused like any other control character.
66
+
67
+ `update <name> --to <sha>` works on a machine without git when the kept build was made for this machine; git is required only when the kept build has to be rebuilt, and that is checked before the old build is discarded. `share --json` no longer replaces non-ASCII characters with `?`; they are JSON-escaped, so every string parses back exactly. The text form adds a note when the printed command holds characters outside printable ASCII (pointing at `--json`), adds a note with the PowerShell spelling when the command contains an apostrophe, and another when it contains a double quote, which Windows PowerShell 5.1 drops unless it is written `\"` (the two notes cover those two characters only, and PowerShell 7.3 and later were not checked), quotes a word that starts with `@` or `#`, leaves your own username from an `https://user@host/...` URL out of the command, and notes when an SSH URL logs in as a user other than `git`. An https username is kept, with a note naming it, when the entry has a `--git-token-secret` and git sends that username beside the token, which it does on every host except github.com and `gitlab.*`, where a fixed username is sent (Bitbucket's `x-token-auth` is the case this is for; a personal username on such a host is kept too, and the note tells coworkers to replace it). `--subdir` is no longer printed, marked as differing from `yaw-mcp.json`, when the manifest spells the same directory another way (`./server` or `server/` for `server`). An env value that is not a well-formed `${secret:NAME}` reference (`${secret:gh token}`, say) is printed as `KEY=<set this>` like any other plain value, instead of being passed on as a reference and listed among the secrets. `trust --revoke <project dir>` now withdraws the approval when the project directory has been deleted; it used to report that nothing was approved and leave the approval in place.
68
+
69
+ `update` now treats a start check that crashes as a failed start instead of aborting the whole run with the later entries untried, says "The pin did not move." when another writer moved the pin first, and, when `--to` has to rebuild a build made for another machine and that rebuild fails, says the foreign build was deleted instead of "Nothing was changed". `trust` now recognises package runners whatever their case or Windows extension (`NPX.cmd`, `Uvx.exe`, `Npx`), so it flags an unpinned package spec on entries it used to skip. Git refusals, build logs and `update` output now scrub a URL credential whose unencoded password holds a `/`, whitespace or an `@` (for example `https://user:abc/def==@host`); before, it was printed in full or with its tail left in place. Scrubbing a long build-log line now takes linear time, so a minified or dotted line can no longer stall `add --git` or `update`.
70
+
71
+ **Fixed -- `add`, `set`, `remove`, `list`, `search` and `secrets`**
72
+
73
+ `add` and `call` now end a failed start with the step a shell can take ("then run the command again") instead of telling you to activate the server again. `set <ns> env.KEY=value` no longer asks for confirmation, or exits 2 off a terminal demanding `--force`, when the stored value is the empty placeholder `add` wrote. `add` no longer writes `"optionalEnvKeys": []` on a first add of a server with no optional variables, and `add --json` no longer shows that empty field. `list --json` no longer reports a skipped entry's env keys on a second entry sharing its namespace, and the `remove` confirmation no longer lists `0, 1, ...` as env keys for an entry whose `env` is an array. `search` lists env keys by the rules `add` gates on: a malformed key name is not shown, and a key listed as both required and optional is shown as required. `secrets set NAME --value v --stdin` is refused (exit 2) instead of storing `v` and ignoring stdin. Config warnings for a malformed `blockedTools` say "tool-name strings", and the invalid-namespace warning mentions the 30-character limit. `completion zsh` no longer emits a script with an unmatched quote, which zsh has refused to load since `import` was added in 1.0.0. `foundry export --cap` rejects anything but a positive whole number, and `--out` no longer takes a following flag as its path.
74
+
75
+ **Fixed -- sidecars and the background refresh and self-upgrade**
76
+
77
+ The daily background sidecar refresh no longer runs when it would remove or re-version packages that a `sidecars install` from a project (or an earlier user config) put in the shared tree; it logs why and resumes once a `yaw-mcp sidecars install` run from the user-global config (outside the project) rewrites the tree. A tree that is kept filled from a project is refreshed only by hand. It also stops re-running npm every day for a package npm's configured registry cannot deliver, for example behind a mirror that lags npmjs.org: it logs the package and waits a week, or until a newer version is published. `sidecars install` no longer ends with "These versions are now fixed" when npm exited 0 and no package landed, no longer says nothing reads the installed copies when oam is not hosting the servers (they run from those copies on node), and releases its lock when the git build step throws. These fixes leave its exit codes and `--json` output unchanged (Ctrl+C at a repo's consent prompt is the one new exit code, 130; see **Breaking** above). An exactly pinned npx spec (`pkg@1.2.3`) is no longer satisfied by an installed copy whose version only starts with that version.
78
+
79
+ The background self-upgrade no longer installs into a directory merely named `npm` or `bin` unless a `yaw-mcp` bin shim sits in it (npm's default Windows prefix, `%APPDATA%\npm`, is unaffected); instead it logs a line saying that copy was not updated and giving the same two manual commands `yaw-mcp upgrade` gives (below), since `upgrade`'s own command does not update that copy either. `yaw-mcp upgrade` now applies the same check: it no longer pins `npm install -g --prefix <dir>` when the only evidence that `<dir>` is a global npm prefix is its name, so a project directory named `npm` or `bin` can no longer receive a global install from `upgrade --run`. It prints and runs the plain `npm install -g @yawlabs/mcp@latest`, says that this does not update the copy at `<dir>`, and gives the two manual commands: `npm install -g --prefix <dir> @yawlabs/mcp@latest` if `<dir>` is a global prefix, or `npm install @yawlabs/mcp@latest` in the project root if it is a project. `upgrade --json` reports that plain command as `command` in this case, without the note, so a script that runs it gets an install that may not update the running copy.
80
+
81
+ **Fixed -- the broker's tool list and meta-tools**
82
+
83
+ With two connected servers whose tool names flatten to the same wire name, `tools/list` (and `prompts/list`, `resources/list`) no longer advertises the losing server's entry when the winner is hidden by gateway or lite exposure or a tool filter; the name is left out rather than showing one server's schema for a call that runs on the other. `mcp_connect_exec` with a named `return` no longer repeats the returned value inside `steps`, which now holds only the other steps' outputs; `result` and `stepKeys` are unchanged. A server whose namespace is an inherited Object key (`constructor`, say) keeps its compliance grade, so `YAW_MCP_MIN_COMPLIANCE` applies to it. A server's instructions can no longer imitate the fence delimiters or the `[yaw-mcp]` prefix by changing the whitespace between the words.
84
+
85
+ Smaller ones: `mcp_connect_activate` no longer adds the "tool you asked to keep does not exist" note when the load itself failed; `mcp_connect_suggest` shows a pack's age as "3h ago" rather than a seconds count; `mcp_connect_discover` names the bundles.json in effect, user-global or a trusted project-local one, and its "matches" list no longer counts function words in the query (`what`, `does`, `use`, `when`) as description hits; the `[bundled list]` footer of `mcp_connect_find_tool` is plural when it names several servers; the refusal `mcp_connect_secrets` gives for a disabled server ends "try again to report its secrets"; and the installed-servers line in the routing tool's description no longer repeats the parts of an underscore-separated server name as keywords. A tool call that reconnects a server while startup pre-warm is mid-spawn on it sends its `list_changed` notifications immediately. A client-cancelled tool call no longer counts as an error in re-dispatch miss tracking, and when dispatch loads a runner-up because its pick failed to start, the tracking records the runner-up. The `YAW_MCP_PREWARM=0` startup log line states the real cost: until it is activated, a server with no learned tool list cannot be called by tool name, and `find_tool` sees it only where yaw-mcp ships a bundled list for it.
86
+
87
+ **Fixed -- start failures say what actually failed**
88
+
89
+ Remote connect failures no longer quote a username, password or query string written into a server's url: the userinfo is dropped and the query string is shown as `?...`. An unencoded credential that holds a `/`, `?`, `#` or space is dropped too; where such a url leaves the userinfo ambiguous, everything up to the last `@` is dropped and shown as `...@`. A url whose own path or query holds an `@` is shortened the same way in these messages (`https://host/@org/mcp` is shown as `https://...@org/mcp`); only the message is affected, the connection uses the url as written. Otherwise the path is kept, so a key written as a path segment is still shown. A server that answers the handshake with an error whose text happens to say "not found" is no longer reported as a command missing from PATH; its own message is shown. When a failure is classed as a missing or non-executable command from its wording alone, the original text is included as "Underlying error", and a spawn that fails with EPERM is classed the same way. A server that fails to start with "Missing API key: NAME", "Missing credentials: NAME", "Missing token NAME" or "Missing secret: NAME" on stderr gets the missing-credential prompt for NAME. A failing `resources/list` or `prompts/list` at connect, other than "method not found", is logged as a warning naming the server; the server still loads with that inventory empty. The uv bootstrap download follows a relative redirect.
90
+
91
+ A local server's stderr tail now also redacts a literal URL env value whose unencoded password contains a `/` or a space (an unencoded base64 key such as `postgres://user:abc/def==@host/db`); before, these were shown as plain configuration. Side effect: a URL with an `@` in its path or query is now also redacted in that tail when a `:` comes before its first `/` -- in practice a port (`https://host:8443/mcp?user=a@b.example`) or a colon in the query of a URL with no path (`https://host?t=12:00&u=a@b.example`) -- because it cannot be told apart from a password. A URL with an `@` and no `:` before its first `/` (`https://host/@org/mcp`, `https://host/mcp?t=12:00&u=a@b.example`) stays readable.
92
+
93
+ A build-tree oam named by a relative `OAM_BIN`, or on Windows by a path without its `.exe`, is refused like any other build-tree binary. The "a server opted in to oam but ..." warning is printed once per reason rather than once per process, and a hand-damaged `oam-probe.json` is repaired by the next probe instead of forcing every process to re-probe. If the installed copy yaw-mcp had already found for an npx-launched server (and was running as `node <entry>`) is uninstalled while yaw-mcp runs, the next connect looks for the server again and uses another installed copy or falls back to npx; before, it tried to start the deleted copy, that boot failed once, and the server could stay on raw npx until restart.
94
+
95
+ **Fixed -- response pruning, result capping and routing**
96
+
97
+ Response pruning no longer re-sorts a JSON object's numeric-looking keys or drops the first value of a repeated key: a result with either shape is not re-serialized, so its keys, their order and its values stay as sent (trailing whitespace and long blank runs are still trimmed). A capped tool result with many kept blocks stays under `YAW_MCP_MAX_RESULT_BYTES` (it could exceed it by one byte per kept block, plus two), a result over the ceiling only because of its many small blocks has blocks dropped and counted in the notice, and capping a very large text result is faster. A successful reply that mentions a hyphenated timeout flag, key or header (`--timeout`, `connect-timeout:`) is no longer classified as a timeout, so it no longer lowers that server's reliability score. "disable"/"disabled", "cookie"/"cookies", "movie"/"movies" and "alias"/"aliases" now match each other in dispatch, discover and `find_tool` ranking.
98
+
99
+ **Added -- CLI hints for 12 more catalog servers, and `loaded` in the foundry harvest**
100
+
101
+ Discover, the guide's "Installed MCP servers" section and doctor's shadowed-CLI scan now recognise 12 more catalog servers as standing in for a CLI: Docker (`docker`), MySQL (`mysql`), both Redis servers (`redis-cli`), BigQuery (`bq` query/ls/show), Azure (`az`), DigitalOcean (`doctl`), Vault (`vault`), Consul (`consul`), Terraform CWD (`terraform` state/show/providers), Ansible (`ansible-doc`, `ansible-inventory`, `ansible-config`) and Salesforce (`sf` data/sobject/apex, also under an `sf`-named import), so the model is told to prefer these servers over the CLI. Auth0 stays without a hint, because its server has no user tools. Discover and the guide gain a "prefer over local CLI" line for these namespaces, and doctor's SHADOWED CLI USAGE section and `doctor --json` `shellShadows` gain rows for these CLIs. The doctor scan matches the command name only, so its counts include every subcommand: `terraform plan` and `terraform apply` count toward terraform-cwd, and every `bq`, `docker` and `sf` line counts too. For a custom-named server whose tools all start with `redis_`, the "prefer over local CLI" hint now names `redis-cli`; before, it named `redis`, which is not a real binary.
102
+
103
+ The opt-in foundry harvest (`YAW_MCP_FOUNDRY=1`) now records `loaded` on each `~/.yaw-mcp/foundry.jsonl` row: the namespace that actually served the dispatch, or `null` if nothing loaded. It sits beside `chosen`, which is unchanged and still names the ranker's top pick, even when that server failed to start and a runner-up was loaded instead. Older rows without `loaded` are still read by `yaw-mcp foundry export`, and the export still folds on `chosen`.
104
+
105
+ **Changed -- help text and docs match the code**
106
+
107
+ `--help` and the README now describe what the code does in these places: `heal` tests for an oam entry pointing into an `@yawlabs/mcp` package tree whose launch file is missing, not "an entry yaw-mcp wrote"; `call` refuses a `blockedTools` deny before the tool is called, which is not always before the spawn; `uninstall`, `import` and `heal` are listed among the commands that honor `CLAUDE_CONFIG_DIR`, `APPDATA`, `XDG_CONFIG_HOME`, the three `CLINE_*` variables, `CONTINUE_GLOBAL_DIR` and `CODEX_HOME`, and `XDG_CONFIG_HOME` is said to apply to VS Code's user `mcp.json` on Linux as well as Zed's settings; `blockedTools` is listed under config resolution with how each key merges; `sidecars` is worth installing on either runtime, and its `--json` keys are listed; `reset-learning` also removes cached tool lists, pack history and pre-warm failure records; `update` lists `--git-token-secret` and `--no-start-check`, and its help says what a build that fails its start check now does (see **Breaking** above); `trust` exits 1 with the approval recorded when a git server is left unbuilt under `--yes`; `secrets --force` is accepted and ignored where there is nothing to confirm; `uninstall` lists `--yes`; `try` auto-detect skips TOML-config clients. The README's environment table gains the registry-mirror notes for `YAW_MCP_AUTO_UPGRADE` and `YAW_MCP_SIDECAR_REFRESH`, says `LOG_LEVEL` only sets the level for CLI subcommands, and gains a `YAW_MCP_LOG_LEVEL` row for their JSON log lines; `--help` gains the `YAW_MCP_AUTO_UPGRADE`, `LOG_LEVEL` and `YAW_MCP_LOG_LEVEL` notes too, and its `YAW_MCP_FOUNDRY` note says the harvest stores the chosen (ranked) and loaded (served) namespaces instead of naming a candidate list it stopped writing. The README's `YAW_MCP_PREWARM` row states the same cost as the startup log line, and adds that under `YAW_MCP_TOOL_EXPOSURE=full` such a server's tools are also missing from `tools/list` until it is activated.
108
+
109
+ **Changed -- `release.sh` and `verify:oam-floor`**
110
+
111
+ `release.sh` prints each gate's output as it runs. A re-run whose `package.json` already reads the version shows the confirm prompt and the behaviour-change gate unless the version's tag exists or npm already serves it; without a terminal and without `-y`, such a re-run now stops with exit 1. A resume whose local main is behind or diverged from origin/main is refused in pre-flight instead of failing at the push. The two mcp-publisher downloads are time-limited (120 s and 60 s) and a failed one names the re-run. npm auth and OTP-class publish failures say the automation token in `~/.npmrc` is missing or wrong and how to restore it. The final banner says "released to npm" only when the final npm read confirmed the version. Step 3 now renames CHANGELOG.md's `## Unreleased` heading to the version being released, keeping any ` -- <summary>` suffix (`## Unreleased -- x` becomes `## 1.2.0 -- x`), and adds a fresh, empty `## Unreleased` above it, in the same `vX.Y.Z` bump commit, so the notes are no longer headed by hand. The one exception is a resume over a `v<version>` bump commit with no tag yet, made by an older release.sh that did not head the notes: retitling there would make a second `v<version>` commit, so step 3 warns and leaves the `## Unreleased` heading for you to retitle by hand after the release. A bump committed under any other subject, such as a merged release PR, is still retitled into the release's single `v<version>` commit. The behaviour-change gate reads the version's section when a resume finds the notes already retitled, and finds a bare `## <version>` heading in a CRLF CHANGELOG.md too, on Linux and macOS as well as Windows, instead of reading the empty Unreleased section. (The refusals this adds, and the end of the OTP retry, are under **Breaking (release tooling only)** above.)
112
+
113
+ `npm run verify:oam-floor` prints its FAIL line, not a stack trace, when the probe server exits between answers or a `--raise` file write fails, and `--raise` on an oam version with build metadata (`0.20.0+abc`) writes the bare version.
114
+
115
+ **Changed -- the oam floor moves to 0.20.0**
116
+
117
+ `npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.20.0 through `oam run` on 2026-11-12 -- both protocol eras, 2025-11-25 (initialize) and 2026-07-28 (server/discover), each through tools/list and tools/call -- and raised `MIN_OAM_VERSION` to it; the floor was 0.19.5. A machine whose oam is older hosts its node/npx sidecars on node instead, and logs a warning naming both versions, `oam self-update` as the fix, and that yaw-mcp needs a restart afterwards.
118
+
119
+ **Changed -- a `node --max-old-space-size=N` launch moves to oam only when N is at least 16**
120
+
121
+ On oam 0.20.0 a heap cap of 1-6 MB fails before the server's entry runs (exit 3) and 7 MB runs out of heap at once. node starts from 4 MB (it fails on 1-3 as well), because its effective cap sits about 48 MB above the number and oam's about 6 MB. Such a launch now stays on node; `doctor` reports it as `node-flag-entry`, as it does for any node flag the rewrite will not carry. A cap of 16 MB or more is hosted on oam as before. The oam side is filed as YawLabs/oam#479. The OAM_MAX_HEAP_MB help text and README row now say that `<mb>` must be a whole number (`512m` or `1.5` makes the server exit 9 on oam 0.20.0 and on node), that `NODE_OPTIONS=--max-old-space-size=0` leaves `OAM_MAX_HEAP_MB` in charge on oam, and that oam's out-of-memory message names which setting set the cap (it said `OAM_MAX_HEAP_MB` for all three before 0.20.0). Only the launch flag is checked: a `NODE_OPTIONS` or `OAM_MAX_HEAP_MB` cap below 8 in a server's env still reaches oam and fails at startup, which the help text and README now say.
122
+
123
+ ## 1.1.10 -- the oam floor moves to 0.19.5, and a `node` launch with runtime flags is hosted on oam
124
+
125
+ **Changed -- the oam floor moves to 0.19.5**
126
+
127
+ `npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.19.5 through `oam run` on 2026-11-09 -- both protocol eras, 2025-11-25 (initialize) and 2026-07-28 (server/discover), each through tools/list and tools/call -- and raised `MIN_OAM_VERSION` to it; the floor was 0.19.1. A machine whose oam is older hosts its node/npx sidecars on node instead, and logs a warning naming both versions, `oam self-update` as the fix, and that yaw-mcp needs a restart afterwards.
128
+
129
+ A `node` launch with node runtime flags before its script is now hosted on oam too, where it used to stay on node whatever the flag. oam 0.19.4 accepts node flags right after `run`, and 0.19.5 adds `--max-old-space-size`. The launch moves over only when every flag is one yaw-mcp ran on oam 0.19.5 beside node and saw behave the same: `--max-old-space-size=<mb>`, `--max-http-header-size=<n>`, `--dns-result-order=<order>`, `--disable-warning=<code>`, `--no-warnings`, `--no-deprecation`, `--trace-warnings`, `--trace-deprecation`, `--throw-deprecation`, `--trace-uncaught` and `--expose-gc`. The flags are passed to `oam run` ahead of the script, and a value must be given with `=`. Any other flag keeps the server on node as before -- `--enable-source-maps` (oam refuses it), `--inspect`, `--pending-deprecation`, `--title` and `--env-file` among them -- and so does one of the listed flags with its value as a separate argument. `yaw-mcp doctor` reports which flag kept a server on node.
130
+
131
+ `NODE_OPTIONS=--max-old-space-size=<mb>` in a server's `env` now sets the heap cap on oam as well as on node. oam before 0.19.5 ignored it, so a hosted server ran on oam's own cap whatever `NODE_OPTIONS` said. The out-of-memory hint now says to raise the cap where it is set: the `--max-old-space-size` flag in the server's node args first (it beats `NODE_OPTIONS`), then `NODE_OPTIONS`, which works on both runtimes and beats `OAM_MAX_HEAP_MB`. Raising `OAM_MAX_HEAP_MB` alone does nothing for a server that already sets the flag.
132
+
133
+ `doctor` now finds the entry file of an `oam run` client entry that gives an option its value as a separate argument (`run --check warn <entry>`, `run --max-old-space-size 4096 <entry>`). It used to read the value as the entry, so the real entry file was never checked and a missing one went unreported.
134
+
135
+ ## 1.1.9 -- `add --git` builds a private git-sourced MCP server, pinned to its commit and built with consent
136
+
7
137
  **Added -- `add --git` builds a TypeScript MCP server from a private git repository and pins its commit**
8
138
 
9
139
  `yaw-mcp add [<name>] --git <url>[#ref]` clones a repository you can read, installs and builds it, and records the resolved 40-character commit in `bundles.json`. Each commit gets its own build directory under `~/.yaw-mcp/git/`, and the server runs as `node <entry>` from there (on oam when it is installed). npm, pnpm and yarn repos build, with frozen lockfiles and through corepack when `packageManager` pins a version; bun repos are refused. `--subdir`, `--entry`, `--project`, `--yes`, `--no-start-check` and `-- <server args>` are supported, and `--dry-run` only resolves the ref. An optional `yaw-mcp.json` in the repo can name the namespace, description, entry, subdir and env declarations, never what runs ([schema](./schemas/yaw-mcp.manifest.v1.json)); a nameless add whose manifest namespace a different server already uses is refused. Authentication is your own git: ssh-agent, `~/.ssh/config`, a credential helper, or `--git-token-secret NAME` for a vault token passed to git through `GIT_ASKPASS`. A URL carrying a token is refused, and no credential is ever written to `bundles.json`, `.git/config` or any output. See [Private git servers](./README.md#private-git-servers).
@@ -20,6 +150,12 @@ The first build of a repository shows its install and build lifecycle scripts, a
20
150
 
21
151
  `sidecars install` builds any git server whose pinned commit has no build on this machine; a repository whose scripts were never allowed here is reported as `needs-consent` in `--json`, not as a failed build. `trust` shows a project file's git servers with their commits, and any vault token an entry sends together with the host it goes to, and offers the build after approval. `remove` deletes a git server's builds that no other bundles.json pins. `doctor` lists git servers under OAM RUNTIME with the commit, tracked ref, the last `update --check` result and its age, build status, and the node version and platform of the build, and `doctor --json` carries the same rows in `oamRuntime.git`. Doctor reads only what is on disk and never runs git, so a private SSH remote cannot make it prompt or hang. A missing build, a failed build, or a build made for another platform, arch or node major is a warning (exit 2) that names the rebuild command.
22
152
 
153
+ **Changed -- a failure under `--json` prints a document instead of an empty stdout**
154
+
155
+ `add`, `update`, `share` and an argv error now emit `{"ok": false, "error": "...", "exitCode": n}` on stdout when they refuse under `--json`, where stdout used to be zero bytes -- indistinguishable from a success a script had to parse to notice. The human-readable line stays on stderr and exit codes are unchanged (2 for usage/consent, 1 for failure), and the rest of the document shapes are untouched.
156
+
157
+ ## 1.1.8 -- routing matches plain-English requests to the right server and tool more often
158
+
23
159
  **Changed -- routing picks the right server and tool more often for plain-English requests**
24
160
 
25
161
  Matching now folds plurals and common suffixes ("pull requests" matches "pull request", "vulnerable" matches "vulnerabilities"), understands common developer abbreviations (PR, k8s, repo, db, gh, deps, ...) and derives aliases from each installed server's own names. `find_tool` ignores filler words and no longer breaks ties alphabetically, so a large server no longer wins ties by having more tools. On a 21-server install, the right server ranked first rose from 75% to 81% of test requests, and the right tool ranked first from 39% to 50%.
@@ -28,10 +164,6 @@ Matching now folds plurals and common suffixes ("pull requests" matches "pull re
28
164
 
29
165
  A server is auto-loaded only when enough of the request's meaningful words match it. General questions ("what is the capital of France") and requests for products that are not installed no longer start a server. Dispatch is unaffected: it still loads its best match, and now says when that match is weak and names the runner-up.
30
166
 
31
- **Changed -- a failure under `--json` prints a document instead of an empty stdout**
32
-
33
- `add`, `update`, `share` and an argv error now emit `{"ok": false, "error": "...", "exitCode": n}` on stdout when they refuse under `--json`, where stdout used to be zero bytes -- indistinguishable from a success a script had to parse to notice. The human-readable line stays on stderr and exit codes are unchanged (2 for usage/consent, 1 for failure), and the rest of the document shapes are untouched.
34
-
35
167
  **Added -- dispatch falls back to a close runner-up when its pick fails to start**
36
168
 
37
169
  When the chosen server fails to start, dispatch tries the next candidate if it scored within 1.3x of the failed one and the failed one matched enough of the request's words to be a confident pick, and says which server failed and which was loaded instead. Otherwise the failure is returned as before, so a request for a product that is not installed no longer loads an unrelated server.
@@ -48,16 +180,6 @@ After loading a server, dispatch lists its best-matching tools with their requir
48
180
 
49
181
  The dispatch tool description now ends with a short line (at most 800 characters) listing the installed servers and what they cover, so a client that searches tool descriptions can find dispatch for a request like "list my PRs". The server instructions now also say to answer general-knowledge questions directly, to retry with dispatch when `find_tool` misses, and to call a just-loaded tool through `mcp_connect_exec` if the client reports it missing.
50
182
 
51
- **Changed -- the oam floor moves to 0.19.5**
52
-
53
- `npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.19.5 through `oam run` on 2026-11-09 -- both protocol eras, 2025-11-25 (initialize) and 2026-07-28 (server/discover), each through tools/list and tools/call -- and raised `MIN_OAM_VERSION` to it; the floor was 0.19.1. A machine whose oam is older hosts its node/npx sidecars on node instead, and logs a warning naming both versions, `oam self-update` as the fix, and that yaw-mcp needs a restart afterwards.
54
-
55
- A `node` launch with node runtime flags before its script is now hosted on oam too, where it used to stay on node whatever the flag. oam 0.19.4 accepts node flags right after `run`, and 0.19.5 adds `--max-old-space-size`. The launch moves over only when every flag is one yaw-mcp ran on oam 0.19.5 beside node and saw behave the same: `--max-old-space-size=<mb>`, `--max-http-header-size=<n>`, `--dns-result-order=<order>`, `--disable-warning=<code>`, `--no-warnings`, `--no-deprecation`, `--trace-warnings`, `--trace-deprecation`, `--throw-deprecation`, `--trace-uncaught` and `--expose-gc`. The flags are passed to `oam run` ahead of the script, and a value must be given with `=`. Any other flag keeps the server on node as before -- `--enable-source-maps` (oam refuses it), `--inspect`, `--pending-deprecation`, `--title` and `--env-file` among them -- and so does one of the listed flags with its value as a separate argument. `yaw-mcp doctor` reports which flag kept a server on node.
56
-
57
- `NODE_OPTIONS=--max-old-space-size=<mb>` in a server's `env` now sets the heap cap on oam as well as on node. oam before 0.19.5 ignored it, so a hosted server ran on oam's own cap whatever `NODE_OPTIONS` said. The out-of-memory hint now says to raise the cap where it is set: the `--max-old-space-size` flag in the server's node args first (it beats `NODE_OPTIONS`), then `NODE_OPTIONS`, which works on both runtimes and beats `OAM_MAX_HEAP_MB`. Raising `OAM_MAX_HEAP_MB` alone does nothing for a server that already sets the flag.
58
-
59
- `doctor` now finds the entry file of an `oam run` client entry that gives an option its value as a separate argument (`run --check warn <entry>`, `run --max-old-space-size 4096 <entry>`). It used to read the value as the entry, so the real entry file was never checked and a missing one went unreported.
60
-
61
183
  ## 1.1.7 -- a server Windows will not start is named with its likely cause, instead of a bare `spawn UNKNOWN`
62
184
 
63
185
  **Fixed -- a server whose executable Windows will not run is named, with the likely cause, instead of a bare `spawn UNKNOWN`**
package/README.md CHANGED
@@ -85,6 +85,8 @@ yaw-mcp install --list # detect clients + show install state (read-only)
85
85
  yaw-mcp install --all # install into every client yaw-mcp supports on this OS
86
86
  ```
87
87
 
88
+ When a client already has a different `mcp` entry, `install` asks on a terminal before overwriting it. Under `--all`, answering `[a]bort` (exit 1) or pressing Ctrl+C (exit 130) at that question ends the whole run and names the clients it did not attempt.
89
+
88
90
  > The launch entry is keyed `"mcp"`, so its tools surface under the `mcp__mcp__` namespace. Installs made before the rename used `"mcp.hosting"` / `"yaw-mcp"`; `yaw-mcp install` detects and migrates those.
89
91
 
90
92
  ### Manual install
@@ -150,7 +152,7 @@ Only npx servers naming a **registry package** are installed. An npx launch poin
150
152
 
151
153
  `yaw-mcp doctor` prints the installed version of each configured package under OAM RUNTIME, so a pinned or missing one is visible. To keep npx's self-updating behavior for a particular server instead, give its spec a version range (`pkg@^1.2.3`) or a git/path target — the shapes that always stay on npx. A per-server `runtime: "node"` does NOT keep it: that escape hatch opts out of oam, and the managed tree still supplies the spawn.
152
154
 
153
- `--json` emits the same keys on every run — `root`, `installed`, `reason`, `error`, `conflicts`, `skipped` — so a script can read the result without first working out which path it took.
155
+ `--json` emits the same keys on every run — `root`, `installed`, `reason`, `error`, `updateError`, `markerError`, `unhosted`, `conflicts`, `skipped`, `git` — so a script can read the result without first working out which path it took.
154
156
 
155
157
  To override, in `~/.yaw-mcp/bundles.json`:
156
158
 
@@ -180,6 +182,8 @@ yaw-mcp doctor [--json] # diagnose config, clients, learning, reliability
180
182
  yaw-mcp status [--json] # read-only snapshot of loaded servers, activity, vault state, and call counts
181
183
  ```
182
184
 
185
+ `doctor` is not offline: it asks the public npm registry for the latest version of `@yawlabs/mcp` and of each sidecar package that is both named in `bundles.json` and installed in the managed tree. Each answer is cached for 24 hours in `~/.yaw-mcp/registry-cache.json`, so a repeated run inside that window makes no request, and a newly published version can take up to a day to show under UPGRADE AVAILABLE or as a stale sidecar. A missing, corrupt or expired entry is fetched again, and an unreachable registry is never cached. Under `YAW_MCP_DISABLE_PERSISTENCE=1` the cache is not used at all: it is neither read nor written, and every run asks the registry.
186
+
183
187
  **Servers** -- managed in `~/.yaw-mcp/bundles.json`, browse the catalog at [yaw.sh/mcp/catalog](https://yaw.sh/mcp/catalog/):
184
188
 
185
189
  ```bash
@@ -201,7 +205,9 @@ yaw-mcp trust [--yes|--list|--revoke [<path>]] # approve the project-local .
201
205
 
202
206
  **Servers you already have.** If a client is already configured with MCP servers, `yaw-mcp import <client>` reads that client's own config and adds every server in it to your `bundles.json` -- command, args, url, headers and env as they stand, so the imported server starts exactly as it did before. yaw-mcp's own entry is never imported. A server `bundles.json` already has is merged, the client's copy winning; when that would change the stored entry, `import` shows what differs and asks first on a terminal (`[o]verwrite`, `[s]kip` or `[a]bort`, and a bare Enter skips that server), and off one it writes nothing and exits 2 unless you pass `--force`. `--dry-run` shows what would come across without writing anything, and with `--remove-originals` it also lists the client entries a real run would remove, or says why it would remove none.
203
207
 
204
- After an import the client is *still* launching those servers itself, so each one would run twice -- once directly, once through yaw-mcp. `import` says so and offers to remove the originals from the client config: on a terminal it asks (a bare Enter is no), and off one it leaves them alone and names the `--remove-originals` flag. It refuses to remove them at all if the client has no yaw-mcp entry, since that entry is the only way it would still reach them -- run `yaw-mcp install <client>` first.
208
+ From Codex CLI, a server stored with `enabled = false` is imported switched off (`"isActive": false`), so it does not load until `yaw-mcp enable <namespace>`; the run says which ones. A Codex key `bundles.json` has no field for (`cwd`, `startup_timeout_sec`, `enabled_tools`, ...) is not carried over, and each one is named in a warning.
209
+
210
+ After an import the client is *still* launching those servers itself, so each one would run twice -- once directly, once through yaw-mcp (a Codex server stored `enabled = false` runs in neither place, and is not counted). `import` says so and offers to remove the originals from the client config: on a terminal it asks (a bare Enter is no), and off one it leaves them alone and names the `--remove-originals` flag. It refuses to remove them at all if the client has no yaw-mcp entry, since that entry is the only way it would still reach them -- run `yaw-mcp install <client>` first.
205
211
 
206
212
  An imported entry carries no catalog slug, so its handles are its namespace and its **name** (the key the client used). `remove`, `set`, `enable` and `disable` all accept either: `yaw-mcp remove "GitHub Copilot"` works as well as `yaw-mcp remove githubcopilot`.
207
213
 
@@ -217,6 +223,8 @@ yaw-mcp add linear --url https://mcp.linear.app/mcp \
217
223
 
218
224
  `--header` is repeatable and remote-only: a remote server spawns no process, so `--env` cannot reach it (see [`headers`](#remote-servers-headers)). `--transport sse` selects SSE over the streamable-HTTP default. `--description` is worth setting either way, since dispatch ranks servers on it.
219
225
 
226
+ `add --json` prints the written entry as a JSON document. An add that writes nothing prints one `{"ok":false,"error":"yaw-mcp add: ...","exitCode":n}` document on stdout instead, with the message on stderr (`error` is that message, or a one-line summary of a multi-line one); an `add --git` that was written but failed its start check prints the `ok:true` document with `"started":false` and a `startError`, and exits 1.
227
+
220
228
  A project-local `.yaw-mcp/bundles.json` (committed with a repo) is ignored until `yaw-mcp trust` approves it, since every server in it is a command yaw-mcp spawns as you. Approval is pinned to the file's exact contents, so an edited file needs approving again; `--list` shows approvals (stale ones flagged) and `--revoke` withdraws one. Your own `~/.yaw-mcp/bundles.json` is never gated.
221
229
 
222
230
  **Calling a server from a shell** -- for a git hook, a Makefile, a cron job or an agent loop that does not speak MCP:
@@ -227,9 +235,9 @@ yaw-mcp call github search --args-stdin < args.json # ...or pipe the argument ob
227
235
  yaw-mcp call github search --json # the raw MCP envelope, not just its text
228
236
  ```
229
237
 
230
- One call, one spawn: the server is started for the call and torn down again, so nothing stays loaded and two calls are two spawns (for a batch, the `mcp_connect_exec` pipeline is the right tool). The tool's text goes to stdout verbatim so it can be piped; diagnostics go to stderr. Exit `0` when the tool answered, `1` when it could not be called or answered with an error, `2` when your own config refused the call.
238
+ One call, one spawn: the server is started for the call and torn down again, so nothing stays loaded and two calls are two spawns (for a batch, the `mcp_connect_exec` pipeline is the right tool). The tool's text goes to stdout verbatim so it can be piped; diagnostics go to stderr. Exit `0` when the tool answered, `1` when it could not be called or answered with an error, `2` when your own config refused the call. With `--json`, a call that fails prints one `{"ok":false,"error":"yaw-mcp call: ...","exitCode":n}` document on stdout instead of the envelope, with the same message on stderr; a tool that answers with an error still prints its raw MCP envelope (`isError: true`) and exits `1`.
231
239
 
232
- It gets the same policy a proxied call gets, and gets it *before* the server is spawned: a disabled server, one your project profile blocks, one below `YAW_MCP_MIN_COMPLIANCE`, and any tool on the [`blockedTools`](#blocking-individual-tools) deny list are all refused. A `${secret:NAME}` in the server's env resolves from the vault exactly as it does for the broker.
240
+ It gets the same policy a proxied call gets: a disabled server, one your project profile blocks and one below `YAW_MCP_MIN_COMPLIANCE` are refused *before* the server is spawned, and a tool on the [`blockedTools`](#blocking-individual-tools) deny list is refused before it is called (before the spawn too, except when the deny only matches the tool's name as the server itself lists it). A `${secret:NAME}` in the server's env resolves from the vault exactly as it does for the broker.
233
241
 
234
242
  **Inspection & maintenance**
235
243
 
@@ -237,7 +245,7 @@ It gets the same policy a proxied call gets, and gets it *before* the server is
237
245
  yaw-mcp bundles [list|match] [--json] # browse curated bundles; match partitions against your enabled servers
238
246
  yaw-mcp upgrade [--run] [--json] # show (or run) the command that bumps @yawlabs/mcp
239
247
  yaw-mcp heal [--dry-run] [--json] # re-point yaw-mcp client entries whose launch file an app upgrade deleted (runs at startup too)
240
- yaw-mcp reset-learning # clear cross-session learning (~/.yaw-mcp/state.json)
248
+ yaw-mcp reset-learning # delete ~/.yaw-mcp/state.json: cross-session learning, cached tool lists, pack history
241
249
  yaw-mcp completion <bash|zsh|fish|powershell> # print a shell-completion script
242
250
  ```
243
251
 
@@ -248,7 +256,7 @@ yaw-mcp compliance <target> # run the compliance suite (88 tests on 2025-11-25
248
256
  yaw-mcp audit <namespace> # audit a stdio server from bundles.json, cache its A-F grade in grades.json
249
257
  ```
250
258
 
251
- `heal` exists for the entry that pins a path (see [Running yaw-mcp on oam](#running-yaw-mcp-on-oam)): an app upgrade that deletes the directory the path named leaves the client unable to start the broker, and the client cannot report that because it cannot start the thing that would. The broker runs the same sweep at every startup, cross-client, so a client whose entry still works repairs the ones that do not; `heal` is for the machine whose only configured client is the broken one. It touches only an entry yaw-mcp wrote that is currently broken -- a working entry is never rewritten, however unusual it looks -- and prints each old and new path. A stale entry it finds and cannot re-point -- a read-only config file on Windows, say -- is reported on stderr with the step past it, listed under `failed` in `--json`, and makes the run exit 1. `--dry-run` reports without writing; `--quiet` keeps the exit code and `--json` and drops the transcript. `YAW_MCP_AUTO_HEAL=0` turns the startup sweep off; `YAW_MCP_READONLY_DIAGNOSTICS=1` turns both off.
259
+ `heal` exists for the entry that pins a path (see [Running yaw-mcp on oam](#running-yaw-mcp-on-oam)): an app upgrade that deletes the directory the path named leaves the client unable to start the broker, and the client cannot report that because it cannot start the thing that would. The broker runs the same sweep at every startup, cross-client, so a client whose entry still works repairs the ones that do not; `heal` is for the machine whose only configured client is the broken one. It touches only an oam entry that points into an `@yawlabs/mcp` package tree and whose launch file is missing or not a file (a hand-written entry of that shape included) -- a working entry is never rewritten, however unusual it looks -- and prints each old and new path. A stale entry it finds and cannot re-point -- a read-only config file on Windows, say -- is reported on stderr with the step past it, listed under `failed` in `--json`, and makes the run exit 1. `--dry-run` reports without writing; `--quiet` keeps the exit code and `--json` and drops the transcript. `YAW_MCP_AUTO_HEAL=0` turns the startup sweep off; `YAW_MCP_READONLY_DIAGNOSTICS=1` turns both off.
252
260
 
253
261
  To install completion, redirect to your shell's completions dir, e.g. `yaw-mcp completion zsh > "${fpath[1]}/_yaw-mcp"`, or `yaw-mcp completion powershell >> $PROFILE`.
254
262
 
@@ -267,7 +275,7 @@ yaw-mcp add tools --git git@gitlab.acme.dev:infra/mono.git --subdir packages/mcp
267
275
  - **The entry** is the package's `bin`, then `main`, unless `--entry` says otherwise. `add` starts the server once and lists its tools before it reports success (`--no-start-check` skips that).
268
276
  - `--dry-run` only resolves the ref and prints the commit it would pin.
269
277
 
270
- **Build-script consent is asked once per repository.** The first build of a repo shows its install and build lifecycle scripts (pre/post hooks and every workspace package's scripts included), plus any repo config that can run code at install -- `.npmrc`, `.yarnrc`, `.yarnrc.yml` (`yarnPath`, `plugins`), `.pnpmfile.cjs`, `pnpm-workspace.yaml` hooks -- and asks before running them. That config is shown, not blocked. The answer is stored per repository in `~/.yaw-mcp/git/consent.json`, and later builds of the same repo -- `update`, a new ref, `--to`, `sidecars install`, a second server from the same repo -- do not ask again, even when the scripts change. `git@host:org/repo`, `ssh://git@host/org/repo` and `https://host/org/repo.git` count as the same repository. Off a terminal there is nobody to ask, so a repo with no stored grant needs `--yes`, which also records the grant. Nothing is ever cloned or built when yaw-mcp loads, lists, prewarms or activates a server: a server with no build on this machine fails activation with `Run: yaw-mcp sidecars install`.
278
+ **Build-script consent is asked once per repository.** The first build of a repo shows its install and build lifecycle scripts (pre/post hooks and every workspace package's scripts included), plus any repo config that can run code at install -- `.npmrc`, `.yarnrc`, `.yarnrc.yml` (`yarnPath`, `plugins`), `.pnpmfile.cjs`, `pnpm-workspace.yaml` hooks -- and asks before running them. That config is shown, not blocked. The answer is stored per repository in `~/.yaw-mcp/git/consent.json`, and later builds of the same repo -- `update`, a new ref, `--to`, `sidecars install`, a second server from the same repo -- do not ask again, even when the scripts change. `git@host:org/repo`, `ssh://git@host/org/repo` and `https://host/org/repo.git` count as the same repository. Off a terminal there is nobody to ask, so a repo with no stored grant needs `--yes`, which also records the grant. At the `Proceed? [Y/n]` question a bare Enter consents, Ctrl+D declines, and Ctrl+C stops the command with exit 130 -- in `add --git`, `update`, `sidecars install` and `trust` alike -- with nothing more built (`sidecars install` also skips its npm step). Nothing is ever cloned or built when yaw-mcp loads, lists, prewarms or activates a server: a server with no build on this machine fails activation with `Run: yaw-mcp sidecars install`.
271
279
 
272
280
  **The repo's `yaw-mcp.json` (optional).** A server repo can carry a `yaw-mcp.json` at its root (and at `<subdir>/yaw-mcp.json`, which overrides the root key by key) so that a bare `add --git <url>` needs no other flags:
273
281
 
@@ -289,9 +297,9 @@ It can set the namespace, description, entry, subdir and env declarations -- nev
289
297
 
290
298
  **Sharing with coworkers.** `yaw-mcp share <name>` prints the line a coworker pastes -- an `SSH:` and an `HTTPS:` form when the URL converts cleanly -- and the secrets they will be asked for. It prints the ref the server tracks, or the exact commit with `--pin`, and warns when that ref is a branch, since each coworker would get whatever the branch points at that day. It never prints env values, vault contents or local paths, and whatever the repo's `yaw-mcp.json` does not declare is spelled out as flags. Read access to the repository is the whole permission model: there is no registry and no sharing layer.
291
299
 
292
- **Updating.** `yaw-mcp update` moves each git server tracking a branch to the commit the branch points at now. The new commit is built beside the current one and `bundles.json` is repointed only after the build succeeds, so a failed build changes nothing. A server tracking a tag or a commit is pinned: it is reported, not moved. `--check` only asks the remote and reports each server as up to date, behind or pinned, plus newer version tags for one tracking a tag. `--ref <ref>` switches what a server tracks, and `--to <sha>` goes back to a build kept on this machine (the current build and the one before it are kept, plus any build another bundles.json on this machine still pins; older ones are deleted). `yaw-mcp remove` deletes the server's builds with it, except one another bundles.json still pins, which it names. A project file you have not trusted is refused by `update` (even `--check`) and `share`, so its URL and vault secret are never used. `update` never touches yaw-mcp itself -- that is `yaw-mcp upgrade`.
300
+ **Updating.** `yaw-mcp update` moves each git server tracking a branch to the commit the branch points at now. The new commit is built beside the current one and `bundles.json` is repointed only after the build succeeds and the server starts (one real handshake), so a failed build changes nothing. A build that finishes but does not start is not pinned either: on a move to a new commit nothing is written to `bundles.json` (not even a `--ref` or `--git-token-secret` change), the previous build stays pinned and keeps running, the entry is reported as failed with the reason and the re-run command, and the exit code is 1 (`ok: false` under `--json`). The new build stays on disk, so the re-run after you fix the cause does not rebuild it; `--no-start-check` pins without the check. When the commit does not move (only `--ref` or `--git-token-secret` changed), the build that failed is the one already pinned, so the change is written anyway; the entry is still reported as failed (exit 1, `ok: false`), and its error says the change was written and the pinned build does not start. A server tracking a tag or a commit is pinned: it is reported, not moved. `--check` only asks the remote and reports each server as up to date, behind or pinned, plus newer version tags for one tracking a tag. `--ref <ref>` switches what a server tracks, and `--to <sha>` goes back to a build kept on this machine (the current build and the one before it are kept, plus any build another bundles.json on this machine still pins; older ones are deleted). `yaw-mcp remove` deletes the server's builds with it, except one another bundles.json still pins, which it names. A project file you have not trusted is refused by `update` (even `--check`) and `share`, so its URL and vault secret are never used. `update` never touches yaw-mcp itself -- that is `yaw-mcp upgrade`.
293
301
 
294
- **Teammates, through a project file.** `add --git --project` and `update --project` write the server, with its pinned commit, into the project's `.yaw-mcp/bundles.json`, keeping the file's comments; commit that file. A teammate who pulls it runs `yaw-mcp trust`, which shows the git server, its commit, and any vault token the entry would send together with the host it goes to, and, after approval, offers to build it (or run `yaw-mcp sidecars install` later). Project trust and repo consent are separate gates: approving the file does not skip the once-per-repo script consent, and a project entry with no pinned commit is refused rather than built from a moving branch. When the file was approved before your own `--project` write, the approval is renewed for you; otherwise it stays unapproved and the command says so.
302
+ **Teammates, through a project file.** `add --git --project` and `update --project` write the server, with its pinned commit, into the project's `.yaw-mcp/bundles.json`, keeping the file's comments; commit that file. A teammate who pulls it runs `yaw-mcp trust`, which shows the git server, its commit, and any vault token the entry would send together with the host it goes to, and, after approval, offers to build it (or run `yaw-mcp sidecars install` later). With `--yes` (which a run off a terminal requires; without it such a run is refused and nothing is recorded), `trust` does not build: it records the approval, prints the build command and exits 1 -- approved, but not runnable yet. Declining the build offer exits 0; Ctrl+C at it, or at a repo's script-consent question, exits 130 with the approval kept and names `yaw-mcp sidecars install` for the build. Project trust and repo consent are separate gates: approving the file does not skip the once-per-repo script consent, and a project entry with no pinned commit is refused rather than built from a moving branch. When the file was approved before your own `--project` write, the approval is renewed for you; otherwise it stays unapproved and the command says so.
295
303
 
296
304
  **Doctor.** `yaw-mcp doctor` lists git servers under OAM RUNTIME: commit, tracked ref, the last `update --check` result and its age, build status, and the node version and platform the build was made with. Doctor never runs git (a private SSH remote can prompt or hang), so "behind" is only as fresh as your last `update --check`. A missing build, a failed build, or one made for another platform, arch or node major is a warning (exit 2) that names the rebuild command. `doctor --json` carries the same rows in `oamRuntime.git`.
297
305
 
@@ -324,6 +332,7 @@ The project `.yaw-mcp/` is found by walking up from the cwd -- stopping just bef
324
332
  "version": 1, // schema version; newer versions log a warning
325
333
  "servers": ["gh", "pg", "linear"], // allow-list of namespaces (most-specific scope wins)
326
334
  "blocked": ["prod_db"], // deny-list (UNION across all scopes -- fail-safe on deny)
335
+ "blockedTools": ["gh_delete_repo"], // per-tool deny-list -- see "Blocking individual tools" below
327
336
  "installNudge": true // opt-in: discover may suggest installing MCP servers for
328
337
  // CLIs found in your recent shell history (off by default)
329
338
  }
@@ -416,7 +425,7 @@ A remote (HTTP/SSE) server spawns no process, so it has no env to put a credenti
416
425
 
417
426
  Headers are resolved through the same fail-closed path: a missing or malformed reference refuses the **connect**, so no request is made at all rather than one carrying the literal to a third party. They apply to both transports, including the SSE stream.
418
427
 
419
- **Where the passphrase comes from.** Three ways, in the order you'll meet them:
428
+ **Where the passphrase comes from.** Three ways -- items 1, 2 and 4 below, in the order you'll meet them. Item 3 is the same in-session page asking for a different thing: a credential a child server is missing, not the vault passphrase.
420
429
 
421
430
  1. **`YAW_MCP_VAULT_PASSPHRASE` in yaw-mcp's own env** -- the `env` block of the *yaw-mcp* entry in your MCP client config, not the upstream server's (yaw-mcp strips its own secrets from the env of every child it starts: every server it spawns, the npm runs behind its self-upgrade and the daily sidecar refresh, and the compliance suite). This is the only option for a spawn, which happens over stdio with no terminal to prompt on.
422
431
  2. **An in-session prompt for the vault.** If your client supports MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), a locked vault asks for the passphrase and retries the server. The passphrase is never typed into your client's dialog: it goes into a masked field on a one-shot page yaw-mcp serves on `127.0.0.1`. A client with URL-mode elicitation opens that page from its own prompt. A client with form mode only (Claude Code, for one) asks whether to open it, and on yes yaw-mcp opens it in your default browser; with no browser to open (no graphical session), the call fails and names the env var instead. The page takes one submission and expires after 3 minutes. A mistyped passphrase gets one more try per session; a decline stops the asking. It's held in memory for that session only -- never written to disk, and never handed to the server being started.
@@ -436,7 +445,7 @@ yaw-mcp secrets reset # forgot the passphrase? move the vault aside, l
436
445
  yaw-mcp secrets audit [--secret NAME] [--server NS] [--json] # who consumed which secret, when
437
446
  ```
438
447
 
439
- The passphrase derives the key via scrypt and is cached in memory for one process; the on-disk file holds only ciphertext (AES-256-GCM, per-entry IV + tag, one vault salt). `rotate` decrypts every entry first and aborts untouched if any fails -- and it re-wraps the **encryption**, not the underlying tokens (a leaked token is still leaked; rotate it at its source). `audit` reads an append-only NDJSON log (mode `0600` on macOS and Linux; Windows does not apply that mode, so it inherits your profile's NTFS permissions) of secret NAME + namespace + timestamp -- never a value -- and writes fail-open so a broken log never blocks a spawn.
448
+ The passphrase derives the key via scrypt and is cached in memory for one process; the on-disk file holds only ciphertext (AES-256-GCM, per-entry IV + tag, one vault salt). `rotate` decrypts every entry first and aborts untouched if any fails -- and it re-wraps the **encryption**, not the underlying tokens (a leaked token is still leaked; rotate it at its source). `audit` reads an append-only NDJSON log (mode `0600` on macOS and Linux; Windows does not apply that mode, so it inherits your profile's NTFS permissions) of secret NAME + namespace + timestamp -- never a value -- and writes fail-open so a broken log never blocks a spawn. Under `--json`, `secrets` prints its result as one JSON line on stdout and puts warnings, and on failure the `{"ok":false,"error":...}` envelope, on stderr as one JSON object per line; an argument error also puts one compact line on stdout, `{"ok":false,"error":"<message>","exitCode":2}`, carrying the same message.
440
449
 
441
450
  **Forgot the passphrase?** There is no recovery: the file holds only ciphertext under a key derived from the passphrase, and nothing else -- no server, no recovery key -- can open it. `yaw-mcp secrets reset` is the way back to a working vault. It prints the entry names the vault holds (plaintext keys, so no passphrase is needed) so you know what to set again, asks you to type `RESET` (or takes `--force` from a script; without it, no TTY means a refusal), moves the old file aside as `secrets.json.reset-<timestamp>` next to the vault -- it still opens under the old passphrase, should that turn up -- and creates an empty vault under a new passphrase, confirmed twice on a TTY or taken from `YAW_MCP_VAULT_PASSPHRASE` when it is set. It refuses when the passphrase it is given already opens the vault: that is `rotate`, not a reset. Afterwards, a yaw-mcp server that is already running keeps the passphrase it started with and needs a restart, and a `YAW_MCP_VAULT_PASSPHRASE` in a client config's `env` block still holds the old value. `yaw-mcp doctor` says whether the passphrase it can see unlocks the vault.
442
451
 
@@ -455,8 +464,8 @@ MCP servers are third-party code you choose to run. yaw-mcp doesn't sandbox them
455
464
  - **Compliance grades (A-F)** -- the `@yawlabs/mcp-compliance` suite (88 tests for MCP 2025-11-25, 103 for 2026-07-28, picked by what the server speaks) grades a server; `yaw-mcp list` shows it in a `GRADE` column and `discover` shows it inline (`github [ready] [A]`). `YAW_MCP_MIN_COMPLIANCE=B` makes `activate` refuse anything below the floor. Ungraded servers pass (don't punish unknown); audit them yourself with `yaw-mcp compliance <target>`.
456
465
  - **Source transparency** -- `list` and `discover` show the exact `command`, `args`, and `url` each server launches with. Nothing is wrapped.
457
466
  - **Local credentials** -- vault values are encrypted at rest (scrypt + AES-256-GCM), injected at spawn, and never logged. Nothing is transmitted off the machine.
458
- - **Failure output reaches your client** -- when a server fails to start, the tail of its stderr is attached to the activation error, so it lands in your client's context (and your model's) as well as the log. That tail is the server's own output -- never your files, buffers or shell history -- and it is redacted first: values yaw-mcp injected from `bundles.json` or the vault, resolved request headers, and credential-named variables inherited from your shell (`GITHUB_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `NPM_TOKEN`, ...) are each replaced with `***NAME***`, which names the credential to rotate without showing it. An inherited name whose last segment is `PATH`, `FILE`, `DIR`, `HOST`, `PORT`, `PREFIX` or `SIZE` (`SSH_KEY_PATH`, `TOKEN_BUCKET_SIZE`) does not count as credential-named. Redaction is exact-substring on values of 8 characters or more, so a credential parked under a name that does not read as one is not covered. There is no opt-out: the tail is what makes a failed start diagnosable, and the missing-credential prompt below reads the same text.
459
- - **Response pruning** (`YAW_MCP_PRUNE_RESPONSES`, on by default) -- trims token cost by dropping no-information keys (null / empty array / empty object) and trimming trailing whitespace and long blank runs in text results. The text rules classify the block before editing it, so a unified diff comes back byte-faithful, fenced code blocks are left alone, and Markdown hard line breaks survive. Structured values are never altered or redacted; it is a token-savings feature, not a security control.
467
+ - **Failure output reaches your client** -- when a server fails to start, the tail of its stderr is attached to the activation error, so it lands in your client's context (and your model's) as well as the log. That tail is the server's own output -- never your files, buffers or shell history -- and it is redacted first: values yaw-mcp injected from the vault, literal `bundles.json` env values under a credential-shaped name or holding a URL with a password (`postgres://user:pass@host/db`, an unencoded password with a `/` or space in it included), resolved request headers, and credential-named variables inherited from your shell (`GITHUB_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `NPM_TOKEN`, ...) are each replaced with `***NAME***`, which names the credential to rotate without showing it. An inherited name whose last segment is `PATH`, `FILE`, `DIR`, `HOST`, `PORT`, `PREFIX` or `SIZE` (`SSH_KEY_PATH`, `TOKEN_BUCKET_SIZE`) does not count as credential-named. A URL value with an `@` in its path or query and a `:` before its first `/` (`https://host:8443/mcp?user=a@b.example`) is redacted too, since it cannot be told apart from one carrying a password. Redaction is exact-substring on values of 8 characters or more, so a credential parked under a name that does not read as one is not covered. There is no opt-out: the tail is what makes a failed start diagnosable, and the missing-credential prompt below reads the same text.
468
+ - **Response pruning** (`YAW_MCP_PRUNE_RESPONSES`, on by default) -- trims token cost by dropping no-information keys (null / empty array / empty object) and trimming trailing whitespace and long blank runs in text results. The text rules classify the block before editing it, so a unified diff comes back byte-faithful, fenced code blocks are left alone, and Markdown hard line breaks survive. A file returned as plain text is treated like any other text, so trailing whitespace and long blank runs in it are trimmed too; set `YAW_MCP_PRUNE_RESPONSES=0` when you need file contents byte for byte. JSON is not re-serialized when doing so would reorder numeric-looking keys or merge a repeated key: its keys, their order and its values stay as sent, and only trailing whitespace and long blank runs are trimmed. Structured values are never altered or redacted; it is a token-savings feature, not a security control.
460
469
  - **Namespace isolation** -- tools are namespace-prefixed (`gh_create_issue`, never bare `create_issue`), so a server can't impersonate another's tools. `mcp_connect_read_tool` inspects a schema before any code runs.
461
470
 
462
471
  yaw-mcp does **not** block outbound traffic, firewall DNS, analyze source, or pin hashes -- a malicious server you chose to run can reach any URL your machine can. Review the command before adding a server, run untrusted ones under a restricted user or container, and prefer graded servers when alternatives are equivalent. Report a security issue in yaw-mcp itself via [GitHub private advisories](https://github.com/YawLabs/mcp/security/advisories/new) (see [`SECURITY.md`](./SECURITY.md)).
@@ -476,13 +485,13 @@ Common ones (run `yaw-mcp --help` for the full list):
476
485
  | `YAW_MCP_VAULT_PASSPHRASE` | Passphrase for the local secret vault. Required for spawn-time `${secret:NAME}` substitution -- set it in yaw-mcp's own env, not the upstream server's. Clients supporting elicitation prompt for it instead. When set, `yaw-mcp secrets reset` keys the fresh vault it creates under it. |
477
486
  | `YAW_MCP_TRUST_PROJECT` | `1` skips the consent check on a project-local `.yaw-mcp/bundles.json` and loads it unconditionally. CI/automation only -- it lets any repo you run yaw-mcp inside spawn commands as you. Default: the file must be approved with `yaw-mcp trust`. |
478
487
  | `YAW_MCP_AUTO_ACTIVATE` | `0` disables discover auto-loading a clearly-winning server. Default on. |
479
- | `YAW_MCP_AUTO_UPGRADE` | `0` disables the background self-upgrade check at startup. Default on. |
480
- | `YAW_MCP_AUTO_HEAL` | `0` disables the startup pass that re-points client entries whose launch file no longer exists -- what an app upgrade leaves behind when it deletes the directory the entry named. The pass only rewrites an entry yaw-mcp wrote that is currently broken; `yaw-mcp heal` is the same sweep on demand and ignores this variable. Default on. |
481
- | `YAW_MCP_SIDECAR_REFRESH` | `0` disables the daily background check that keeps managed sidecars current. Only ever runs if you have run `yaw-mcp sidecars install`; explicit pins and semver ranges are never moved. Default on. |
482
- | `YAW_MCP_PREWARM` | `0` stops yaw-mcp spawning a server at startup just to learn its tool list. Learning is rare -- the list persists and is only re-learned once it ages out -- but the session that does it starts the upstream twice, once to read the list and once for the activate that follows, which matters if the server startup is not idempotent. Off, a server whose tools are not already known shows none of them until you activate it; `discover` still lists it. Default on. |
488
+ | `YAW_MCP_AUTO_UPGRADE` | `0` disables the background self-upgrade check at startup. Default on. The check always asks registry.npmjs.org; if npm is configured for a mirror that trails it, set this to `0` (the background install would otherwise repeat every 6 hours without moving the version). |
489
+ | `YAW_MCP_AUTO_HEAL` | `0` disables the startup pass that re-points client entries whose launch file no longer exists -- what an app upgrade leaves behind when it deletes the directory the entry named. The pass only rewrites an oam entry that points into an `@yawlabs/mcp` package tree and whose launch file is missing or not a file (a hand-written entry of that shape included); `yaw-mcp heal` is the same sweep on demand and ignores this variable. Default on. |
490
+ | `YAW_MCP_SIDECAR_REFRESH` | `0` disables the daily background check that keeps managed sidecars current. Only ever runs if you have run `yaw-mcp sidecars install`; explicit pins and semver ranges are never moved. Skipped while the managed tree holds a package or version the user-global `bundles.json` does not name (for example after `sidecars install` from a project); it resumes once `yaw-mcp sidecars install` is run from the user-global config, outside the project. A tree kept filled from a project is refreshed only by hand. A package npm could not move to the version npmjs.org lists (a registry mirror that is behind) is not retried for a week, or until a newer version appears. Default on. |
491
+ | `YAW_MCP_PREWARM` | `0` stops yaw-mcp spawning a server at startup just to learn its tool list. Learning is rare -- the list persists and is only re-learned once it ages out -- but the session that does it starts the upstream twice, once to read the list and once for the activate that follows, which matters if the server startup is not idempotent. Off, a server whose tools are not already known cannot be called by tool name through `mcp_connect_exec` until you activate it, and `mcp_connect_find_tool` ranks it only where yaw-mcp ships a bundled tool list for it (under `YAW_MCP_TOOL_EXPOSURE=full` its tools are also missing from `tools/list` until then); `discover` still lists it. Default on. |
483
492
  | `YAW_MCP_PROTOCOL` | Which MCP protocol eras yaw-mcp serves to the client that launched it. `auto` (the default) serves both: a client that opens with `server/discover` gets 2026-07-28, a client that opens with `initialize` gets the 2025 protocol it asked for. `legacy` serves the 2025 protocol only and answers `server/discover` with method-not-found, so a probing client falls back to `initialize` -- the server-side twin of Claude Code's own `MCP_PROTOCOL_NEGOTIATION=legacy`, for when a 2026-07-28 session misbehaves. An unrecognised value logs a warning and serves `auto`. Read at startup. |
484
493
  | `OAM_BIN` | Path to the `oam` binary to use instead of the one on `PATH`. A path that does not exist is reported by `doctor` as an unusable oam (fix the variable), not as oam being absent. |
485
- | `OAM_MAX_HEAP_MB` | Raises the V8 heap cap oam applies to a hosted server (4 GiB by default; can be lower inside a memory-limited Linux container). Set it in that server's `env` when a hosted sidecar dies with a heap out-of-memory error, or give that server `"runtime": "node"`. oam also honors node's own `NODE_OPTIONS=--max-old-space-size=<mb>` in that `env`, or the flag on a `node` launch, so one setting works on both runtimes; either takes precedence over `OAM_MAX_HEAP_MB`. oam's out-of-memory message says the cap was set by `OAM_MAX_HEAP_MB` whichever of them set it. |
494
+ | `OAM_MAX_HEAP_MB` | Raises the V8 heap cap oam applies to a hosted server (4 GiB by default; can be lower inside a memory-limited Linux container). Set it in that server's `env` when a hosted sidecar dies with a heap out-of-memory error, or give that server `"runtime": "node"`. oam also honors node's own `NODE_OPTIONS=--max-old-space-size=<mb>` in that `env`, or the flag on a `node` launch, so one setting works on both runtimes; either takes precedence over `OAM_MAX_HEAP_MB`, except `NODE_OPTIONS=--max-old-space-size=0`, which leaves `OAM_MAX_HEAP_MB` in charge on oam. `<mb>` must be a whole number: `512m` or `1.5` makes the server exit 9 at startup on oam and node alike. oam raises a cap below 16 MB to 16 MB, wherever it was set. oam's out-of-memory message names which of them set the cap (`set by --max-old-space-size`, `set by NODE_OPTIONS --max-old-space-size` or `set by OAM_MAX_HEAP_MB`), and says when it raised one (`to 5 MB, raised to oam's 16 MB minimum`). |
486
495
  | `YAW_MCP_AUTO_LOAD` | `1` pre-activates the top recurring pack at startup (needs persistence). Default off. |
487
496
  | `YAW_MCP_PRUNE_RESPONSES` | `0` disables response pruning. Default on. |
488
497
  | `YAW_MCP_MAX_RESULT_BYTES` | Ceiling on a single proxied tool result. Over it, the reply is cut and carries a marker saying so, with the byte total and what was dropped -- a silently truncated result reads to the model as a complete one. Default `100000` (~25k tokens); `0` disables. `structuredContent` is passed through verbatim and is never cut. |
@@ -492,9 +501,10 @@ Common ones (run `yaw-mcp --help` for the full list):
492
501
  | `MCP_LIST_TIMEOUT` | Milliseconds to wait for a server's tool/resource/prompt inventory calls after the handshake. Default `15000`; same `1..2147483647` whole-millisecond parse, invalid values fall back with one warn. |
493
502
  | `MCP_CALL_TIMEOUT` | Milliseconds to wait for a single proxied `tools/call`. Default `60000` (the SDK's own bound); raise it for legitimately slow servers. Same `1..2147483647` whole-millisecond parse, invalid values fall back with one warn. |
494
503
  | `YAW_MCP_IDLE_THRESHOLD` | Non-matching tool calls a loaded server tolerates before it is unloaded. Default `10`; bursty servers earn more patience automatically. The older name `MCP_CONNECT_IDLE_THRESHOLD` still works as a fallback. |
495
- | `YAW_MCP_DISABLE_PERSISTENCE` | `1` keeps learning + pack history process-scoped (CI, containers). Default off. |
496
- | `YAW_MCP_READONLY_DIAGNOSTICS` | `1` makes `doctor` (text and `--json`), `bundles`, `yaw-mcp heal` and the broker's startup heal pass write nothing, for a caller that runs them in the background on a timer. `doctor` still scans `yaw-mcp try` trials but does not sweep expired ones out of your client configs: each is reported as a warning (so the run exits 2) and listed in `--json`'s `trials.unswept`, with `trials.sweepHint` naming the fix -- a plain `yaw-mcp doctor` with the variable unset, or `yaw-mcp try-cleanup <slug>`. A pre-0.12 `~/.yaw-mcp.json` or project `.yaw-mcp.json` / `.yaw-mcp.local.json` is not moved into `.yaw-mcp/`; each is reported as a warning instead (its settings are not loaded for that run). `--json` carries `"readOnly": true` on such a run. `status` never writes, so it is unaffected. Default off. |
497
- | `LOG_LEVEL` | `debug` \| `info` \| `warn` \| `error`. Default `info`. |
504
+ | `YAW_MCP_DISABLE_PERSISTENCE` | `1` keeps learning + pack history process-scoped and turns off doctor's 24 h registry cache (CI, containers). Default off. |
505
+ | `YAW_MCP_READONLY_DIAGNOSTICS` | `1` makes `doctor` (text and `--json`), `bundles`, `yaw-mcp heal` and the broker's startup heal pass write nothing, for a caller that runs them in the background on a timer. `doctor` still scans `yaw-mcp try` trials but does not sweep expired ones out of your client configs: each is reported as a warning (so the run exits 2) and listed in `--json`'s `trials.unswept`, with `trials.sweepHint` naming the fix -- a plain `yaw-mcp doctor` with the variable unset, or `yaw-mcp try-cleanup <slug>`. A pre-0.12 `~/.yaw-mcp.json` or project `.yaw-mcp.json` / `.yaw-mcp.local.json` is not moved into `.yaw-mcp/`; each is reported as a warning instead (its settings are not loaded for that run). `--json` carries `"readOnly": true` on such a run. `doctor` still reads its 24-hour registry cache (`~/.yaw-mcp/registry-cache.json`) but never writes it, so it only saves requests on answers an ordinary `doctor` run stored. `status` never writes, so it is unaffected. Default off. |
506
+ | `LOG_LEVEL` | `debug` \| `info` \| `warn` \| `error`. Default `info`. Sets the level of yaw-mcp's log lines on stderr. CLI subcommands (`list`, `doctor`, `call`, ...) drop debug and info lines under `LOG_LEVEL` alone and keep printing plain `yaw-mcp: warning: ...` lines, so there it can only raise the threshold (`warn`, `error`); to see a subcommand's debug lines set `YAW_MCP_LOG_LEVEL=debug`. |
507
+ | `YAW_MCP_LOG_LEVEL` | Same values as `LOG_LEVEL`, and wins over it when both are set; an unrecognized value is ignored, as for `LOG_LEVEL`. Also switches CLI subcommands (`list`, `doctor`, ...) from plain `yaw-mcp: warning: ...` lines to the server's JSON log lines on stderr. |
498
508
 
499
509
  ## Requirements
500
510
 
@@ -1,23 +1,29 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
+ PREFIX_REFUSED_REASON,
3
4
  UPGRADE_LOCK_NAME,
4
5
  acquireUpgradeLock,
5
6
  attemptedRecentlyAt,
7
+ defaultConfirmGlobalPrefix,
6
8
  detectRunningInstallPrefix,
7
9
  maybeAutoUpgrade,
10
+ prefixRefusedRemedies,
8
11
  quoteArgForDisplay,
9
12
  quoteShellArgIfNeeded,
10
13
  readCheckMemo,
11
14
  recordAttemptAt,
12
15
  runsUnderNpmConfigPrefix,
13
16
  writeCheckMemo
14
- } from "./chunk-X54WSPEC.js";
17
+ } from "./chunk-SJWGO3WQ.js";
15
18
  export {
19
+ PREFIX_REFUSED_REASON,
16
20
  UPGRADE_LOCK_NAME,
17
21
  acquireUpgradeLock,
18
22
  attemptedRecentlyAt,
23
+ defaultConfirmGlobalPrefix,
19
24
  detectRunningInstallPrefix,
20
25
  maybeAutoUpgrade,
26
+ prefixRefusedRemedies,
21
27
  quoteArgForDisplay,
22
28
  quoteShellArgIfNeeded,
23
29
  readCheckMemo,