@yawlabs/mcp 1.0.13 → 1.0.15
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,13 +2,102 @@
|
|
|
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
|
+
## 1.0.14 -- the missing-credential prompt catches more servers and says what is true, and `yaw-mcp secrets --json` keeps stderr to one JSON object per line
|
|
6
|
+
|
|
7
|
+
Published 2026-09-24, the same day as 1.0.13. Sixteen entries below, from a full pass over the secrets and missing-credential code (#173). The credential prompt recognises more of the ways a server says a key is missing, no longer asks for a key bundles.json already sets, drops a value the server rejects, and its refusals say what the next activate will do. `yaw-mcp secrets --json` keeps stderr to one JSON object per line, and its prose refusals name their action. Six of the changes alter behaviour for an existing setup that opts into nothing, and none sits behind a switch: `secrets list --json` and `secrets audit --json` print one line; an inherited value of a name ending in `_PATH`, `_FILE`, `_DIR`, `_HOST`, `_PORT`, `_PREFIX` or `_SIZE` is no longer masked in a child's stderr tail or prompted for; more stderr phrasings bring up the credential prompt; a non-empty bundles.json value wins over a typed one; a vault with an array `entries` or scrypt-invalid kdf parameters is refused at load; and a Tab pasted at the `secrets set` value prompt is kept.
|
|
8
|
+
|
|
9
|
+
**Fixed -- the missing-credential page's refusals say whether activating again opens a new page, an expired page says it expired, and several missing keys are worded in the plural**
|
|
10
|
+
|
|
11
|
+
1.0.13 moved the missing-credential prompt onto the masked page (#170). Three things it did or said were wrong:
|
|
12
|
+
|
|
13
|
+
- An expired page returned the plain `Failed to load "<server>": ...` error, which says nothing about the page, and was booked as a failed activation, which is what `discover`'s failure warning and `dispatch`'s down-ranking read. It now fails with `Could not load "<server>": the page that takes the credential in a masked field expired with nothing submitted, so GITHUB_TOKEN is still missing.` and is not booked: the server's only problem is a value nobody got to type. While the server has an ask left, the message goes on `Activate "<server>" again for a new page, or set GITHUB_TOKEN in its "env" in the bundles.json that defines it (...) -- the edit is picked up on the next mcp_connect_* call, with no client restart.`; when the expired ask was its last, it says no further prompts are coming, as below. An expired page still does not end the asking.
|
|
14
|
+
- A page that could not start, or a browser that could not be opened for it, ends the asking for that server, yet its refusal said `Activate "<server>" again for a new page`, and every later activate repeated that without opening one. It now says `No further prompts for "<server>" this session: set GITHUB_TOKEN in its "env" in the bundles.json that defines it (...) and activate again -- the edit is picked up on the next mcp_connect_* call, with no client restart.`, the same line that ends the refusal for values the server did not accept once the asks are spent.
|
|
15
|
+
- With more than one key missing, these refusals say `credentials` and `are still missing` (1.0.13's two said `credential` and `is still missing`), and the page's intro says the server `reported its missing keys on its own`, not `their missing keys on their own`.
|
|
16
|
+
|
|
17
|
+
**Changed -- a credential typed at the prompt fills a gap in bundles.json instead of overriding it**
|
|
18
|
+
|
|
19
|
+
A value typed at the missing-credential prompt was merged over the server's `env` from bundles.json, so for the rest of the session it beat whatever the file said. The fix the prompt's refusals recommend -- set the key in bundles.json and activate again -- then did nothing until a client restart, and the reload that picks up a bundles.json edit saw no change to the server's launch either, so it left the server running on the typed value. A typed value now fills only a key the server's entry leaves unset or empty (a `"GITHUB_TOKEN": ""` placeholder counts as unset); a non-empty value in the file wins. A file value that differs from the typed one changes the server's launch config like any other `env` edit, so the reload unloads the running server (once no call is in flight on it) and the next activate starts it with the file's value. A key the entry already sets to a non-empty value is not asked for at all, since the answer would be ignored; when every key the server names is set there, the activation returns the plain `Failed to load` error. `mcp_connect_read_tool`'s one-off connect, which uses the typed values so that inspecting a schema does not trip the same missing-credential error, follows the same rule.
|
|
20
|
+
|
|
21
|
+
**Fixed -- a credential the server rejects is dropped instead of riding along on later launches**
|
|
22
|
+
|
|
23
|
+
When the retry a prompt bought fails with the server still naming the same keys missing, the activation says the values just provided were not accepted. The rejected values stayed in memory anyway, and went into every later launch of that server for the rest of the session until a new ask replaced them. They are now dropped at that point. A value the server did not name again -- one it accepted -- is kept.
|
|
24
|
+
|
|
25
|
+
**Fixed -- the missing-credential prompt recognises more of the ways a server says a key is missing, and a line no longer runs into the next**
|
|
26
|
+
|
|
27
|
+
The stderr patterns that bring up the prompt now also match:
|
|
28
|
+
|
|
29
|
+
- `environment variable` or `env var` between the name and the verb: `GITHUB_TOKEN environment variable is required`, `The GITHUB_TOKEN env var is not set`, `OPENAI_API_KEY environment variable must be set`.
|
|
30
|
+
- The plural: `Missing environment variables: OPENAI_API_KEY`, `Missing env vars: GITHUB_TOKEN`.
|
|
31
|
+
- A name in backticks or quotes: `` `GITHUB_TOKEN` is required ``, `Missing env var 'GITHUB_TOKEN'`, `"GITHUB_TOKEN" is not set`.
|
|
32
|
+
- `not set`, `unset` and `not provided` without `is`: `GITHUB_TOKEN not set`, `env var SLACK_BOT_TOKEN not set`. `is` is still required before `required`, `missing`, `empty` and `undefined`, where without it the word describes something else (`GITHUB_TOKEN required scopes` is not a match), and `is not defined` -- the JavaScript `ReferenceError` shape -- still is not a match either.
|
|
33
|
+
- `No GITHUB_TOKEN provided` and `No GITHUB_TOKEN set`.
|
|
34
|
+
- `Please set` with `the`, `environment variable` or `env var` in front of the name, in the plural, or with a colon: `Please set environment variable GITHUB_TOKEN`, `Please set the environment variable GITHUB_TOKEN`, `Please set the GITHUB_TOKEN environment variable`, `Please set env var: GITHUB_TOKEN`, `Please set environment variables: GITHUB_TOKEN`.
|
|
35
|
+
|
|
36
|
+
The gaps inside a pattern no longer cross a line break, except after a colon. The text searched is the stderr tail and the error message joined with newlines, so a line ending in `missing` (`sourcemap is missing`) could claim a credential-shaped name at the start of the next line (`OPENAI_API_KEY loaded from vault`) and put up a prompt for a key the server never asked for. `Missing:` with the name on the next line still matches, as a list. Only the first name of a comma-separated list is asked for (`Missing required environment variables: OPENAI_API_KEY, GITHUB_TOKEN` asks for `OPENAI_API_KEY`); a server that then names the second on the retry gets an ask for it while it has one left. A warning line such as `GITHUB_TOKEN not set, using unauthenticated` now matches too; the patterns are only read once a start has failed.
|
|
37
|
+
|
|
38
|
+
**Fixed -- a name ending in `_PATH`, `_FILE`, `_HOST` and the like is no longer taken for a credential**
|
|
39
|
+
|
|
40
|
+
The classifier that decides which environment variable names read as credentials counted a name as one when any segment of it did, so `SSH_KEY_PATH`, `TLS_KEY_FILE`, `AWS_SHARED_CREDENTIALS_FILE` and `TOKEN_BUCKET_SIZE` all counted. A name whose last underscore-separated segment is `PATH`, `FILE`, `DIR`, `HOST`, `PORT`, `PREFIX` or `SIZE` now does not: it names where a secret lives, or a property of something, rather than the secret. Two things read that classifier. The missing-credential prompt no longer opens a masked secret field for a file path. And the redaction of a failed start's stderr tail no longer treats an inherited environment variable with such a name as a secret: its value -- a path, say -- was replaced with `***NAME***` wherever it appeared in that output. Values yaw-mcp itself injected from bundles.json or the vault are still masked whatever their names. Names ending in `_URL`, `_URI` or `_ID` are unchanged -- a connection string can carry its password inline (`REDIS_PASSWORD_URL`), and `AWS_ACCESS_KEY_ID` is half of a credential pair -- and a name that ends in a credential segment, such as `PATH_TOKEN` or `HOST_KEY`, still counts.
|
|
41
|
+
|
|
42
|
+
**Fixed -- messages that say to edit bundles.json name the project-local file too**
|
|
43
|
+
|
|
44
|
+
A trusted project-local `.yaw-mcp/bundles.json` replaces the user-global file outright while it is in effect, with no merge, so an edit sent to `~/.yaw-mcp/bundles.json` can land in a file the session never reads. Several messages named only the global file: `discover`'s focused result for a disabled server or for a name no entry defines, `mcp_connect_read_tool`'s refusal of such a name, the refusal to load a disabled server, the missing-credential prompt and its refusals, and the pointer every activation and connect failure ends with -- including the raw error returned when a credential prompt is declined or its asks are spent, which read `-> Fix in ~/.yaw-mcp/bundles.json under "<server>", then activate it again ...` and now reads `-> Fix "<server>" in the bundles.json that defines it (...), then activate it again ...`. They now say "the bundles.json that defines it (~/.yaw-mcp/bundles.json, or a trusted project-local .yaw-mcp/bundles.json)", or "the bundles.json in effect (...)" for a name no entry defines -- the wording the no-servers-enabled message already used. The two messages about `yaw-mcp add` still name `~/.yaw-mcp/bundles.json` alone, because that is the file it writes.
|
|
45
|
+
|
|
46
|
+
**Fixed -- a URL-mode client is told when a masked-entry page stops on its own**
|
|
47
|
+
|
|
48
|
+
For a client that opens the masked-entry page from a URL-mode prompt, the broker sends `notifications/elicitation/complete` when the page is done, so the client can drop whatever waiting state it shows. It was sent when the page took a value or expired, and skipped when the page closed, on the reasoning that only shutdown closes a page. The page also closes when its listener fails after it has started listening, and that client was left waiting. The notification now goes out however the page ended, for the vault passphrase and the missing-credential page alike, and is skipped only once shutdown has begun.
|
|
49
|
+
|
|
50
|
+
**Fixed -- the Windows `taskkill` that stops a timed-out child no longer inherits yaw-mcp's own secrets**
|
|
51
|
+
|
|
52
|
+
yaw-mcp removes its own secrets (`YAW_MCP_VAULT_PASSPHRASE`, `YAW_MCP_VAULT_PASSPHRASE_NEW` and the retired `YAW_MCP_TOKEN`, in any letter case) from the environment of the processes it starts. Two did not get that: the `taskkill /T /F` that `yaw-mcp compliance` runs on Windows when the compliance suite times out or overruns its output limit, and the one that stops an `npm prefix -g` probe that has run past 3 seconds (the probe `yaw-mcp upgrade`, `doctor` and the background self-upgrade run to find npm's global prefix). Both inherited the whole environment; both now get the stripped one. A source scan in the test suite checks every spawn-family call in a file that imports `node:child_process` for the strip.
|
|
53
|
+
|
|
54
|
+
**Fixed -- `secrets rotate` says an entry is corrupt, not that the passphrase is wrong, when the vault has just verified the passphrase**
|
|
55
|
+
|
|
56
|
+
`rotate` decrypts every entry into memory before it re-encrypts anything, and aborts with the vault untouched if one fails. That failure read `rotate aborted: entry "X" failed to decrypt under the current passphrase` even on a vault whose check marker had just verified the passphrase, so it blamed the passphrase for a damaged entry -- and `secrets reset`, the way out of a wrong passphrase, refuses one that opens the vault. On a vault with a marker the message now says the passphrase is right and the entry is corrupt (or was written under a different passphrase than the rest of the vault), and to remove it with `yaw-mcp secrets remove X`, set it again, and re-run `rotate`. A vault with no marker, where nothing has verified the passphrase, keeps the old message.
|
|
57
|
+
|
|
58
|
+
**Fixed -- `doctor` and `secrets reset` no longer read a failed key derivation as a wrong passphrase**
|
|
59
|
+
|
|
60
|
+
`checkVaultPassphrase`, the check behind doctor's SECRET VAULT passphrase line and `secrets reset`'s refusal to reset a vault the passphrase already opens, answered "wrong" for any failure to unlock -- including a failure of the scrypt key derivation itself, which says nothing about the passphrase (in practice, a host that cannot allocate the working set). doctor then printed that the passphrase does NOT unlock the vault, with its pointer at `secrets reset`, and `reset` carried on as though the passphrase were wrong. The check now answers "wrong" only when nothing in the vault decrypts, or for an empty passphrase, and passes any other failure up. doctor prints the plain `passphrase: set in this environment` line for it (`vault.passphraseUnlocks` is `null` under `--json`), and `reset` refuses, exit 1, before anything is copied or written: ``could not check YAW_MCP_VAULT_PASSPHRASE against the vault at <path> (<cause>) -- nothing was changed.`` (`that passphrase` in place of the variable's name for one typed at the prompt; one `{"ok":false}` envelope under `--json`).
|
|
61
|
+
|
|
62
|
+
**Fixed -- two malformed vault files are refused as corrupt when they are loaded, like every other**
|
|
63
|
+
|
|
64
|
+
A vault whose recorded KDF parameters pair `r=1` with `N` of 2^16 or more passed the load check, although OpenSSL's scrypt refuses that pair outright (it requires `N < 2^(16r)`), and then failed at unlock with node's own `ERR_CRYPTO_INVALID_SCRYPT_PARAMS` error -- which the broker reported as a passphrase that does not unlock the vault. It is now refused at load as `vault at <path> is corrupt: invalid kdf parameters`, as every other bad pair is. And a vault whose `entries` is a JSON array is refused as `missing or invalid salt/entries`: `[]` used to load as an empty vault, and `["x"]` failed naming a corrupt entry `0` that is not there. This build writes neither shape.
|
|
65
|
+
|
|
66
|
+
**Changed -- the two messages about a damaged verification marker say what is true**
|
|
67
|
+
|
|
68
|
+
The error for a vault whose `check` marker is damaged, which every command that unlocks the vault gives, now ends `the check marker does not verify` rather than `does not decrypt`: it is also raised when the marker decrypts to the wrong text. And the warning for a marker too malformed to use, which is then ignored, now says the next `yaw-mcp secrets set` re-stamps it rather than "the next write" -- a `remove` leaves the vault without one.
|
|
69
|
+
|
|
70
|
+
**Fixed -- `yaw-mcp secrets --json` keeps stderr to one JSON object per line in the three places it did not**
|
|
71
|
+
|
|
72
|
+
`secrets --help` promises that under `--json` stderr carries one JSON object per line. Three things broke that:
|
|
73
|
+
|
|
74
|
+
- An argument error printed prose followed by the whole usage text (`yaw-mcp secrets: unknown flag "--bogus"` and so on). With `--json` anywhere in argv it is now the one line `{"ok":false,"error":"unknown flag \"--bogus\""}`, still exit 2. `--help` still prints the usage.
|
|
75
|
+
- `get`'s warning that it is printing a value in cleartext to a terminal was prose. It is `{"warning":"cleartext-on-tty","name":...}` now.
|
|
76
|
+
- A malformed check marker was reported by the vault loader's own `yaw-mcp: warning: ...` log line, on a command that then succeeded, and a vault file that is not JSON or cannot be read put the same kind of line ahead of the `{"ok":false}` envelope. `list`, `get`, `set`, `remove`, `rotate` and `reset` now print the marker warning themselves: `{"warning":"check-malformed","path":...,"message":...}` under `--json`, `yaw-mcp secrets: warning -- <path>: <message>.` otherwise. Where a vault that is not JSON or cannot be read is refused, the refusal is now the only line, with or without `--json`. For a file that cannot be read, that line now names it: `list` and `get` print `could not read the vault file at <path> (<errno>) -- fix that and re-run.`, the sentence `set`, `remove`, `rotate` and `reset` already used, where before they printed Node's bare errno message, which for `EISDIR` or `EIO` names no file.
|
|
77
|
+
|
|
78
|
+
The help text lists the new warning kinds and says argument errors are covered.
|
|
79
|
+
|
|
80
|
+
**Changed -- `secrets list --json` and `secrets audit --json` print their result on one line**
|
|
81
|
+
|
|
82
|
+
Both pretty-printed their stdout envelope over several lines, where every other `secrets --json` envelope is one compact line; the help text now promises one line for all of them. A consumer that parses the whole of stdout as JSON is unaffected; one that read the multi-line layout line by line will see the change.
|
|
83
|
+
|
|
84
|
+
**Changed -- a `yaw-mcp secrets` refusal in prose names its action once the action is known**
|
|
85
|
+
|
|
86
|
+
A refusal was labelled `yaw-mcp secrets:` or `yaw-mcp secrets <action>:` depending on which check caught it -- the empty-value refusal read `yaw-mcp secrets set: Secret value cannot be empty.` from the argument parser and `yaw-mcp secrets: Secret value cannot be empty.` from the command. Every prose refusal made once the action is known now reads `yaw-mcp secrets <action>: ...`; one made before it -- an unknown or missing action, or a bad flag ahead of the action, as in `yaw-mcp secrets --bogus set X` -- still reads `yaw-mcp secrets: ...`. The ones that change: the argument errors caught after the action (`unknown flag`, `--value requires a value`, `--secret requires a value` / `--server requires a value` and `unexpected positional argument`, so `secrets set X --bogus` now reads `yaw-mcp secrets set: unknown flag "--bogus"`); `No secret named ...` (`get`, `remove`); `Passphrase required ...` and the unlock errors (wrong passphrase, damaged marker) for `get`, `set` and `remove`; `get`'s decrypt failure; the empty-value refusal (`set`); and `Cancelled.` on every action that prompts. The `--json` envelopes are unchanged.
|
|
87
|
+
|
|
88
|
+
**Fixed -- `secrets set`'s value prompt asks again on an empty entry, and keeps a pasted Tab**
|
|
89
|
+
|
|
90
|
+
At a terminal, `set` asks for the value only after it has the passphrase (typed, or from `YAW_MCP_VAULT_PASSPHRASE`) and has derived the key. An empty value -- a bare Enter, or ^D -- refused the whole command at once, and a re-run paid for the passphrase and the derivation again. The value prompt now asks again, as the passphrase prompts do, writing `Secret value cannot be empty.` after each empty entry; after three it refuses as before (`yaw-mcp secrets set: Secret value cannot be empty.`, exit 1, nothing written). ^C still cancels, with exit 130. The prompt also dropped a Tab along with the other control characters, so a pasted token containing one was stored without it, behind a `Stored secret` line and with nothing on the no-echo line to show it. A Tab is now kept at the value prompt, as a piped value always kept it. The passphrase prompts still drop it: a vault created by typing a Tab there is keyed under the string without it, and the same keystrokes have to keep opening it.
|
|
91
|
+
|
|
92
|
+
`secrets --help` now describes `set` as it behaves: at a terminal it prompts; a piped stdin is read whole, minus one trailing newline, with no flag; and `--stdin` reads stdin even when it is a terminal (raw, multi-line, until EOF, and the terminal echoes it). For scripting it points at piping the value in, not at `--stdin`.
|
|
93
|
+
|
|
5
94
|
## 1.0.13 -- Codex CLI works again: `install codex-cli` under smol-toml 1.9.0, and Codex can call the tools it loads
|
|
6
95
|
|
|
7
|
-
Published 2026-09-24, the day after 1.0.12.
|
|
96
|
+
Published 2026-09-24, the day after 1.0.12. Six entries below. The first three were reproduced against real Codex 0.144.0 and 0.156.1, and the doubled-BOM refusal was measured against Codex 0.144.0. `mcp_connect_exec` reaches a cached tool from the first call of a session. On a fresh install, `find_tool` and `exec` wait for the startup pre-warm. Codex, which never re-lists tools, is told to call loaded tools through `mcp_connect_exec` (#172). The TOML codec accepts smol-toml 1.9.0's null-prototype tables, which had broken `install codex-cli`, `doctor`, `install --list` and `heal` for every Codex config. It also refuses a doubled BOM the way Codex does, and pins the parser to 1.9 patch releases (#171). The sixth is the entry this release shipped without, written after it was published: a child server's missing credential is typed into a masked field on the loopback page the vault prompt uses, not into a visible form field (#170).
|
|
8
97
|
|
|
9
98
|
**Fixed -- `mcp_connect_exec` reaches a cached tool from the first call of a session**
|
|
10
99
|
|
|
11
|
-
`start()` hydrated the persisted tool cache but never built the routing table from it. The later rebuilds all wait on an activation, a config change, auto-load, or a pre-warm that learns something new, so on a machine whose servers were all already cached the table stayed empty. exec looks its steps up there, so the documented "a cached-but-unloaded server is loaded on first use" answered `Unknown tool: <name>. Use mcp_connect_discover ...` instead, until an unrelated activation rebuilt it. The table is now built once `start()` has the config, the cache and the grades. exec is the only way a client that never re-lists tools reaches an upstream tool, and typed's lite `find_tool` -> `exec` flow hit the same wall.
|
|
100
|
+
`start()` hydrated the persisted tool cache but never built the routing table from it. The later rebuilds all wait on an activation, a config change, auto-load, or a pre-warm that learns something new, so on a machine whose servers were all already cached the table stayed empty. exec looks its steps up there, so the documented "a cached-but-unloaded server is loaded on first use" answered `Unknown tool: <name>. Use mcp_connect_discover ...` instead, until an unrelated activation rebuilt it. The same empty table made a direct `tools/call` on a cached tool that `tools/list` advertises under `YAW_MCP_TOOL_EXPOSURE=full` answer `Unknown tool` as well, and with `YAW_MCP_PREWARM=0` the table stayed empty whatever was cached, since the pre-warm returned before rebuilding anything. The table is now built once `start()` has the config, the cache and the grades. exec is the only way a client that never re-lists tools reaches an upstream tool, and typed's lite `find_tool` -> `exec` flow hit the same wall.
|
|
12
101
|
|
|
13
102
|
**Fixed -- on a fresh install, `find_tool` and `exec` wait for the startup pre-warm instead of answering "nothing"**
|
|
14
103
|
|
|
@@ -28,6 +117,23 @@ The dependency range was `^1.8.0`, so every install resolved after 2026-09-22 go
|
|
|
28
117
|
|
|
29
118
|
smol-toml 1.9.0 also strips one leading BOM itself. This codec already strips one before parsing, so a file opening with two BOMs -- which an editor or a PowerShell 5.1 re-encode can leave -- began to parse, while Codex 0.144.0 refuses it (`failed to load configuration`). `doctor` and `install --list` called that file healthy, and `install` wrote into a config Codex will not load. The parse now refuses a second BOM with `a second byte-order mark (U+FEFF) opens the file; Codex refuses it -- delete it`. One BOM, which Notepad writes by default, reads as before.
|
|
30
119
|
|
|
120
|
+
**Fixed -- a child server's missing credential is typed into a masked field, not a visible form field**
|
|
121
|
+
|
|
122
|
+
When a local server fails to start and its stderr names a credential it needs (`GITHUB_TOKEN is required` and the like), the broker asks for the value in-session and retries. It asked with a form-mode MCP elicitation carrying one string field per missing key, and a client renders that as an ordinary visible text input: an API token sat on screen, in plain text, while it was typed. The MCP specification (2025-11-25) says servers must not use form mode for passwords or tokens. The 1.0.11 entry for the vault passphrase prompt named moving this prompt onto the same page as a follow-up; this is that follow-up (#170, closing #168).
|
|
123
|
+
|
|
124
|
+
The value is now typed on the one-shot page the vault prompt uses, served on `127.0.0.1`: one masked field per missing key, labelled with the key's name, with the same hardening and the same 3-minute expiry. The page takes one submission. A POST with a field missing or empty is answered 400 `Every field is required.` and the page stays open, so every value arrives non-empty. A client that declares URL-mode elicitation gets a URL-mode prompt for the page, and is sent `notifications/elicitation/complete` when the page takes a value or expires. A client with form mode only gets a form with no fields, as a yes/no consent, and on yes the broker opens the page in the default browser. A client that declares no elicitation is not asked, as before. The prompt and the page both name the server and the missing keys, and both say to set them in the server's `env` in `~/.yaw-mcp/bundles.json` to skip the prompt in future sessions. While the page waits, a client that asked for progress is told every 5 seconds how long the page has left, as with the vault prompt. Shutdown while the prompt is up refuses the activation with the usual `yaw-mcp is shutting down` message.
|
|
125
|
+
|
|
126
|
+
What is typed goes into that one server's env, merged over its `env` from bundles.json, for the retry and for every later launch of that server this session. It is held in memory only: never written to disk, never put in the vault passphrase's slot, and never passed to another server. The retry, and the message when the server still names the same keys missing after it, are unchanged.
|
|
127
|
+
|
|
128
|
+
Each server still gets at most two asks per session, and an ask is counted before anything is shown, however it ends. New in this release is a latch, set by how an ask ended, that stops the asking for that server before the budget runs out:
|
|
129
|
+
|
|
130
|
+
- A decline (or a cancel) is a decision: no further ask for that server this session. This activate and every later one return the plain `Failed to load "<server>": ...` error.
|
|
131
|
+
- A page that cannot start, or a browser that cannot be opened for it on a form-only client, is a wall a second ask would hit identically, and latches the same way. The activation fails with `Could not load "<server>": yaw-mcp could not start the local page that takes the credential in a masked field, so GITHUB_TOKEN is still missing.` -- or `yaw-mcp could not open a browser on this machine for the page that takes the credential in a masked field` -- followed by `Activate "<server>" again for a new page, or set GITHUB_TOKEN in its "env" in ~/.yaw-mcp/bundles.json to skip the prompt in future sessions.` Every later activate returns the same message, and opens no page.
|
|
132
|
+
- An expired page does not latch: the user may simply have been away. The activation returns the plain `Failed to load "<server>": ...` error, and the next activate opens a new page while the server has an ask left.
|
|
133
|
+
- An elicitation request that errors or times out, or a page whose listener fails after it has started listening, does not latch either: the ask is spent and the activation returns the plain error.
|
|
134
|
+
|
|
135
|
+
The plain error is booked as a failed activation, which `discover`'s failure warning and `dispatch`'s down-ranking read; the two wall refusals are not.
|
|
136
|
+
|
|
31
137
|
## 1.0.12 -- `yaw-mcp secrets reset` is the way out of a forgotten vault passphrase, and `doctor` says whether the passphrase it sees unlocks the vault
|
|
32
138
|
|
|
33
139
|
Published 2026-09-23, two days after 1.0.11. Three entries below: the new `secrets reset` verb (#167), which moves the vault aside, lists its entry names and starts a new one under a new passphrase, and refuses when the passphrase it is given already opens the vault; the SECRET VAULT passphrase line in `doctor` gains its unlocks / does-not-unlock / marker-corrupt states; and under `--json` the two stderr warnings that were still prose become JSON lines.
|
package/README.md
CHANGED
|
@@ -357,13 +357,13 @@ Headers are resolved through the same fail-closed path: a missing or malformed r
|
|
|
357
357
|
|
|
358
358
|
1. **`YAW_MCP_VAULT_PASSPHRASE` in yaw-mcp's own env** -- the `env` block of the *yaw-mcp* entry in your MCP client config, not the upstream server's (yaw-mcp strips its own secrets from the env of every child it starts: every server it spawns, the npm runs behind its self-upgrade and the daily sidecar refresh, and the compliance suite). This is the only option for a spawn, which happens over stdio with no terminal to prompt on.
|
|
359
359
|
2. **An in-session prompt for the vault.** If your client supports MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), a locked vault asks for the passphrase and retries the server. The passphrase is never typed into your client's dialog: it goes into a masked field on a one-shot page yaw-mcp serves on `127.0.0.1`. A client with URL-mode elicitation opens that page from its own prompt. A client with form mode only (Claude Code, for one) asks whether to open it, and on yes yaw-mcp opens it in your default browser; with no browser to open (no graphical session), the call fails and names the env var instead. The page takes one submission and expires after 3 minutes. A mistyped passphrase gets one more try per session; a decline stops the asking. It's held in memory for that session only -- never written to disk, and never handed to the server being started.
|
|
360
|
-
3. **An in-session prompt for a child's own missing credential.** The same masked page (and the same URL / form mode rules above) is used when a child server's stderr names a key yaw-mcp does not have: a `GITHUB_TOKEN is required` line, an `AWS_ACCESS_KEY_ID is required` line, and the like. One masked field per missing key, the same URL-mode completion notification, the same page hardening (no CORS, no script, `Cache-Control: no-store`, 256-bit random token, Host header check, 3-minute TTL). The value lands in the child's env for the session -- not the vault slot, and not any other server. A decline ends the asking for the session; a no-page or no-browser is a wall that latches the same way; an expired page
|
|
360
|
+
3. **An in-session prompt for a child's own missing credential.** The same masked page (and the same URL / form mode rules above) is used when a child server's stderr names a key yaw-mcp does not have: a `GITHUB_TOKEN is required` line, an `AWS_ACCESS_KEY_ID is required` line, and the like. One masked field per missing key, the same URL-mode completion notification, the same page hardening (no CORS, no script, `Cache-Control: no-store`, 256-bit random token, Host header check, 3-minute TTL). The value lands in the child's env for the session -- not the vault slot, and not any other server -- and only for a key the server's `bundles.json` entry leaves unset or empty: a non-empty value there wins, and that key is never asked for. A value the child still reports missing on the retry is dropped. Each server gets two asks per session. A decline ends the asking for the session; a no-page or no-browser is a wall that latches the same way; an expired page spends its ask but does not latch, since the user may simply have been away.
|
|
361
361
|
4. **The CLI prompt**, for `yaw-mcp secrets` runs: no-echo on a real TTY. If the terminal will not switch echo off, the prompt refuses rather than show what you type. Note that Git Bash/MSYS can't offer one (Node sees pipes, not a TTY) -- use PowerShell, `winpty`, or the env var there.
|
|
362
362
|
|
|
363
363
|
`yaw-mcp doctor` has a **SECRET VAULT** section showing what's stored, which servers reference it, and whether the passphrase it can see is set and unlocks the vault -- start there when a server won't load. It reports names and a yes/no, never a value.
|
|
364
364
|
|
|
365
365
|
```bash
|
|
366
|
-
yaw-mcp secrets set <name> # store a value (no-echo prompt, or --value
|
|
366
|
+
yaw-mcp secrets set <name> # store a value (no-echo prompt, piped stdin, or --value)
|
|
367
367
|
yaw-mcp secrets get <name> # decrypt and print one value
|
|
368
368
|
yaw-mcp secrets list # show entry NAMES only (values stay encrypted)
|
|
369
369
|
yaw-mcp secrets remove <name> # delete an entry
|
|
@@ -392,7 +392,7 @@ MCP servers are third-party code you choose to run. yaw-mcp doesn't sandbox them
|
|
|
392
392
|
- **Compliance grades (A-F)** -- the `@yawlabs/mcp-compliance` suite (88 tests) grades a server; `yaw-mcp list` shows it in a `GRADE` column and `discover` shows it inline (`github [ready] [A]`). `YAW_MCP_MIN_COMPLIANCE=B` makes `activate` refuse anything below the floor. Ungraded servers pass (don't punish unknown); audit them yourself with `yaw-mcp compliance <target>`.
|
|
393
393
|
- **Source transparency** -- `list` and `discover` show the exact `command`, `args`, and `url` each server launches with. Nothing is wrapped.
|
|
394
394
|
- **Local credentials** -- vault values are encrypted at rest (scrypt + AES-256-GCM), injected at spawn, and never logged. Nothing is transmitted off the machine.
|
|
395
|
-
- **Failure output reaches your client** -- when a server fails to start, the tail of its stderr is attached to the activation error, so it lands in your client's context (and your model's) as well as the log. That tail is the server's own output -- never your files, buffers or shell history -- and it is redacted first: values yaw-mcp injected from `bundles.json` or the vault, resolved request headers, and credential-named variables inherited from your shell (`GITHUB_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `NPM_TOKEN`, ...) are each replaced with `***NAME***`, which names the credential to rotate without showing it. Redaction is exact-substring on values of 8 characters or more, so a credential parked under a name that does not read as one is not covered. There is no opt-out: the tail is what makes a failed start diagnosable, and the missing-credential prompt below reads the same text.
|
|
395
|
+
- **Failure output reaches your client** -- when a server fails to start, the tail of its stderr is attached to the activation error, so it lands in your client's context (and your model's) as well as the log. That tail is the server's own output -- never your files, buffers or shell history -- and it is redacted first: values yaw-mcp injected from `bundles.json` or the vault, resolved request headers, and credential-named variables inherited from your shell (`GITHUB_TOKEN`, `AWS_SECRET_ACCESS_KEY`, `NPM_TOKEN`, ...) are each replaced with `***NAME***`, which names the credential to rotate without showing it. An inherited name whose last segment is `PATH`, `FILE`, `DIR`, `HOST`, `PORT`, `PREFIX` or `SIZE` (`SSH_KEY_PATH`, `TOKEN_BUCKET_SIZE`) does not count as credential-named. Redaction is exact-substring on values of 8 characters or more, so a credential parked under a name that does not read as one is not covered. There is no opt-out: the tail is what makes a failed start diagnosable, and the missing-credential prompt below reads the same text.
|
|
396
396
|
- **Response pruning** (`YAW_MCP_PRUNE_RESPONSES`, on by default) -- trims token cost by dropping no-information keys (null / empty array / empty object) and trimming trailing whitespace and long blank runs in text results. The text rules classify the block before editing it, so a unified diff comes back byte-faithful, fenced code blocks are left alone, and Markdown hard line breaks survive. Structured values are never altered or redacted; it is a token-savings feature, not a security control.
|
|
397
397
|
- **Namespace isolation** -- tools are namespace-prefixed (`gh_create_issue`, never bare `create_issue`), so a server can't impersonate another's tools. `mcp_connect_read_tool` inspects a schema before any code runs.
|
|
398
398
|
|
|
@@ -117,15 +117,18 @@ var INTERNAL_SECRET_ENV_KEYS = /* @__PURE__ */ new Set([
|
|
|
117
117
|
"YAW_MCP_VAULT_PASSPHRASE",
|
|
118
118
|
"YAW_MCP_VAULT_PASSPHRASE_NEW"
|
|
119
119
|
]);
|
|
120
|
+
function isInternalSecretEnvKey(key) {
|
|
121
|
+
return INTERNAL_SECRET_ENV_KEYS.has(key.toUpperCase());
|
|
122
|
+
}
|
|
120
123
|
function scrubInternalSecretsFromProcessEnv() {
|
|
121
124
|
for (const key of Object.keys(process.env)) {
|
|
122
|
-
if (
|
|
125
|
+
if (isInternalSecretEnvKey(key)) delete process.env[key];
|
|
123
126
|
}
|
|
124
127
|
}
|
|
125
128
|
function stripInternalSecretsFromEnv(env) {
|
|
126
129
|
const out = {};
|
|
127
130
|
for (const [key, value] of Object.entries(env)) {
|
|
128
|
-
if (
|
|
131
|
+
if (isInternalSecretEnvKey(key)) continue;
|
|
129
132
|
out[key] = value;
|
|
130
133
|
}
|
|
131
134
|
return out;
|
|
@@ -4391,7 +4394,10 @@ function defaultInstalledVersion(pkgDir) {
|
|
|
4391
4394
|
function killProcessTree(child, platform = process.platform, spawnImpl = spawn2) {
|
|
4392
4395
|
if (platform === "win32" && child.pid !== void 0) {
|
|
4393
4396
|
try {
|
|
4394
|
-
spawnImpl("taskkill", ["/pid", String(child.pid), "/T", "/F"], {
|
|
4397
|
+
spawnImpl("taskkill", ["/pid", String(child.pid), "/T", "/F"], {
|
|
4398
|
+
stdio: "ignore",
|
|
4399
|
+
env: stripInternalSecretsFromEnv(process.env)
|
|
4400
|
+
}).on("error", () => {
|
|
4395
4401
|
});
|
|
4396
4402
|
} catch {
|
|
4397
4403
|
}
|
|
@@ -4563,7 +4569,7 @@ async function oamFloorLines(probe) {
|
|
|
4563
4569
|
}
|
|
4564
4570
|
async function defaultRunningPrefix(argvPath) {
|
|
4565
4571
|
if (process.env.VITEST) return null;
|
|
4566
|
-
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-
|
|
4572
|
+
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-ECOUS4F4.js");
|
|
4567
4573
|
return detectRunningInstallPrefix2(argvPath);
|
|
4568
4574
|
}
|
|
4569
4575
|
async function defaultSpawn(cmd, args, cwd) {
|
|
@@ -4624,7 +4630,7 @@ async function runUpgrade(opts = {}) {
|
|
|
4624
4630
|
if (method === "global-npm") {
|
|
4625
4631
|
const rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
|
|
4626
4632
|
if (rawPrefix !== null) {
|
|
4627
|
-
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-
|
|
4633
|
+
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-ECOUS4F4.js");
|
|
4628
4634
|
const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
|
|
4629
4635
|
const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
|
|
4630
4636
|
if (spawnForm !== null && displayForm !== null) {
|
|
@@ -4741,7 +4747,7 @@ async function runUpgrade(opts = {}) {
|
|
|
4741
4747
|
return { exitCode: 3, lines };
|
|
4742
4748
|
}
|
|
4743
4749
|
function readCurrentVersion() {
|
|
4744
|
-
return true ? "1.0.
|
|
4750
|
+
return true ? "1.0.15" : "dev";
|
|
4745
4751
|
}
|
|
4746
4752
|
|
|
4747
4753
|
// src/auto-upgrade.ts
|
|
@@ -5022,7 +5028,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
|
|
|
5022
5028
|
}
|
|
5023
5029
|
async function maybeAutoUpgrade(deps = {}) {
|
|
5024
5030
|
if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
|
|
5025
|
-
const current = deps.currentVersion ?? (true ? "1.0.
|
|
5031
|
+
const current = deps.currentVersion ?? (true ? "1.0.15" : "dev");
|
|
5026
5032
|
if (current === "dev") return;
|
|
5027
5033
|
const argvPath = deps.argvPath ?? process.argv[1];
|
|
5028
5034
|
const method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
|
|
@@ -5129,7 +5135,7 @@ async function maybeAutoUpgrade(deps = {}) {
|
|
|
5129
5135
|
}
|
|
5130
5136
|
|
|
5131
5137
|
export {
|
|
5132
|
-
|
|
5138
|
+
isInternalSecretEnvKey,
|
|
5133
5139
|
scrubInternalSecretsFromProcessEnv,
|
|
5134
5140
|
stripInternalSecretsFromEnv,
|
|
5135
5141
|
setLogSurface,
|