@yawlabs/mcp 0.74.1 → 0.74.3
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 +133 -1
- package/README.md +3 -0
- package/dist/chunk-VHPGG3GN.js +759 -0
- package/dist/index.js +2536 -2148
- package/dist/oam-spawn-Z5CASEBY.js +71 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,139 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 0.74.3 -- an absent oam says how to install it, and bundled browsers turn out to be hostable
|
|
6
|
+
|
|
7
|
+
**Added -- the two surfaces that reported an absent oam now say what to do about it**
|
|
8
|
+
|
|
9
|
+
`doctor`'s OAM RUNTIME section ended at `binary: not installed` -- the one line a reader opens doctor to act on, and the only branch with no command under it, while its below-min and unusable siblings each print a `fix:`. It now prints `install:` underneath. The label is deliberate: node is a full fallback, so nothing is broken and this is not a repair instruction. `yaw-mcp install` had the matching hole -- its runtime reason-chain explained relative-path, not-durably-installed, below-min and unusable, then fell off the end for plain absence, so the common case on a fresh machine got an npx entry with no line saying an alternative existed.
|
|
10
|
+
|
|
11
|
+
Both name the installer for the platform the report is **about**, not the one it runs on, so `--os windows` hands back the PowerShell one-liner rather than a curl command that machine cannot run. Under `install --all` the note prints once for the run instead of once per client: absence is a machine-level fact and the common case, unlike the rare misconfigurations above it, which still print per client where they belong.
|
|
12
|
+
|
|
13
|
+
**Changed -- bundled browsers are oam-hostable, and the source said they were not**
|
|
14
|
+
|
|
15
|
+
The compat note in `oam-spawn.ts` called servers with bundled browsers "not oam-hostable yet" and framed oam as an opt-in tier it stopped being two releases ago. Measured against oam 0.9.0: `@modelcontextprotocol/server-puppeteer` and `@playwright/mcp` each launch a real Chromium and navigate hosted on oam, identical in outcome to the node control. oam 0.9.0 is what changed it -- before that release `child_process` ignored `stdio` entirely, which is exactly the npm bin-shim shape every sidecar launches through, so they booted and then sat mute forever. `MIN_OAM_VERSION` gates that fix in. Native addons (ssh2) are marked unverified rather than promoted to either claim.
|
|
16
|
+
|
|
17
|
+
## 0.74.2 -- the oam floor moves to 0.9.0, and a full-pass sweep of the runtime
|
|
18
|
+
|
|
19
|
+
**Changed -- the oam floor moves to 0.9.0**
|
|
20
|
+
|
|
21
|
+
`MIN_OAM_VERSION` tracks the latest oam release as policy, and v0.9.0 is now current. A machine running an older oam falls back to node/npx with one warning naming both versions and the command that fixes it (`oam self-update`), and `doctor` reports `installed (v0.8.3) -- below min 0.9.0; IGNORED, servers run on node`. That is the documented trade: an aggressive floor costs a fallback, a lax one silently hosts production sidecars on a runtime nobody else is running.
|
|
22
|
+
|
|
23
|
+
**Fixed -- `--help` described the opposite of the shipped default**
|
|
24
|
+
|
|
25
|
+
The `YAW_MCP_DEFAULT_RUNTIME` entry still read `Unset = node (today's default)`. Unset has meant oam-when-installed since 0.74.1; `doctor`, the README and this changelog all already said so, leaving the CLI's own help as the only surface contradicting the feature it documents.
|
|
26
|
+
|
|
27
|
+
**Fixed -- an oam-hosted npx server could receive different arguments than the npx fallback**
|
|
28
|
+
|
|
29
|
+
The `-y`/`--yes` filter ran over the whole argument list rather than only the flags npx itself consumes, so a `--yes` belonging to the SERVER was dropped when the launch was rewritten for oam and kept when it was not. Same configuration, different child argv depending on whether oam happened to be installed -- which the rewrite exists specifically never to do.
|
|
30
|
+
|
|
31
|
+
**Fixed -- a broken `bundles.json` could invert an explicit `defaultRuntime: "node"`**
|
|
32
|
+
|
|
33
|
+
A file that exists but cannot be parsed produced no value, and that empty answer was cached for the life of the process. Since unset now means oam-when-installed, the cached blank silently flipped a machine that had explicitly opted OUT back onto oam. Only that degraded-and-empty combination is now left uncached; every healthy shape, including "no bundles.json at all", still resolves once and stays cached, so the connect path does not re-read per spawn.
|
|
34
|
+
|
|
35
|
+
**Fixed -- the version-pinning notice was silent or misleading depending on where the sidecar came from**
|
|
36
|
+
|
|
37
|
+
Hosting on oam runs a copy from disk, so `@latest` stops re-resolving and the version pins itself. The notice that says so only fired for npx-cache copies -- never for a durable install, and never for the managed tree that `sidecars install` exists to create. It now covers all three, carries the directory the entry was resolved out of, and names the command that actually refreshes THAT copy. The broker's own `node_modules` is correctly treated as a cache when it sits under `_npx`, which is where `npx -y @yawlabs/mcp` puts it; the managed tree logs at debug, since re-running `sidecars install` is a decision the user already made.
|
|
38
|
+
|
|
39
|
+
**Fixed -- `sidecars install --json` reported no error on a failed install**
|
|
40
|
+
|
|
41
|
+
When npm exited 0 but no requested package resolved, the command exited 1 while the JSON document still carried `error: null`, so a caller branching on `error` -- the field that document exists to provide -- read a failed install as a clean one.
|
|
42
|
+
|
|
43
|
+
**Added -- `doctor --json` reports the managed install**
|
|
44
|
+
|
|
45
|
+
The `oamRuntime` block now carries `managed`, mirroring the text report: the managed directory and the installed version of each configured package. That version is what an oam-hosted sidecar actually runs and nothing else reports it, since `bundles.json` only ever says `@latest`.
|
|
46
|
+
|
|
47
|
+
**Fixed -- usage output could be truncated when piped**
|
|
48
|
+
|
|
49
|
+
Thirteen subcommands wrote their usage to stdout and then called `process.exit()`, which force-flushes the event loop and can cut a buffered body short on a slow consumer (`yaw-mcp install --help | less`). They now set the exit code and let Node drain the write, matching what `--help` and the dispatch tail already did.
|
|
50
|
+
|
|
51
|
+
**Fixed -- a server that had just loaded could dead-end on "no longer available"**
|
|
52
|
+
|
|
53
|
+
Four paths activated an upstream without rebuilding the routing tables or telling the client its lists had moved: discover's auto-warm, the auto-loaded recurring pack, the lazy activation behind a deferred tool, and prewarm's reconciliation. The namespace was connected, but `toolRoutes` still held the placeholder built from the persisted tool cache -- so the very next call took the deferred branch, found the server already up, and returned `no longer available after loading X`. No retry clears that, for a server that loaded fine seconds earlier, and the session stays wedged until the client restarts. The deferred path made it worse by rebuilding only when activation reported a change, which is exactly false when the namespace was already warm. Every activation and deactivation site now goes through one helper that does both halves, because doing one of them is the bug that kept recurring.
|
|
54
|
+
|
|
55
|
+
**Fixed -- `mcp_connect_read_tool` ran servers the project profile and the compliance floor had refused**
|
|
56
|
+
|
|
57
|
+
The tool spawns a server transiently to read one schema, and it consulted neither gate before doing it. A namespace excluded by the project's allow/deny profile, or graded below `YAW_MCP_MIN_COMPLIANCE`, still had its configured command executed with its vault-resolved env -- secrets included. Disconnecting afterwards does not make that acceptable; every other surface narrows by the profile before it reaches a server. Both gates now run here, in the same order and with the same wording activation uses. The floor itself also went from two copies to one: the duplicate in `activate` produced identical text for the common case but reordered precedence for a server failing two gates, so a below-grade server that was also disabled reported one reason to `activate` and a different one to `dispatch`.
|
|
58
|
+
|
|
59
|
+
**Fixed -- a busy upstream could be closed in the middle of your call**
|
|
60
|
+
|
|
61
|
+
The idle reaper runs on other calls' completions, and a namespace's idle counter is only reset once its own call returns. A slow call to B could therefore be tipped over the threshold by a burst of short calls to A: B's transport closed, your pending call rejected, and the rejection booked as B's own zero-reward failure -- dragging the ranking of a healthy server down for a fault yaw-mcp caused. Namespaces with a call in flight are now skipped and re-evaluated on the next completion. Shutdown had the mirror-image problem: it snapshotted the connection map while prewarm activations were still mid-handshake, leaving live child processes nothing would ever disconnect (the parent exiting is what masked it). It now refuses new activations first, drains what was already past the gate, and clears any credentials elicited during the session, as that field's contract promised. That drain is bounded at two seconds: an unbounded one outlived the ten-second force-exit timer, so a SIGTERM arriving mid-handshake turned a clean shutdown into `exited with code 1`. Because a late activation can re-arm the state-save debounce the pre-drain flush already cleared, shutdown re-flushes if that happened -- the bound must not buy promptness with a lost write. The in-flight skip also had to be re-checked immediately before each disconnect rather than once while listing candidates: the list is consumed in an awaiting loop, so by the second entry the snapshot it was built from is stale. The idle baseline is also re-read per call instead of latched at import, and `YAW_MCP_IDLE_THRESHOLD` now works at all -- only the pre-rename `MCP_CONNECT_IDLE_THRESHOLD` was ever read.
|
|
62
|
+
|
|
63
|
+
**Fixed -- prompts could route to the wrong upstream, and one blip could empty a server's inventory**
|
|
64
|
+
|
|
65
|
+
Prompt namespacing carried the cross-namespace collision that was fixed for tools in 0.74.0. Namespace `gh` with a `review_pr` prompt and namespace `gh_review` with a `pr` prompt both flatten to `gh_review_pr`; `prompts/list` advertised the first upstream's prompt while `prompts/get` executed the last writer's, so the model saw one server's description and got another server's prompt, and a later-activated server could capture an earlier one's traffic. Both surfaces now agree on the first writer. In the same area, the resources and prompts refreshers returned an empty list on any error, so a single transport blip or list timeout on a `list_changed` notification replaced a healthy server's entire inventory with nothing -- until some future notification that may never arrive. A failed refresh now leaves the previous inventory standing, which is what the tools refresher already got for free.
|
|
66
|
+
|
|
67
|
+
**Fixed -- `install` destroyed comments in client configs and loosened their permissions**
|
|
68
|
+
|
|
69
|
+
`install` read the client config with a JSONC parser and wrote it back through `JSON.stringify`, deleting every `//` and `/* */` in the file. `.vscode/mcp.json` is documented JSONC and its `inputs` array is routinely commented; Claude Code's `settings.json` is hand-maintained and carries hooks and model settings around the one key being patched. Both are now spliced in place, the way `yaw-mcp try` already wrote them -- only the `mcp` entry and the `permissions.allow` node move, and the rest of the file keeps its comments, key order and indentation byte for byte.
|
|
70
|
+
|
|
71
|
+
The atomic write underneath was a second bug. `rename` publishes a new inode, so the surviving file took the umask default rather than the mode it had -- widening a config `yaw-mcp try` had deliberately written 0600 because it holds an inline secret. An existing target's mode is now carried forward whenever the caller passes none, and every write gets a unique temp path so two concurrent writers to the same file cannot truncate each other's.
|
|
72
|
+
|
|
73
|
+
`install` also stopped stripping a legacy `permissions.allow` wildcard while leaving the legacy server entry that wildcard grants -- it only warns about that entry, so removing the pattern in the same run revoked a live grant and made Claude Code re-prompt on every one of that server's tool calls. Alongside those: `--all` says "every client available on this OS" instead of promising detection it never did, `--dry-run` says "Would overwrite" rather than announcing a write that has not happened, `--scope project` honours the documented `cwd` override instead of writing `.vscode/mcp.json` into whatever directory the process started in, and each fallback to node when oam cannot host the broker now names its reason -- below the floor, unusable, or resolvable only as a bare name a GUI-launched client would never find.
|
|
74
|
+
|
|
75
|
+
**Fixed -- `remove` skipped its confirmation on exactly the files most likely to hold a secret**
|
|
76
|
+
|
|
77
|
+
The destructive-confirmation gate parsed `bundles.json` with `JSON.parse` while the write path used the loader's JSONC parser. One `// prod token lives in 1Password` line, or one trailing comma, made the file look malformed to the gate and perfectly fine to the delete -- so the preview, the off-TTY refusal and the `[y/N]` prompt were all skipped on hand-edited files, which are precisely the ones carrying stored env values `add` cannot bring back. Both now read the file the same way.
|
|
78
|
+
|
|
79
|
+
**Fixed -- re-running `add` threw away what was already on the entry**
|
|
80
|
+
|
|
81
|
+
`yaw-mcp add <slug>` rebuilds its entry from the catalog every time, and replaced the stored one wholesale. Re-adding a server to pick up a new launch command silently dropped a persisted `--env` value, an explicit `"isActive": false`, a per-server `"runtime"` override, a hand-tuned `connectTimeoutMs`, and any field outside the writer's vocabulary -- all of it under an `Updated ...` success line. An upsert is a partial update now: a field the incoming entry leaves undefined keeps its on-disk value, `env` merges per key so an empty incoming value never blanks a stored one, and an incoming `isActive: true` will not re-enable something you deliberately turned off (an explicit `false` still disables). `--json` and the ambient-env note report the entry as written rather than the pre-merge input, so they describe a file that exists -- with env reduced to `envKeys`, key names only. Reporting the on-disk entry verbatim meant a value persisted by an earlier run was printed on stdout by a later `add` that never passed it, so the field that made the report honest was also the one that leaked it.
|
|
82
|
+
|
|
83
|
+
**Fixed -- `sidecars install` could not actually move a `@latest` sidecar forward**
|
|
84
|
+
|
|
85
|
+
npm cannot re-resolve a dist-tag against an existing tree: with a lockfile present, a package locked at 0.3.6 under a `latest` range reports "up to date" and stays there. The command whose entire purpose is refreshing the pin was therefore a no-op after the first run, and "Re-run this command to move them forward" was false. It now runs `npm update` after the install, which does honour the manifest's ranges -- an exact-pinned spec still cannot drift -- and reports a failed refresh separately from a failed install, since the tree is still usable either way.
|
|
86
|
+
|
|
87
|
+
It also stopped over-promising in the other direction. When nothing on the machine would read the managed tree -- no oam, or every server resolving to node -- it names the closed gate instead of announcing that versions are now fixed. It names the config the server list came from, and warns when that is a project `bundles.json`, because the managed tree is keyed on home alone: installing from project A writes A's dependency set into the one directory every project shares, and the broker in B then resolves out of it on A's versions with nothing in B to say why. Loader warnings go to stderr instead of being swallowed, and a `bundles.json` that exists but cannot be parsed is now reported as `unreadable-config` with a non-null `error` and exit 1, rather than as "no servers configured yet".
|
|
88
|
+
|
|
89
|
+
**Fixed -- `doctor` reported the runtime policy rather than the spawn**
|
|
90
|
+
|
|
91
|
+
The oam rewrite has six deterministic refusals -- a `node` launch naming no entry file or opening with a flag, an `npx` launch with no spec, a flag where the spec belongs, a git or path target, or a version range. Each holds on every machine, oam installed or not, and `doctor` reported all of them as "oam". Each is now its own runtime code with its own reason, derived through the rewrite's own predicates rather than re-implemented, and `sidecars` no longer hands `doctor` a partial server object that made every refused server look hosted.
|
|
92
|
+
|
|
93
|
+
Two more reporting failures went with it. An oam that is installed but wedged -- `oam --version` hanging, exiting non-zero, or not executable -- was reported as "not installed", sending someone who has oam installed off to install it again while the real cause never surfaced; it now reads `installed but UNUSABLE` with the underlying error and a command to reproduce it. And a `bundles.json` that had stopped parsing -- every server gone -- still printed "All good. yaw-mcp should start cleanly." and exited 0, because the loader's warnings were never folded into the report.
|
|
94
|
+
|
|
95
|
+
`doctor` now also checks that a client's yaw-mcp entry can start at all: an absolute launch command that no longer exists, a bare `oam` that a GUI-launched client cannot resolve against its own PATH (older installs wrote exactly that, and nothing rewrites them), or a stale `oam run <entry>` path. oam cannot fetch a missing entry on demand, so each of those is a hard launch failure with no fallback, and `doctor` is the only thing that can surface them.
|
|
96
|
+
|
|
97
|
+
**Fixed -- an oam boot failure pinned a server to node on no evidence**
|
|
98
|
+
|
|
99
|
+
When an oam-hosted server failed to boot, yaw-mcp respawned it on node and remembered the downgrade for the rest of the process. It recorded that memo *before* the respawn, so a server failing for a reason that has nothing to do with the runtime -- a missing `GITHUB_TOKEN`, which fails identically on both -- was pinned to node anyway. The in-process credential retry then supplied the token and reconnected on node, and every later reconnect stayed there, while `doctor` still reported oam. Nothing clears the memo short of a restart, so the memo is now written only when the node attempt actually behaves differently: booting cleanly, or failing in a different category. One wasted oam boot is cheaper than silently disabling oam hosting for the life of the process on evidence that never implicated it.
|
|
100
|
+
|
|
101
|
+
**Fixed -- a version-pinned sidecar could be hosted from a copy that does not match the pin**
|
|
102
|
+
|
|
103
|
+
`oam run <entry>` runs whatever sits at the path it is handed, so hosting a spec that constrains its version means proving the copy on disk satisfies it. `npx -y pkg@1.2.3` was resolved by package name alone, so the pin was honoured on npx and quietly ignored on oam. An exact pin now moves to oam only when the resolved copy declares that same version; a range or partial (`^1.2.3`, `~1.2`, `1.x`) always stays on npx, since honouring one means a semver range evaluator this package does not carry. The version parser also stopped truncating prereleases -- `oam 0.8.3-rc.1` read as `0.8.3`, which compared equal to the floor and was hosted, while every line printing the oam version named a release the machine does not have. Comparison now follows semver's prerelease precedence rules rather than a numeric triple.
|
|
104
|
+
|
|
105
|
+
Relatedly, node and npx launches are matched on the command's basename with any Windows executable extension stripped, so `/usr/bin/node app.js`, `node.exe`, and nvm or volta shims are now hosted on oam like a bare `node` -- they previously fell through to node with no explanation. `doctor` uses the same predicate, so the report and the spawn cannot disagree about it.
|
|
106
|
+
|
|
107
|
+
**Fixed -- the zsh completion ran most of its own subcommand list as shell commands**
|
|
108
|
+
|
|
109
|
+
The generator joined 19 subcommand specs with a bare newline, so only the first reached `_values` and the other 18 were emitted as standalone commands: the first TAB after `yaw-mcp ` offered `install` and nothing else, followed by 18 `command not found` errors. The specs also used `name:description`, which is `_describe` syntax -- `_values` reads the text after the colon as an argument spec, so every subcommand that did render came out with no description. bash, fish and PowerShell were unaffected. `install --help` is offered now too; it was always accepted and never completed.
|
|
110
|
+
|
|
111
|
+
**Fixed -- a two-character namespace was invisible to discover and dispatch**
|
|
112
|
+
|
|
113
|
+
The BM25 index dropped tokens shorter than three characters everywhere, including in identifiers. A server namespaced `pg`, `gh`, or `db` therefore had a permanently empty namespace field -- the second-heaviest weight in the ranking -- and an intent naming only that namespace ("use pg") ranked nothing at all; `s3` and `ec2` fragments inside tool names went the same way. Descriptions keep the three-character floor, where noise words actually live. Namespaces, server names and tool names index down to one character, because an identifier is chosen rather than written: a two-letter namespace is a deliberate name, not a stopword.
|
|
114
|
+
|
|
115
|
+
The query side needed one more rule than that, and it is the reason to read this entry twice. A preposition is a routine whole segment of a snake_case tool name (`export_to_csv`), and being rare among identifiers its IDF is HIGH -- so once the query tokenized down to one character too, `to` scored. The intent "convert the spreadsheet to a chart" matched Postgres and dispatch loaded it, reporting `loaded top 1 of 1 matching servers` where it had correctly reported no match before. Closed-class function words are now subtracted from the query in the one-to-two character band only. Short identifiers -- `go`, `do`, `pr`, `id`, `db`, `pg`, `s3` -- are deliberately exempt, because matching those is why the floor was widened in the first place.
|
|
116
|
+
|
|
117
|
+
**Fixed -- three commands that misreported their own failure**
|
|
118
|
+
|
|
119
|
+
`yaw-mcp compliance <target> --min-grade A` printed "Grade F is below threshold A" on stderr and exited 0. The wrapper discarded the child's exit status, so `--strict` and `--min-grade` were silent no-ops through yaw-mcp and no CI gate built on them ever fired. A malformed report from the compliance child -- spawned unpinned, so everyone runs whatever npm calls latest -- could also print `undefined/undefined passed` and exit 0; every field the summary formats is now validated before rendering, and anything that fails routes into the existing "unexpected JSON" path.
|
|
120
|
+
|
|
121
|
+
`yaw-mcp audit` threw a raw errno out of the dispatcher when `grades.json` could not be written -- a read-only home in a container or a locked-down CI image is the common shape. The grade the suite had just spent minutes computing was never printed, and the process exited 1, the code documented as "no server with that namespace", so anything branching on exit codes read a cache-write failure as a typo. The grade prints either way now, with a dedicated exit 3 and a `cacheError` field in `--json`.
|
|
122
|
+
|
|
123
|
+
And a damaged vault verification marker reported `wrong passphrase for this vault` -- for a passphrase that was correct, about a vault whose secrets were all still readable. A key that opens an entry but not the marker now names the marker as the damaged part.
|
|
124
|
+
|
|
125
|
+
**Fixed -- `bundles match` offered activations the broker would refuse**
|
|
126
|
+
|
|
127
|
+
The partition counted every enabled server in `bundles.json`, while the broker also narrows by the `config.json` allow/deny profile. A denied namespace made a bundle read as "Ready to activate" alongside an `mcp_connect_activate` snippet the server then hard-refused -- the one thing that command exists to get right. The profile is applied now, and what it excluded is named rather than silently missing from the count, so a bundle that "should" be ready reads as the deny-list working instead of as a broken matcher.
|
|
128
|
+
|
|
129
|
+
**Fixed -- the long tail**
|
|
130
|
+
|
|
131
|
+
The rest is the kind of thing you only notice when it bites. A per-server `connectTimeoutMs` in `bundles.json` was dropped by the loader's field whitelist, so nothing in the process could ever set the value the connect path reads; one that is present but invalid (quoted, zero, negative) is now named in the loader's warnings instead of vanishing. `secrets audit <name>` ignored the argument instead of pointing at `--secret`/`--server`, and `--stdin`/`--value` were accepted on actions that have no use for them; `--value`'s help now says the value is visible to every local user via `ps` for the whole run, key derivation included. `reset-learning` now says that a running `yaw-mcp serve` holds the same learning in memory and re-saves it over the deleted file within a second of the next tool call. A trust store written by a newer yaw-mcp is refused with an upgrade instruction instead of being treated as corrupt and offered for deletion, and `trust` no longer asks you to "read all the commands above" for a file that defines none. `doctor` reads the tail of each shell history rather than the whole file -- a multi-hundred-MB history threw and took the shadowed-CLI section with it, silently. A trial marker is validated before `try-cleanup` acts on it, and the trial help no longer claims a timer sweeps expired entries; `doctor` is what removes them. `prune` stops round-tripping numbers it cannot reproduce exactly, so a large identifier in a tool result survives truncation intact. npm's `cache=` setting is parsed with npmrc's own quoting, escape and inline-comment rules, and `~/` is expanded. A stale `lastIndex` on a shared regex could make the secrets report skip leading references, which reads as "this server needs no secrets". Learning counters clamp `succeeded` to `dispatched` rather than the reverse, so a corrupted state file inflates nothing. discover's three-second memo is dropped when an activation fails or the learning counters move, so a re-discover no longer replays pre-failure text and sends the model back at a server it just watched die. A tool filter installed for an activation that then failed is rolled back instead of narrowing a later, successful load nobody filtered. And the meta-tool name set that keeps meta-tools out of an `exec` pipeline is derived from the definitions rather than hand-listed, so an eleventh meta-tool cannot become exec-callable by omission.
|
|
132
|
+
|
|
133
|
+
A last pass over the diff itself caught six more. `install` aborted with jsonc-parser's internal wording when a container key held a non-object -- a hand-edited `"mcpServers": null` that the previous release installed into fine; reparable shapes are repaired and named now, and a non-empty array refuses rather than silently dropping the server definitions it holds. `doctor` read the oam entry path straight off argv, so a `cmd /d /s /c` wrapper made it pick `/s`, decide the entry file was missing, and report a working install as broken; it unwraps the shell payload and anchors on the `run` subcommand. A present-but-unusable oam -- timed out, non-executable, exiting non-zero -- still told the spawn path's warning to go install oam, software the user already had; that surface now names the failure, as `doctor` and the runtime resolver already did. `install`'s `Runtime: will run on oam` line re-derived its own condition instead of reading the entry it had just built, so it could claim oam over an npx entry, and a resolvable-but-relative binary path now gets its own explanation rather than the wrong one. `sidecars install --json` carried no field for the "nothing reads these copies yet" verdict, so the one caller that only ever runs `--json` could not see it. And the unlock prompt's short-passphrase warning described whatever you typed as this vault's passphrase and told you to re-key -- on input it had not verified yet.
|
|
134
|
+
|
|
135
|
+
The balance is dead code, predicates that had been copied and started to drift, comments describing behaviour that changed releases ago, and error paths nothing exercised. The suite grows from 2,138 to 2,412 tests, all of it regression coverage written alongside the fixes.
|
|
136
|
+
|
|
137
|
+
## 0.74.1 -- oam becomes the default sidecar runtime
|
|
6
138
|
|
|
7
139
|
**Changed -- oam hosts the sidecars by default**
|
|
8
140
|
|
package/README.md
CHANGED
|
@@ -117,6 +117,8 @@ When oam is installed and meets the minimum, yaw-mcp hosts the MCP servers it sp
|
|
|
117
117
|
|
|
118
118
|
Only Node-based launches are rewritten. A server whose command is `docker`, `uvx`, or a native binary is left alone, as is an npx package that cannot be found on disk.
|
|
119
119
|
|
|
120
|
+
Two more npx shapes stay on npx, because npx re-resolves its spec against the registry while `oam run <entry>` just runs whatever sits at the path it is handed. A spec that **constrains the version** keeps npx unless the copy on disk can be shown to satisfy it — an exact pin moves to oam only when the resolved copy declares that same version, and a range or partial (`^1.2.3`, `~1.2`, `1.x`) always keeps npx, since honouring one would mean evaluating semver ranges against the tree. A spec naming a **git or path target** (`npx -y ./local-server`, `github:owner/repo`) keeps npx too: it is not a package name, so there is nothing to look it up as. A plain `@latest`, or no version at all, is the everyday case and does move over.
|
|
121
|
+
|
|
120
122
|
**One tradeoff worth knowing.** `npx -y <pkg>@latest` re-resolves that tag on every spawn, so those servers update themselves. `oam run <entry>` cannot — oam has no fetch-on-demand, so it runs the copy already on disk, and because npx then stops running for that server, the copy stops being refreshed. The version pins itself until something fetches a newer one. yaw-mcp logs the resolved version once per package at startup so this is visible rather than silent, and picks the newest copy present.
|
|
121
123
|
|
|
122
124
|
### Installing the servers durably
|
|
@@ -279,6 +281,7 @@ Common ones (run `yaw-mcp --help` for the full list):
|
|
|
279
281
|
| `YAW_MCP_AUTO_UPGRADE` | `0` disables the background self-upgrade check at startup. Default on. |
|
|
280
282
|
| `YAW_MCP_AUTO_LOAD` | `1` pre-activates the top recurring pack at startup (needs persistence). Default off. |
|
|
281
283
|
| `YAW_MCP_PRUNE_RESPONSES` | `0` disables response pruning. Default on. |
|
|
284
|
+
| `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. |
|
|
282
285
|
| `YAW_MCP_DISABLE_PERSISTENCE` | `1` keeps learning + pack history process-scoped (CI, containers). Default off. |
|
|
283
286
|
| `LOG_LEVEL` | `debug` \| `info` \| `warn` \| `error`. Default `info`. |
|
|
284
287
|
|