@yawlabs/mcp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,147 @@
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 -- adding a server no longer means restarting your client, an authenticated remote server can actually authenticate, and the two doors that blew a context budget are shut
5
+ ## Unreleased -- `install --force` stops keeping the env it promised to overwrite, editing a client config stops rewriting the entry next to ours, and the install surfaces stop stating things that are not so
6
+
7
+ An audit of the install surface. Nothing in the install blocks changes how yaw-mcp brokers servers at runtime -- they are `yaw-mcp install` and the commands that share its config-writing code -- and the blocks after the `doctor` block are unrelated changes, each saying what it touches. The `--force` block is first, deliberately: it is the first of this section's script-visible changes, and the one whose difference is a credential that used to survive and no longer does. It is not the only one -- `install --all` now exits 2 where it exited 1 on a refusal-only run, `--force --repair` together now exits 2 instead of writing, and `install --list`'s STATUS column can now read `installed (other drive case)` for a Claude Code project whose entry an older version left under the other drive-letter spelling -- and each such change is called out in the block it belongs to.
8
+
9
+ **Changed -- `install --force` drops the old entry's `env`; `--repair` is the flag that keeps it**
10
+
11
+ `--force` was documented as "Overwrite whatever is there" and never did. install carried the existing `mcp` entry's `env` into the new one on every path, so `--force` and `--repair` wrote byte-identical entries, and a user running `--force` to purge a wrong `YAW_MCP_VAULT_PASSPHRASE` got the same passphrase back.
12
+
13
+ `--force` is now a true overwrite. The entry it writes carries none of the old entry's `env`, and install names the keys it is dropping -- keys only, never values:
14
+
15
+ ```
16
+ Dropping existing env on the mcp entry (--force): OAM_BIN, YAW_MCP_VAULT_PASSPHRASE. (--repair would keep them; --force does not.)
17
+ ```
18
+
19
+ `Would drop ...` under `--dry-run`. The collision diff printed alongside it names every key that goes, including a non-string value that `--repair` would not have kept either.
20
+
21
+ `--repair` keeps the string values exactly as before, and so does a TTY prompt answered `[o]verwrite`, which now names the keys it keeps: `[o]verwrite (keeping env: OAM_BIN, YAW_MCP_VAULT_PASSPHRASE), [s]kip, or [a]bort? (default: skip)`. The off-TTY refusal names the same keys next to `--repair` and says `--force` drops the env.
22
+
23
+ **This changes what an existing script does, with nothing of yours having moved.** A script that relied on `--force` preserving `OAM_BIN` or `YAW_MCP_VAULT_PASSPHRASE` now loses them; switch it to `--repair`, which writes what `--force` used to write. There is no flag or environment variable that restores the old `--force`, and this release does not add one: the two behaviours are exactly what `--repair` and `--force` now mean, and one of the pair had to become the overwrite the name promises. `--repair` is the way back, named in the refusal, in the prompt and in `install --help`. And `--force --repair` together, accepted until now as two flags that agreed, exits **2**: they disagree about `env`, and honouring either one would silently discard the other.
24
+
25
+ **Fixed -- editing a client config no longer rewrites the entry next to ours**
26
+
27
+ `install`, `uninstall`, `try` and its cleanup, `import` and `set` all write back into a config you may have formatted and commented by hand. They used to go through jsonc-parser's `modify` with formatting on, which starts an insert or a removal at the end of the *previous* member and re-formats that range. So installing into a 4-space or tab-indented `mcp.json` re-rendered the server before ours in a 2-space step and moved its trailing `// comment` onto our entry, and uninstalling deleted a comment trailing the entry before ours.
28
+
29
+ Each edit is now a splice the helpers compute themselves. An insert adds our lines below the last entry, after its comment, plus the one separator comma JSON needs straight after that entry's value. A removal takes our lines and, only when ours was last, the comma before them. New text copies the file's indent step, line endings (a CRLF file stays CRLF) and trailing-comma habit. A container whose `}` sits on its last entry's line gets our entry compact on that line, and an empty `{}` in a multi-line file is opened onto lines of its own. Install followed by uninstall now restores the file byte for byte for the common shapes: 4-space, tab, CRLF, trailing-comma and nested local-scope configs.
30
+
31
+ Five differences remain, all of them the same before this change and after:
32
+
33
+ - A one-line `permissions.allow` array inside a multi-line `permissions` object is expanded when the pattern is added.
34
+ - A comment sitting *inside* that `allow` array is dropped when `mcp__mcp__*` is added or removed. The permissions patch is the one edit here that replaces a whole array value rather than splicing within it, so the comment-preserving helpers keep only what lies outside the array -- a comment between the `permissions` keys survives, one between two entries of `allow` does not.
35
+ - An `"mcpServers": {}` we filled comes back opened onto two lines.
36
+ - A leading BOM is dropped on a real edit.
37
+ - A file that does not end in a newline gains one, so install followed by uninstall is not byte-exact for a config that ended without it. That is deliberate -- POSIX tools and diffs both want the terminator, and install is rewriting the file anyway -- and it is why the byte-for-byte claim above is about the common shapes rather than every file.
38
+
39
+ None of the five fire on a no-op: an entry that already matches what install writes is not rewritten at all, and the file keeps both its bytes and its mtime.
40
+
41
+ **Fixed -- `install --all` over a drifted entry, off a TTY, stops swallowing the diff that tells you what to do**
42
+
43
+ Off a TTY, `yaw-mcp install --all` over a client whose `mcp` entry had drifted from what install writes swallowed that client's refusal whole -- the diff showing what differs included -- because it recognised the refusal by matching its own prose on stderr. Each refusing client now prints its own file and diff under its own header, and the one shared hint after the run leads with `--all --repair`, then `--force`, `--skip` and `--dry-run`; it used to leave `--repair` out and say "1 client already have". Both write flags now say in that hint what they do to `env`, so the consolidated copy-paste cannot be the one that strips a vault passphrase out of every client at once.
44
+
45
+ **The exit code changes.** A run in which every client that did not succeed was refused this way now exits **2** -- the code `install <client>` already returns for the same refusal -- where it used to exit 1. A run in which any client failed outright, a malformed config say, still exits 1. A script that tests for `1` specifically after `install --all` will now see `2` on a refusal-only run. And `install --all --dry-run` now closes on `Dry run: N/N clients would be installed; nothing written.` instead of claiming the clients were installed successfully.
46
+
47
+ **Fixed -- `install --list` stops claiming servers a list does not have, and keeps its `~` under a forward-slash home**
48
+
49
+ `install --list` printed `other-entries` for every client config that existed, including the empty `{"mcpServers": {}}` that `uninstall` leaves behind, while its help defined the status as "the file exists with other servers in it". The status now comes from the one server list the row reads -- `mcpServers`, VS Code's `servers`, or Claude Code local scope's `projects[<dir>].mcpServers` -- and a list that is absent or empty prints the new `no-entries`. The scoping matters for Claude Code, whose user and local rows read the same `.claude.json`: a user-level server no longer makes the local row claim it, and the help legend now says the status is about the row's list, not about the file. That legend reads as a complete enumeration of what the column can say and was not one: `statusFor` returned seven shapes at 1.0.0 and the legend named three, so `legacy: <key>`, `malformed`, `unreadable: <reason>` and `unavailable` all shipped unnamed, and the `(other drive case)` suffix the drive-letter block below adds would have been a fifth. It now names every one of them but `unavailable`, and that omission is deliberate: `unavailable` is the fallback for a client whose `availableOn` omits an OS while its `notConfigurableOn` carries no reason to print instead, a state no shipped target is in, so naming it would document a status the column cannot print. A test derives the set from `statusFor` and fails when the legend stops covering it, that exclusion included. `doctor --json` gains the count behind it, as an additive `containerEntries` field on each `clients[]` entry.
50
+
51
+ The PATH column lost its `~` on Windows whenever `USERPROFILE` was spelled with forward slashes, as a Git Bash or CI shell may export it. `os.homedir()` returns that spelling verbatim, every config path is rebuilt with backslashes, and the shortening was a raw prefix compare. It now goes through one helper that resolves both sides and folds case on Windows and macOS. It still refuses a sibling directory that merely shares the prefix (`C:\Users\jeff-old` under a home of `C:\Users\jeff`). A source-shape test fails on a new raw `startsWith(home)` comparison in the top-level `src/*.ts` sources, including one wrapped in `resolve()` or split across lines by the formatter.
52
+
53
+ **Fixed -- Claude Desktop on Linux reads as "not supported yet", not as an app that does not exist**
54
+
55
+ Anthropic ships Claude Desktop for Linux as a beta, and documents `claude_desktop_config.json` for macOS and Windows only. yaw-mcp read the second fact as the first: `install claude-desktop` on Linux answered that Anthropic ships the app on macOS and Windows only, `doctor` and `install --list` called the client unavailable, and `--all` left it out without a word -- telling people running that beta that the app they had open did not exist.
56
+
57
+ The refusal stays, because no official source names the Linux path and a guessed one writes a file nothing reads. What changes is that yaw-mcp now says why, once. The reason lives on the install target (`notConfigurableOn`), and every surface reads that one string: `install`, `uninstall`, `import` and `try` each refuse with the reason plus a remedy in their own verb's terms, `install --list` shows `not supported yet`, `--all` names the client on a skip line instead of dropping it silently, and `doctor` carries the sentence in a new additive `unavailableReason` field. `import` also stops offering `--os`, a flag it does not have.
58
+
59
+ **Fixed -- Claude Code local scope: the `projects[]` key on Windows, and the entries older versions left under the other drive-letter case**
60
+
61
+ `install claude-code --scope local --project-dir c:/repo` (or a drive-relative `c:repo`) wrote the entry under `projects["c:/repo"]` in `~/.claude.json`. Claude Code looks that up byte-exactly under its working directory as the shell reported it, and PowerShell -- and Git Bash once it has run a `cd` of its own -- report `C:` even after `cd c:/repo`. So install printed Done, `install --list` handed the same directory agreed it was installed, and `/mcp` showed nothing. The drive letter in the key is now upper-cased; the rest of the path, UNC paths and POSIX paths are unchanged.
62
+
63
+ `uninstall`, `doctor`, `install --list` and `import` now also SEE an entry under the other drive-letter spelling of the same directory, which is what an older version wrote. Each of them used to look under the one key its own arguments spelled, so a spelling that did not match the one on disk read as an absence. On 1.0.0 the spelling a run computed came from `--project-dir` when that was passed, and otherwise -- which is how the command is ordinarily run -- from whatever the shell reported as the working directory. So nothing in either command's own text had to differ for two runs to land on different keys. Measured on a 1.0.0 build: a bare `install claude-code --scope local`, run from a cmd.exe sitting in the project after `cd /d c:\repo`, wrote `projects["c:/repo"]`, because cmd.exe keeps the drive letter as typed, with or without `/d`; the matching `uninstall claude-code --scope local --force` -- same client, same scope, no `--project-dir` on either side -- run from PowerShell in that same directory, looked under `projects["C:/repo"]`, because PowerShell reports an upper-case drive whichever case was typed. The two commands are not the same text, and they do not need to be: neither one names a directory, so each takes the drive case from its own shell. That run stripped the `permissions.allow` grant, printed "Claude Code no longer launches yaw-mcp", and left `projects["c:/repo"].mcpServers.mcp` in place -- still launching the broker for any session whose cwd carried the other spelling -- and a second run then reported "Nothing to do". (Both shells report the directory with backslashes, `c:\repo` and `C:\repo`; the forward slashes are the key's, which is that path with every `\` rewritten as `/`.) Naming the directory did not settle it on 1.0.0 either: `--project-dir c:/repo` and `--project-dir C:/repo` each pinned the key that one run computed, because 1.0.0's key builder rewrote the separators and left the drive letter as it arrived, so spelling the directory out helped only when the second run repeated the first one's spelling. This version upper-cases the drive letter in the key it computes and folds the other spelling on read, so the drive case a shell reports or a `--project-dir` carries no longer decides which entry a run finds. `doctor` and `install --list` reported the project as having no yaw-mcp entry at all. `uninstall` now removes the entry from every drive-letter spelling of the same key in one write, and names the key on the lines for the spellings that are not the canonical one -- the canonical removal still reads `Removed the "mcp" entry.` and a non-canonical one reads `Removed the "mcp" entry under projects["c:/repo"].` -- so its closing all-clear is no longer printed over an entry the same run left behind under the other spelling of the drive letter. `doctor` and `install --list` report the entry and name the key it is under: the STATUS column can now read `installed (other drive case)`, with the key itself printed in a note under the table, since that is the only place a full path fits. A script matching that column exactly will see the new text for a project whose entry is under the other spelling. Only the drive letter is folded: two keys differing in any other character, and POSIX and UNC keys, are still separate projects. `doctor --json` carries the key in a new additive field, `clients[].entryProjectKey`.
64
+
65
+ `install` is the exception, deliberately. It writes the canonical upper-case key and LEAVES an entry under the other spelling, printing a note that names it -- deleting it would unwire the one kind of session that can read it (cmd.exe, and a Git Bash started from cmd before its first `cd`) and give that session nothing back, since it cannot read the canonical key. Run `yaw-mcp uninstall claude-code --scope local` to clear both spellings, then install again.
66
+
67
+ Upgrading from 1.0.0, concretely. A local-scope install made with `--project-dir c:/repo` left two things behind: `projects["c:/repo"].mcpServers.mcp` in `~/.claude.json`, and `mcp__mcp__*` in `<repo>/.claude/settings.local.json`. On 1.0.0 which of the two the first `uninstall` cleared came down to how the drive letter was spelled the second time -- by `--project-dir`, or, with that absent, by the shell that reported the cwd -- and the trap is a mismatch rather than any one command. Repeat the install's own spelling -- `uninstall claude-code --scope local --project-dir c:/repo --force` -- and 1.0.0 did the whole job: `Removed the "mcp" entry.`, the settings patch, Done, and an empty container behind it. Uninstall the way the command is ordinarily run, though, with no `--project-dir` and the project as the working directory, and PowerShell -- and Git Bash once it has run a `cd` of its own -- hand it `C:\repo`, which is the key `C:/repo` once the separators are rewritten: 1.0.0 looked under `projects["C:/repo"]`, found nothing there, removed only the permission grant, printed "Claude Code no longer launches yaw-mcp" over an entry that still launched it for any session whose cwd carried the other spelling, and said "Nothing to do" on the second run. `--project-dir C:/repo` reached the same dead end. One run of this version clears both, whichever spelling reaches it -- typed into `--project-dir` or reported by the shell: the entry under whichever key holds it, and the grant.
68
+
69
+ Two limits worth knowing. The closing all-clear covers the containers the run's own scope reads; a `--scope user` entry at the root of the same `~/.claude.json` is not part of it and needs its own `uninstall --scope user`. And cmd.exe keeps a typed lower-case drive (`cd c:\repo`, with or without `/d`), with a Git Bash started from that prompt inheriting it until its own first `cd` -- a Claude Code started from either looks under `c:/...` and does not read the `C:/...` entry install writes, while `doctor` run from that shell still reports it OK. Start Claude Code from PowerShell, run `cd .` in that Git Bash, or run `cd /d C:\repo` in cmd first.
70
+
71
+ **Added -- `install typed`, and one permissions grant that two clients share**
72
+
73
+ `yaw-mcp install typed` wires yaw-mcp into the [typed](https://typed.cloud) CLI, and `uninstall`, `install --list`, `--all`, `doctor`, `try`, `import` and shell completion all take the new id. It writes typed's own `~/.config/typed/mcp.json`, not one of Claude Code's files: the same path on every OS, never moved by `CLAUDE_CONFIG_DIR`, and strict JSON, so install refuses to splice into a copy carrying a comment, as it does for Cline. typed ranks that file above the user-scope files it shares with Claude Code, so its `mcp` entry wins over one Yaw Terminal manages in `~/.claude.json`, while a project's `.mcp.json` still wins over it. When the entry install writes is `npx` (no oam, or no global install for it to point at) and one of those lower-ranked files already launches yaw-mcp locally -- Yaw Terminal's bundled copy is the usual one -- install prints a note: the npx entry replaces that local launch for typed and resolves `@latest` on every typed start, which is slow and can exceed typed's MCP connect timeout, and `npm i -g @yawlabs/mcp` with oam installed plus a re-run, or a larger `MCP_TIMEOUT`, is the way out. On Windows the entry is a bare `npx`, because typed resolves the `.cmd` shim itself. There is no project scope -- `<project>/.mcp.json` is already Claude Code's, and `install mcp` writes it. **It needs a typed CLI newer than 1.5.0**: typed 1.5.0 and older do not read `~/.config/typed/mcp.json` and load only Claude Code's files, and `install claude-code` is the command to run there.
74
+
75
+ typed reads `permissions.allow` from Claude Code's user `settings.json` (`$CLAUDE_CONFIG_DIR/settings.json` when that is set), so `install typed` adds the same `mcp__mcp__*` grant `install claude-code` adds, to the same file, and typed does not prompt on each yaw-mcp tool call. That grant follows `CLAUDE_CONFIG_DIR` where typed's `mcp.json` does not, so under a set one install prints a note naming the `settings.json` that got the grant and saying it is scoped to that config dir, and `uninstall` prints the matching note about which `settings.json` it looked in. A Yaw Mode pane does not get that note; the Yaw Mode block below describes what it gets instead. Install and uninstall now decide whether to touch that grant from the install target, which declares that it patches Claude Code's permissions, rather than from the client being Claude Code. Because the two clients share one grant, `uninstall` stops removing it while the other still has its entry: `uninstall typed` with Claude Code still wired, or `uninstall claude-code --scope user` with typed still wired, leaves the grant and prints one line naming the client that keeps it, `Keeping mcp__mcp__* in <settings.json>: Claude Code (user) still launches yaw-mcp from <.claude.json> and reads that grant.` It also leaves a grant when the other client's config exists but cannot be read, and when typed still loads an `mcp` entry from one of the other files it reads -- `~/.mcp.json`, `<configDir>/.mcp.json` (where older `typed mcp add` releases wrote) or the top-level `mcpServers` of `~/.claude.json` and `<configDir>/.claude.json` -- other than the entry the uninstall itself is removing. A typed file typed cannot load (a comment, a trailing comma) does not keep it. On Windows the file comparison ignores letter case, so a project folder spelled `c:\Users\...` still matches the home. One case changes for a Claude-Code-only setup: when the project folder's `.claude/settings.json` IS the user-scope `settings.json` -- the project folder is your home directory, with `CLAUDE_CONFIG_DIR` unset or pointing at `<home>/.claude` -- uninstalling either of Claude Code's user or project entries now keeps the grant while the other remains. `install --all` names that shared `settings.json` once in its written and would-write lists, though both clients plan the grant.
76
+
77
+ The closing lines speak to typed. `install typed` ends `Done: typed is configured. typed picks the entry up in its next session.` -- typed reads its MCP config once, when a session starts, so there is no running app to restart. `uninstall typed` says typed drops the server in its next session, and says that typed no longer launches yaw-mcp *from `~/.config/typed/mcp.json`* rather than at all: typed's CLI preloads Yaw MCP on its own when no config it reads references it and it finds a `yaw-mcp` on PATH or a `~/.yaw-mcp` directory, so the line adds that `TYPED_CLI_NO_YAW_MCP=1` keeps it out. Every other client's install and uninstall Done lines are unchanged, and a test pins them whole for every client yaw-mcp configures on Linux -- all but Claude Desktop -- at every scope each one has.
78
+
79
+ An older typed CLI ignores `~/.config/typed/mcp.json` without a word, so `install typed` now looks for itself. It reads the bundle typed's launcher runs -- `$TYPED_CLI_BUNDLE`, else `~/.config/typed/typed-cli/cli.mjs` -- and when that file exists and does not contain the quoted `"mcp.json"` path segment typed's loader for the file compiles to, prints one warning to stderr: ``yaw-mcp install: warning -- the typed CLI at <bundle> predates ~/.config/typed/mcp.json, so it will not load this entry until it updates -- run `typed update`.`` `typed update` installs the newest typed release, and the row needs one newer than 1.5.0. With `TYPED_CLI_BUNDLE` set the warning says the bundle has to be rebuilt or replaced instead, since `typed update` refreshes only the default one. It probes the bundle's bytes, never a version number, prints nothing when there is no bundle to read, and changes neither what install writes nor its exit code; it fires on `--dry-run` and on an already-configured re-run as well. `TYPED_CLI_BUNDLE` joins the `--help` Environment block.
80
+
81
+ **Fixed -- in a Yaw Mode pane, the `mcp__mcp__*` grant outlives the pane**
82
+
83
+ A Yaw Mode pane sets `YAW_MODE` to `augment` or `fresh` and points `CLAUDE_CONFIG_DIR` at a per-pane overlay, and `install claude-code` and `install typed` at user scope wrote the grant only to that overlay's `settings.json`. Yaw discards that copy with the pane: an augment pane starts it as a hardlink to `~/.claude/settings.json`, but Yaw unlinks it to write its own per-pane allow-list, install's atomic write replaces it either way, and what Yaw carries home when the pane closes is `.claude.json` alone. So every session after the pane went back to asking about yaw-mcp's tools.
84
+
85
+ With `YAW_MODE` set to one of those two values and `CLAUDE_CONFIG_DIR` naming a Yaw overlay -- a directory whose name starts with `yaw-mode-`, the name every overlay Yaw builds carries and the test Yaw itself applies -- a user-scope install or uninstall of either client now:
86
+
87
+ - **augment** -- writes the grant to `~/.claude/settings.json` as well as the overlay's, and the second `Wrote` line ends ` -- a Yaw Mode pane's own settings.json does not outlive the pane`. `uninstall` removes it from both, and keeps each file's grant while another client that reads that file still has its entry. For `~/.claude/settings.json` that includes a Claude Code entry in the pane's own `.claude.json`, which Yaw carries home, and the line kept for it says so: ``Keeping mcp__mcp__* in ~/.claude/settings.json: Claude Code (user) still launches yaw-mcp from <overlay>/.claude.json, which Yaw carries home when the pane closes.`` An entry in any other file under the overlay -- typed's `<overlay>/.mcp.json`, say -- keeps only the overlay's grant, since that file goes with the pane.
88
+ - **fresh** -- writes the overlay only, since a fresh pane reads nothing from home, and prints one note naming what goes when the pane closes, because a fresh pane keeps nothing of its overlay. For `install typed`, whose entry is outside the overlay, that is the grant: ``Note: a fresh Yaw Mode pane does not keep its settings.json, so the mcp__mcp__* grant in <overlay>/settings.json goes when this pane closes. Run `yaw-mcp install typed` from a normal shell to keep it.`` For `install claude-code`, whose entry lands in the overlay's `.claude.json`, it is both: ``Note: a fresh Yaw Mode pane does not keep its config dir, so the Claude Code entry in <overlay>/.claude.json and the mcp__mcp__* grant in <overlay>/settings.json go when this pane closes. Run `yaw-mcp install claude-code` from a normal shell to keep them.`` -- printed whenever install writes either file there. `uninstall` removes from the overlay only, without a note.
89
+
90
+ Project and local scope are unchanged, since `CLAUDE_CONFIG_DIR` moves neither of their files, and so is every run outside a Yaw Mode pane. That includes a `CLAUDE_CONFIG_DIR` of your own set at a pane's prompt: Yaw exports `YAW_MODE` to the pane's shell too, but a directory not named `yaw-mode-*` is not an overlay, and install treats it exactly as it would outside Yaw. In a pane, the lines above replace the `install typed` note about a grant scoped to `CLAUDE_CONFIG_DIR`. `YAW_MODE` joins the `--help` Environment block.
91
+
92
+ **Added -- `install` reaches Zed, Cline, Continue and Codex CLI, and takes `mcp` as another name for Claude Code's project scope**
93
+
94
+ Four clients are new install targets, landed after 1.0.1. `install`, `uninstall`, `import` and `try` accept each id, `install --all` includes them, and `install --list` and `doctor` show their rows:
95
+
96
+ - **Zed** (`install zed`, user and project scope): `context_servers` in `settings.json` -- `~/.config/zed/settings.json` on macOS and Linux (under `$XDG_CONFIG_HOME` on Linux when that is an absolute path), `%APPDATA%\Zed\settings.json` on Windows, `<project>/.zed/settings.json` at `--scope project`. Zed starts a server when the file is saved, so the Done line says no restart is needed, and a re-run without `--force` keeps the `enabled`, `remote` and `timeout` fields Zed owns on the entry.
97
+ - **Cline** (`install cline`, user scope only): `mcpServers` in `cline_mcp_settings.json`, which Cline reads as strict JSON. install writes the shared copy in `~/.cline/data/settings/` -- or wherever `CLINE_MCP_SETTINGS_PATH`, `CLINE_DATA_DIR` or `CLINE_DIR` puts it -- plus the copy under `User/globalStorage/saoudrizwan.claude-dev/settings/` of each of VS Code, VS Code Insiders, VSCodium, Cursor and Windsurf whose Cline storage directory exists, and uninstall takes the entry out of all of them. Cline picks the file up without a restart, and a re-run without `--force` keeps its `disabled`, `autoApprove` and `timeout` fields and a `"type": "stdio"`.
98
+ - **Continue** (`install continue`, user and project scope): a file of yaw-mcp's own, `mcpServers/yaw-mcp.json`, under `~/.continue` (or `CONTINUE_GLOBAL_DIR`) or `<project>/.continue`. The Done line says to reload the IDE window. On Windows the entry is bare `npx`, because Continue adds the `cmd.exe` wrapper itself.
99
+ - **Codex CLI** (`install codex-cli`, user and project scope): an `[mcp_servers.mcp]` table in `config.toml` under `CODEX_HOME` (default `~/.codex`), or `<project>/.codex/config.toml`, with `startup_timeout_sec` set to 60 seconds against Codex's own default of 10. On Windows the entry is bare `npx`, which needs Codex 0.59.0 or newer. A re-run without `--force` keeps `env_vars` and `enabled`; the Done line says to restart Codex.
100
+
101
+ Two gaps ship with them. `install --list` and `doctor` still read every client file as JSON, so a Codex CLI `config.toml` -- the one `install codex-cli` just wrote included -- shows as `malformed` in `install --list`, and `doctor` warns about it and exits 2. And both report Cline by its shared file alone, not by the editor copies.
102
+
103
+ **`mcp`** is Claude Code's project scope under a second name: `install mcp`, `uninstall mcp` and `import mcp` act on the project-root `.mcp.json` exactly as `claude-code --scope project` does, and an explicit `--scope` beside it still wins. It is an alias rather than a row, so `install --list` and `doctor` do not show that file twice, and `try` does not take it.
104
+
105
+ **Fixed -- `doctor` stops offering steps `install` refuses, and stops asking you to remove by hand what `install` removes itself**
106
+
107
+ `yaw-mcp doctor` no longer offers a step `install` refuses. A client config that does not parse used to get "fix or rerun `yaw-mcp install`", and a rerun -- `--force` included -- exits 1 on that very file. Doctor, install and `import --remove-originals` now give one remedy from one helper: fix the JSON by hand or move the file aside, then run `yaw-mcp install <client>` (with `--scope` on a non-user row). A container key holding a non-empty array, which install also refuses, is named with its shape in doctor's row -- `present, but "mcpServers" is an array of 2, not a JSON object` -- instead of reading as "present, no entry -- run install", and `doctor --json` carries it in a new additive field, `clients[].containerBlocked`. That row is where the shape is named: `install --list` still reports such a file by the count in the list it reads -- `no-entries` for a blocked container, `malformed` for a file that does not parse at all. Doctor's exit code is unchanged by either: a file that does not parse was already a warning (exit 2), and a blocked container is a row line rather than a warning (exit 0 when nothing else is wrong).
108
+
109
+ `import --remove-originals` names an unparseable, non-object, blocked or directory-shaped client file for what it is rather than as "no yaw-mcp entry", and leads with install's by-hand step when that is the file install would write.
110
+
111
+ And doctor stops telling you to remove by hand a legacy `"mcp.hosting"` entry that `install` removes in the same write -- on the line for a lone legacy entry, and on all three lines for a yaw-mcp entry that cannot start (a missing launch command, a missing oam entry file, a bare `oam` command), which now say install removes it. The bare-`oam` line no longer suggests `OAM_BIN` as a second remedy either: the variable steers which binary `install` resolves and writes, never what the client spawns, so it cannot bring the working entry back on its own. It is now named as a precondition of that rerun -- `(set OAM_BIN to oam's full path first if install cannot find it)` -- which pairs the variable with a re-run the way install's own runtime lines do, though not in the same words: those read `Set OAM_BIN to oam's full path and re-run install to host yaw-mcp on it.` The two lines that name no install run (an entry that already works, and one whose launch path is for another OS) still say only that the key has to go.
112
+
113
+ **Fixed -- `--help` stops listing `servers`, the command 1.0.0 deleted**
114
+
115
+ 1.0.0 deleted `yaw-mcp servers`, but the `--help` of both 1.0.0 and 1.0.1 still listed it under Inspection, as a deprecated command that "always fails" and pointed at `list`. That described the stub the release had removed; there was no command left behind the line. The entry is gone. Typing `yaw-mcp servers` is unchanged: it still prints the retired-verb hint naming `yaw-mcp list` and exits 2. A test now fails when the first word of any alias in a `--help` entry, or the first `yaw-mcp` command in a Quickstart step, is not a command yaw-mcp dispatches. Only that word is checked: not an action, flag or argument after it (the `install` in `sidecars install`, the `--list` in `install --list`), not a later `yaw-mcp` command in the same Quickstart step, and not a command named in a description or in the prose around the entries.
116
+
117
+ **Changed -- `release.sh` moves the oam floor to the latest oam release**
118
+
119
+ `MIN_OAM_VERSION` tracks the latest oam release as policy, and moving it was a manual step a release could skip. `release.sh` now reads the latest oam release from GitHub before its confirm prompt, sending the GitHub token its MCP-registry step resolves when there is one and retrying without it if that read fails. When the floor is behind and the version being released is not yet tagged or on npm, it moves the constant and the test literal that pins it, adds a block saying so at the end of the changelog section the release ships under -- or, when that section already holds a floor block the most recent release tag's CHANGELOG does not, rewrites that block instead; a floor block that tag already shipped is left as it is -- and commits those three files before lint, typecheck and tests run, so the gates run over the new floor. Once the version is tagged or on npm, the floor stays where it is and the run says so. Until then, a release stops when the floor is ahead of the latest oam release, and when GitHub cannot be read unless `ALLOW_STALE_OAM_FLOOR=1` is set. A re-run after a failure before the push carries on over the floor commit the failed run left on local main, as long as nothing else was committed on top of it and origin/main has not moved; otherwise the run stops, names `git reset --keep origin/main`, and lists any other commit that reset would discard. `release.sh` is not part of the published package.
120
+
121
+ **Changed -- the oam floor moves to 0.15.2**
122
+
123
+ `MIN_OAM_VERSION` tracks the latest oam release as policy, and v0.15.2 is now current (published 2026-09-13); the floor was 0.13.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. `release.sh` moved the floor and wrote this block; it did not re-run the oam hosting check that `src/oam-spawn.ts` describes.
124
+
125
+ ## 1.0.1 -- no behaviour change: what the npm page says about the package, and a lint gate that does not ship
126
+
127
+ Published 2026-09-12, a day after 1.0.0, and nothing a user runs is different. `src/` is byte-identical across the two tags -- zero lines of difference. Five of the published tarball's eight files still differ, and none of them is source: two of the three under `dist/` carry the version string `tsup` substitutes for `__VERSION__` at build time -- `index.js` five times, the shared chunk twice -- while the third, a 461-byte `auto-upgrade-*.js` re-export barrel, carries it nowhere and differs by the single line that names the chunk it imports. The two hashed files are both renamed and `index.js` is not, because tsup hashes a chunk's name from its content: the version string is in the chunk's content, and the barrel's content names the chunk. So that one substitution is the only difference anywhere under `dist/` that is not a file name. `README.md` carries the badge below; and `package.json`, which npm packs whatever the `files` allow-list says, carries the rewritten description, the `homepage` trailing slash, the thirteen added keywords and the two rewritten lint scripts. `CHANGELOG.md`, `LICENSE.md` and the schema are byte-identical. That `package.json` metadata is not an aside to the registry-page change the next block describes -- it is the mechanism for it. `git log --oneline v1.0.0..v1.0.1` prints five lines: the four changes this section covers, plus the release commit that bumps the version. Two of the four are observable, both on the registry page rather than in the tool; a third leaves nothing in the package but those two lint-script strings, which nothing shipped reads.
128
+
129
+ **Changed -- the description, keywords and homepage npm shows for this package**
130
+
131
+ The description was written for someone who already knew what yaw-mcp was ("One install, every MCP server, managed from yaw.sh/mcp. Runs locally: no account, no sign-in.") and now leads with the category and the clients ("MCP gateway and orchestrator: one local install fronts every MCP server for Claude Code, Cursor, and VS Code, loading tools on demand."). Thirteen keywords were added and none removed -- the shapes people search for (`mcp-gateway`, `mcp-proxy`, `mcp-broker`, `mcp-manager`), the clients (`claude-code`, `claude-desktop`, `cursor`, `vscode`, `windsurf`, `gemini-cli`), two capabilities the README already documents (`secrets-vault`, `lazy-loading`), and `cli`. That is all thirteen, and the array goes from 8 entries to 21. `orchestrator` shows up as a deletion in the diff and is not one: it is re-added further down the array. `homepage` gained a trailing slash to point at the per-server page, `https://yaw.sh/mcp/`.
132
+
133
+ `server.json` was not touched by that commit, so the MCP registry listing still carries the 1.0.0 wording while npm carries the new one: the registry's latest entry for `io.github.YawLabs/mcp` is 1.0.1 with the old description on it. `release.sh` bumps that file's version on every release, which is why the bump alone did not settle it -- the two keep disagreeing until a release carries the new wording into `server.json` as well.
134
+
135
+ The README gained an X follow badge above the tagline. `README.md` is in the package's `files` array, so it ships and is on the npm page; it is cosmetic either way.
136
+
137
+ **Changed -- contributor-only: `npm run lint` routes around a per-version biome crash**
138
+
139
+ Lint and `lint:fix` now go through `scripts/lint.mjs`. Everywhere except Windows ARM64 it is a passthrough to the platform binary; on that host it provisions `@biomejs/cli-win32-x64` into `node_modules/.cache` and runs it under emulation. Biome's own arguments are unchanged. The version to provision is read from the biome the repo actually installed -- `package-lock.json`, falling back to `node_modules/@biomejs/biome/package.json` -- and not from `biome.json`'s `$schema`, which pins the schema the config is validated against rather than the binary npm resolved; the two had drifted a minor apart on a sibling repo, where the stale version passed a tree the installed one rejects. Both read 2.4.16 here, so it is a no-op in this repo and a guard against the next bump. This is the same crash 0.72.0 pinned `@biomejs/biome` to 2.4.16 to avoid, and it is per-version and check-shaped rather than a standing ARM64 defect: 2.5.4 dies with 139 on a check run while answering `--version` with exit 0, and 2.4.16 and 2.5.13 both run correctly. `release.sh` had the attribution right already: at 1.0.0 its `SKIP_LINT` comments blamed the win32-arm64 biome binary and recorded that "the direct node_modules binary all died with zero output", with npm out of the picture. The warning against conflating that binary crash with npm's own wrapper segfault lives in a different comment -- the one covering the ARM64 exit-code tolerance, which calls the wrapper crash "distinct from the biome-2.5.x binary crash" and says "do not merge the two". Among what 1.0.1 changed in the `SKIP_LINT` comments: the shape of the claim -- "on every input" becomes per-version and check-shaped, with `--version` exiting 0 called out as not being evidence the gate works; the npm exclusion, until then carried only by that direct-binary measurement, is stated outright; the comments point at `scripts/lint.mjs` as the route that should make the variable unnecessary; and the consequence 1.0.0 already gave, that formatting "goes unverified whenever it is set", gains the reason it matters: this repo has no CI, so a `SKIP_LINT=1` release publishes unlinted. The behaviour change beside it is that a lint crash now fails the release outright, where before it was eligible for that same host segfault tolerance.
140
+
141
+ Almost none of that is in the published package. `files` is `dist`, `schemas`, `README.md` and `CHANGELOG.md`, so neither `scripts/lint.mjs` nor `release.sh` ships, and with `src/` untouched the shipped code is the 1.0.0 code but for the version string. What does ship is the `scripts.lint` and `scripts.lint:fix` strings in the packed `package.json` -- npm packs that file whatever `files` says -- now naming a `scripts/lint.mjs` the tarball does not contain. They were equally inert before, naming a `biome` binary an install of this package does not bring either, and nothing in the package runs them.
142
+
143
+ This entry is late. 1.0.1 published with no section of its own, under a `CHANGELOG.md` whose newest heading still read `## Unreleased` while describing what had already shipped as 1.0.0 -- so a reader on npm could not tell "nothing shipped" from "nobody wrote it down". Both halves are fixed now: that section is headed `## 1.0.0` below, and this is the release it was hiding.
144
+
145
+ ## 1.0.0 -- adding a server no longer means restarting your client, an authenticated remote server can actually authenticate, and the two doors that blew a context budget are shut
6
146
 
7
147
  The largest release this project has had, by a wide margin -- 60 commits against a previous high of 28 -- and the first to merge three lines of work that had been running in parallel: a remote server that can finally authenticate, a session that re-reads its own configuration while it runs, and a shell surface wide enough to import, inspect and call servers without an MCP client in the loop. Behind them sits a ship-readiness audit that drove the real CLI against throwaway homes and came back with a ship-blocker and thirty-one smaller things. One command is removed outright, and that block is first, deliberately; a second breaking change, to the shape of `exec`'s output, is described further down. Where two of the branches produced a fix for the same thing, there is one implementation here, not two; the reconciliation is described at the end.
8
148
 
@@ -896,7 +1036,7 @@ Intentionally deferred: converting `index.ts`'s 39 `process.exit()` calls to `pr
896
1036
 
897
1037
  **Fixed**
898
1038
 
899
- - Pinned `@biomejs/biome` to 2.4.16. The 2.5.x native binary segfaults (exit 139) on MINGW64-ARM64 before producing any output, which blocked `npm run lint` and stalled the release script -- its tolerance paths could not engage because there was no output to match against. 2.4.16 runs cleanly.
1039
+ - Pinned `@biomejs/biome` to 2.4.16. The 2.5.4 native win32-arm64 binary segfaults (exit 139) on MINGW64-ARM64 before producing any output, which blocked `npm run lint` and stalled the release script -- its tolerance paths could not engage because there was no output to match against. 2.4.16 runs cleanly. (Written at the time as "2.5.x"; later measurement narrowed it to 2.5.4 specifically -- the fault is a per-version packaging bug in the arm64 executable, not a standing arm64 defect, and 2.5.13 runs cleanly too.)
900
1040
  - `biome.json` follows the 2.4 flat schema (`rules.recommended: true` rather than `rules.preset`), plus the formatter rewrites that pin brought with it.
901
1041
 
902
1042
  ## 0.71.0 -- remove the Yaw Team surface (BREAKING)
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @yawlabs/mcp
2
2
 
3
+ [![Follow @TokenLimitNews on X](https://img.shields.io/badge/follow-%40TokenLimitNews-000000?logo=x&logoColor=white)](https://x.com/TokenLimitNews)
4
+
3
5
  **One install. Every MCP server. Managed from one place.**
4
6
 
5
7
  Yaw MCP (the `yaw-mcp` CLI) is an MCP server that fronts every other MCP server you use. Point each AI client (Claude Code, Claude Desktop, Cursor, VS Code) at it once, and your servers load lazily from a single connection instead of a hand-edited `mcpServers` block per client.
@@ -54,24 +56,28 @@ Servers auto-unload after ~10 tool calls to other servers, so context stays clea
54
56
  ### One command (recommended)
55
57
 
56
58
  ```bash
57
- npx -y @yawlabs/mcp@latest install <claude-code|claude-desktop|cursor|vscode|windsurf|gemini-cli>
59
+ npx -y @yawlabs/mcp@latest install <claude-code|claude-desktop|cursor|vscode|windsurf|gemini-cli|zed|cline|continue|codex-cli|typed>
58
60
  ```
59
61
 
60
- This edits the chosen client's config (correct path + JSON shape for your OS) to launch yaw-mcp. On Windows it wraps `npx` in `cmd /c` (without which MCP clients hit `ENOENT` on the `npx.cmd` shim). Run it once per client.
62
+ This edits the chosen client's config (correct path + JSON shape for your OS) to launch yaw-mcp. On Windows it wraps `npx` in `cmd /c` (without which MCP clients hit `ENOENT` on the `npx.cmd` shim), except for Continue, Codex CLI and typed, which resolve that shim themselves and get a bare `npx`. Run it once per client. `mcp` is accepted too, as another name for Claude Code's project scope (`<project>/.mcp.json`).
63
+
64
+ `install typed` writes typed's own `~/.config/typed/mcp.json` (the same path on every OS, whatever `CLAUDE_CONFIG_DIR` says), which typed ranks above the user-scope files it shares with Claude Code -- so it wins over an `mcp` entry Yaw Terminal manages in `~/.claude.json`, while a project's `.mcp.json` still wins over it. On a Yaw Terminal machine that is a trade when install writes an `npx` entry (no oam, or no global install to point it at): the entry replaces Yaw Terminal's local launch for typed, and npx resolves `@latest` on every typed start, which is slow and can exceed typed's MCP connect timeout. Install says so when it happens; `npm i -g @yawlabs/mcp` with oam installed, then a re-run, writes a fast absolute-path entry instead, or raise `MCP_TIMEOUT`. **It needs a typed CLI newer than 1.5.0** -- typed 1.5.0 and older do not read `~/.config/typed/mcp.json` at all; with one of those, use `install claude-code`, whose files typed also reads. `install typed` checks the typed CLI bundle on this machine (`~/.config/typed/typed-cli/cli.mjs`, or `$TYPED_CLI_BUNDLE`) and warns when it cannot read the file yet, naming `typed update`, which installs the newest typed release. Like `install claude-code`, it adds `mcp__mcp__*` to `permissions.allow` in Claude Code's user `settings.json`, which typed reads for permissions too -- `$CLAUDE_CONFIG_DIR/settings.json` when that is set, so the grant is scoped to that config dir while typed's `mcp.json` is not, and install says so. The two clients share that one grant, so `uninstall` of either keeps it while the other still has its entry (or typed still loads an `mcp` entry from another file it reads), and says so. In a Yaw Mode pane, where `CLAUDE_CONFIG_DIR` is a per-pane overlay (a `yaw-mode-*` directory) whose `settings.json` is discarded with the pane, install and uninstall of either client add and remove the grant in `~/.claude/settings.json` too (augment). In a fresh pane, which keeps nothing of its overlay, install says what goes with the pane -- the grant, and for `install claude-code` its entry in the overlay's `.claude.json` as well -- and to install from a normal shell to keep it.
65
+
66
+ Claude Desktop on Linux is not supported yet. Anthropic ships a Linux beta but has not documented where it reads `claude_desktop_config.json`, so `install claude-desktop` refuses on Linux rather than write a guessed path, and `--all` skips it. Add the entry by hand, or use another client.
61
67
 
62
68
  Useful flags:
63
69
 
64
- - `--scope user|project|local` -- which file to write. Claude Code and Cursor support project and local; VS Code and Gemini CLI support user and project; Claude Desktop and Windsurf are user-only.
70
+ - `--scope user|project|local` -- which file to write. Claude Code supports user, project and local; Cursor, VS Code, Gemini CLI, Zed, Continue and Codex CLI support user and project; Claude Desktop, Windsurf, Cline and typed are user-only.
65
71
  - `--dry-run` -- print what would be added (never the rest of the file) and exit without writing.
66
- - `--force` / `--skip` -- overwrite or leave an existing `mcp` entry (otherwise prompts on a TTY, refuses off-TTY).
72
+ - `--repair` / `--force` / `--skip` -- what to do about an existing `mcp` entry that differs from the one install writes. `--repair` brings it up to date and keeps the string values in its `env` block (where the [secret vault](#local-secret-vault) has you put `YAW_MCP_VAULT_PASSPHRASE`), and is a no-op on an entry that already matches. `--force` overwrites it outright, `env` included, naming each key it drops. `--skip` leaves it untouched. Without one of them install prompts on a TTY; off a TTY it shows what differs and refuses with exit 2 (a real failure, such as a malformed config, exits 1). Under `--all` the run exits 2 when every client that did not succeed was refused this way, and 1 if any one failed.
67
73
 
68
74
  After it writes, install reports two things it did **not** change. First, how many servers `~/.yaw-mcp/bundles.json` gives yaw-mcp to serve -- and when that is none, the `yaw-mcp add <slug>` step still to take -- though no longer *before* a restart, since yaw-mcp re-reads that file while the session runs and picks up a server added afterwards on the next `mcp_connect_*` call. Second, how many other MCP servers were already configured in the client file it just edited; those keep launching directly from the client, and installing yaw-mcp does not move them behind the broker. The count is a number, never the server names. Under `--all` the bundles.json line prints once for the run, while the per-client count prints under each client.
69
75
 
70
- Or do every detected client at once:
76
+ Or work across every client at once:
71
77
 
72
78
  ```bash
73
79
  yaw-mcp install --list # detect clients + show install state (read-only)
74
- yaw-mcp install --all # install into every user-scope client on this machine
80
+ yaw-mcp install --all # install into every client yaw-mcp supports on this OS
75
81
  ```
76
82
 
77
83
  > 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.
@@ -162,7 +168,9 @@ To override, in `~/.yaw-mcp/bundles.json`:
162
168
 
163
169
  ```bash
164
170
  yaw-mcp install <client> # connect a client to yaw-mcp (see above)
171
+ yaw-mcp uninstall <client> # unwire a client; leaves servers in bundles.json untouched
165
172
  yaw-mcp doctor [--json] # diagnose config, clients, learning, reliability, upgrade
173
+ yaw-mcp status [--json] # read-only snapshot of loaded servers, activity, vault state, and call counts
166
174
  ```
167
175
 
168
176
  **Servers** -- managed in `~/.yaw-mcp/bundles.json`, browse the catalog at [yaw.sh/mcp/catalog](https://yaw.sh/mcp/catalog/):
@@ -9,7 +9,7 @@ import {
9
9
  readCheckMemo,
10
10
  recordAttemptAt,
11
11
  writeCheckMemo
12
- } from "./chunk-PZMKIDQV.js";
12
+ } from "./chunk-PAUBVL2N.js";
13
13
  export {
14
14
  acquireUpgradeLock,
15
15
  attemptedRecentlyAt,