@yawlabs/mcp 0.74.0 → 0.74.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,58 @@
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
+ ## Unreleased -- oam becomes the default sidecar runtime
6
+
7
+ **Changed -- oam hosts the sidecars by default**
8
+
9
+ When oam is installed and meets the minimum version, yaw-mcp now hosts the MCP servers it spawns on it without any configuration. Previously this required `runtime: "oam"` on each server or a top-level `defaultRuntime` in `bundles.json`.
10
+
11
+ Nothing is required and nothing changes for a machine without oam: those servers run on node/npx exactly as before, and no warning is printed, because nothing was asked for. The escape hatches are unchanged and still win -- `runtime: "node"` on a server, `"defaultRuntime": "node"` for the whole machine, or `YAW_MCP_DEFAULT_RUNTIME=node` for one process. Only Node-based launches are rewritten; `docker`, `uvx`, and native commands are untouched.
12
+
13
+ **Fixed -- the oam runtime never actually reached the sidecars on a global install**
14
+
15
+ An opted-in sidecar silently ran on npx instead of oam whenever yaw-mcp itself was installed globally. Resolving an `npx -y <pkg>` server to an on-disk entry requires finding npm's `_npx` cache, and that lookup was derived from the broker's own module path -- so it only found anything when the broker had *itself* been launched through npx. A global install has no `_npx` segment in its path and therefore found nothing.
16
+
17
+ The result was the feature quietly doing nothing on the most common shape, made worse by `install` recommending `npm i -g @yawlabs/mcp` in order to host on oam. `doctor` reported those servers as "oam" the whole time, because it reports the policy decision rather than the spawn. The cache is now located from npm's own configuration, independent of how the broker was started, so all three shapes -- global, project, npx -- resolve. The only trace of this was a `debug`-level log line.
18
+
19
+ **Added -- `yaw-mcp sidecars install`**
20
+
21
+ Installs the npx-launched servers from `bundles.json` into `~/.yaw-mcp/sidecars`, and resolution prefers that tree over npm's npx cache. One copy per package at a version that is written down, and re-running the command is how it moves forward.
22
+
23
+ This is the answer to the pinning note below. The npx cache is keyed by content hash, so it accumulates every version ever fetched and names none of them current; a managed install replaces that with a single deliberate answer. `yaw-mcp doctor` prints the installed version of each configured package.
24
+
25
+ Deliberately not automatic: acquiring packages means network and minutes, and the connect path is what an MCP client blocks on while waiting for its tools. Nothing requires it -- without it, resolution falls back to the npx cache exactly as before.
26
+
27
+ npm does the installing, not `oam install`: that is frozen-lockfile only, so it cannot acquire `@latest` into an empty directory; its `--precompile` has nothing to do for packages that ship compiled JavaScript, which every MCP server does; and running it over an npm-installed tree skips lifecycle scripts unless the package is trusted, which would quietly cost puppeteer its browser download.
28
+
29
+ Only npx servers naming a registry package are installed. An npx launch pointing at a git or path target -- `npx -y github:owner/repo`, `npx -y ./local-server` -- is skipped and named in the output, and keeps using npx. Those specs carry no `@version` separator to cut at, so they would otherwise have become dependency *keys* (`{"github:owner/repo": "latest"}`), which npm rejects -- failing the install for every other package too. Resolving them properly would mean fetching the target just to learn the name it declares, which is more than this command should do.
30
+
31
+ Two servers pinning one package at different versions is reported rather than silently resolved: a flat `node_modules` holds a single version, so the command names the one it installed instead of letting the loser start on something it did not ask for.
32
+
33
+ `--json` emits the same keys on every path -- `root`, `installed`, `reason`, `error`, `conflicts`, `skipped` -- so a caller can read the result without first determining which path it took. `reason` distinguishes the empty states: `no-config` (nothing configured yet), `no-npx-servers` (a docker/uvx-only config), and `only-non-registry-specs`.
34
+
35
+ **Changed -- an oam-hosted sidecar no longer self-updates, and now says so**
36
+
37
+ `npx -y <pkg>@latest` re-resolves the tag on every spawn; `oam run <entry>` cannot, because oam has no fetch-on-demand. Once oam is the default, npx stops running for those servers, so the on-disk copy that supplied the entry also stops being refreshed and the version pins itself indefinitely.
38
+
39
+ This was already true for servers that opted in explicitly; making oam the default makes it apply broadly, so it is now logged. yaw-mcp reports the resolved version once per package at startup rather than leaving it to be discovered. Refresh a pinned sidecar by running it through npx once, or set `runtime: "node"` on that server to keep npx's self-updating behavior.
40
+
41
+ **Fixed -- an arbitrary cached version could be run instead of the newest**
42
+
43
+ The npx cache is keyed by content hash, so a machine that has run a server for months holds every version it ever fetched. Resolution took the first directory-listing hit, which is hash order, so a server configured as `@latest` could be started from a months-old build with nothing logged. The highest version present now wins, and a durable `npm i` install still takes precedence over any cached copy.
44
+
45
+ **Changed -- minimum oam version is 0.8.2, and now tracks the latest oam release**
46
+
47
+ Raised from 0.6.0. The floor is no longer set by whichever release happened to fix something yaw-mcp noticed; it tracks the current oam release and moves with every one. oam is pre-1.0 and moves fast, and oamjs.org only ever installs the current release, so hosting sidecars on anything older means running a build nobody else is.
48
+
49
+ A below-minimum oam is refused rather than silently used -- the servers run on node instead, which is where they were before oam existed, with one warning naming both versions. `install` now says so when oam is missing.
50
+
51
+ **Changed -- `LICENSE` renamed to `LICENSE.md`**
52
+
53
+ The license file is renamed from `LICENSE` to `LICENSE.md` and `package.json` now declares `SEE LICENSE IN LICENSE.md` rather than the doubled-up `SEE LICENSE IN LICENSE`. `SEE LICENSE IN <filename>` is npm's own syntax for a license with no SPDX identifier, so the repetition was just the filename having no extension.
54
+
55
+ Cosmetic only. The license text, its terms, and the licensor are unchanged.
56
+
5
57
  ## 0.74.0 -- local-only: the hosted control plane is retired (BREAKING)
6
58
 
7
59
  The hosted backend is gone. Every endpoint yaw-mcp called returns 404 -- `/api/connect/config`, `/heartbeat`, `/analytics`, `/servers`, `/api/compliance/ext`, `/api/try/event`, the dashboard, and `/signup`. Rather than keep code that cannot succeed, account mode is removed outright: your servers come from `~/.yaw-mcp/bundles.json` and your credentials from the local encrypted vault. Roughly 5,800 lines deleted.
package/README.md CHANGED
@@ -88,6 +88,68 @@ The JSON shape (top-level `mcpServers`, except VS Code uses `servers` in `.vscod
88
88
 
89
89
  On **Windows**, use `"command": "cmd", "args": ["/c", "npx", "-y", "@yawlabs/mcp@latest"]`.
90
90
 
91
+ ### Running yaw-mcp on oam
92
+
93
+ yaw-mcp can host itself on [oam](https://oamjs.org), a Rust+V8 JavaScript runtime built for this shape of workload — short-lived, mostly-idle MCP processes.
94
+
95
+ `yaw-mcp install` writes the oam entry for you when two things are true:
96
+
97
+ - **oam is installed** — `curl -fsSL https://oamjs.org/install.sh | sh`, or `irm https://oamjs.org/install.ps1 | iex` on Windows. Those install the current release, which always satisfies the minimum. An older build is refused rather than silently used: versions below the floor predate fixes this workload sits on, including one where a client disconnecting mid-upload killed the process. `yaw-mcp doctor` prints the exact minimum under OAM RUNTIME.
98
+ - **yaw-mcp is durably installed** — `npm i -g @yawlabs/mcp`, or a project `node_modules`. A path in the npx cache is deliberately not used: that directory is evictable, and an entry pointing into it breaks the moment npm cleans it.
99
+
100
+ Neither is required, and nothing breaks without them — the npx entry is written as before, and install tells you which one you got. Afterwards `yaw-mcp doctor` marks a client whose entry launches the broker on oam with `(runs on oam)`, and its OAM RUNTIME section reports the binary, version, and minimum.
101
+
102
+ The entry it writes:
103
+
104
+ ```json
105
+ {
106
+ "mcpServers": {
107
+ "mcp": { "command": "/path/to/oam", "args": ["run", "--no-check", "/path/to/@yawlabs/mcp/dist/index.js"] }
108
+ }
109
+ }
110
+ ```
111
+
112
+ Two consequences worth knowing. It pins a path, so it does not re-resolve `@latest` on every spawn the way the npx entry does — `npm update -g` still picks up new versions, because it rewrites that path in place. And this setting is about the **broker itself**; which runtime the *sidecars* get is decided separately, below.
113
+
114
+ ### Which runtime the sidecars get
115
+
116
+ When oam is installed and meets the minimum, yaw-mcp hosts the MCP servers it spawns on it. Nothing needs configuring — install oam and the sidecars move over. Without oam they run on node/npx exactly as before, and no warning is printed, because nothing was asked for.
117
+
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
+
120
+ **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
+
122
+ ### Installing the servers durably
123
+
124
+ ```
125
+ yaw-mcp sidecars install
126
+ ```
127
+
128
+ Installs the npx-launched servers from your `bundles.json` into `~/.yaw-mcp/sidecars`, and yaw-mcp resolves from there in preference to npm's npx cache. That gives one copy per package at a version that is written down, instead of whichever of the several copies in the cache happened to be newest — and re-running the command is how you move them forward.
129
+
130
+ It is not automatic and nothing requires it. Acquiring packages means network and minutes, and the connect path is what an MCP client blocks on while waiting for its tools; a first connect that silently turned into an npm install would be the wrong trade. Without it, resolution falls back to the npx cache exactly as before.
131
+
132
+ Only npx servers naming a **registry package** are installed. An npx launch pointing at a git or path target — `npx -y github:owner/repo`, `npx -y ./local-server` — is skipped and named in the output; those keep using npx, since resolving them would mean fetching the target just to learn the name it declares. Two servers pinning the same package at different versions is also reported: one flat `node_modules` holds a single version, so the command tells you which one it installed rather than letting the loser start on something it did not ask for.
133
+
134
+ `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, set `runtime: "node"` on it.
135
+
136
+ `--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.
137
+
138
+ To override, in `~/.yaw-mcp/bundles.json`:
139
+
140
+ ```json
141
+ {
142
+ "defaultRuntime": "node",
143
+ "servers": [{ "namespace": "postgres", "runtime": "oam" }]
144
+ }
145
+ ```
146
+
147
+ - `runtime` on a server wins over everything, and `"node"` is the per-server escape hatch.
148
+ - `defaultRuntime` at the top level sets the machine-wide default; `"node"` opts the whole machine out.
149
+ - `YAW_MCP_DEFAULT_RUNTIME=node|oam` overrides `defaultRuntime` for one process.
150
+
151
+ `yaw-mcp doctor` prints the resolved runtime for every configured server, with the reason — including the cases where oam was wanted but not used, so a silent fallback is visible rather than guessed at.
152
+
91
153
  ## CLI
92
154
 
93
155
  `yaw-mcp` with no subcommand runs as the MCP server, serving the servers in your `~/.yaw-mcp/bundles.json`. Most read-only subcommands accept `--json`. Run `yaw-mcp <cmd> --help` for per-command flags.
@@ -229,7 +291,7 @@ Common ones (run `yaw-mcp --help` for the full list):
229
291
 
230
292
  Source-available, not open source. Copyright (c) 2026 Yaw Labs, all rights reserved.
231
293
 
232
- The source is published so you can read and audit it before running it -- `yaw-mcp` spawns processes on your machine and handles your credentials, and you should not have to take that on faith. You may use it freely, personally or commercially, and redistribute unmodified copies. You may not offer it to third parties as a competing product. See [LICENSE](./LICENSE) for the terms, and [CONTRIBUTING.md](./CONTRIBUTING.md) for the DCO sign-off contributors use.
294
+ The source is published so you can read and audit it before running it -- `yaw-mcp` spawns processes on your machine and handles your credentials, and you should not have to take that on faith. You may use it freely, personally or commercially, and redistribute unmodified copies. You may not offer it to third parties as a competing product. See [LICENSE.md](./LICENSE.md) for the terms, and [CONTRIBUTING.md](./CONTRIBUTING.md) for the DCO sign-off contributors use.
233
295
 
234
296
  ## Links
235
297