@yawlabs/mcp 0.79.0 → 0.79.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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
|
+
## 0.79.1 -- `classifyError` stops scanning bodies that cannot match, and two timing assertions stop flaking the release
|
|
6
|
+
|
|
7
|
+
**Fixed -- a release died on a perf tripwire that nothing had regressed**
|
|
8
|
+
|
|
9
|
+
The `classifyError` backtracking guard asserts that a 98 KB reply classifies in under 500 ms. A release run measured 822 ms and failed. The regex was not slower: the suite runs in parallel and packs 394 s of test time into 88 s of wall clock, so any wall-clock assertion inside it competes for CPU at roughly 4x oversubscription, and a 500 ms budget left nothing for that. The budget is now 3000 ms, which clears the contended worst case by about 3x while sitting about 6x under the regression it exists to catch -- re-introducing the quadratic shape costs 4.3 s in ONE of the four regexes, so roughly 17 s in the call the test times. The numbers and the reasoning are recorded next to the assertion, because a bare constant invites the next person to tighten it back.
|
|
10
|
+
|
|
11
|
+
The sibling failure had the same cause and a different surface: the five Windows shim-escaping tests spawn real `cmd /c` children -- the only thing that actually proves the argument escaping -- and the 11-spawn case ran past the 30 s global `testTimeout` under that same contention while passing in 6 s standalone. Those five now carry the 180 s budget this suite already uses for its `npm run build` step.
|
|
12
|
+
|
|
13
|
+
**Changed -- `classifyError` skips the status regexes on bodies that cannot contain a status code**
|
|
14
|
+
|
|
15
|
+
The four HTTP-status patterns are large four-shape alternations, and `reward.ts` runs `classifyError` over EVERY proxied result -- overwhelmingly successful replies carrying no status code at all. Each of those paid four full regex scans of the whole body. Each pattern now sits behind a `t.includes("<code>")` pre-check. All four shapes concatenate the code digits into the CONSUMING path, never inside an optional group or a lookaround, so the substring is a necessary condition for a match and the guard can only skip work -- it cannot change a classification. On a 98 KB body with no status code the call drops from 58 ms to under 1 ms; a 21,480-input differential against the previous implementation found zero disagreements, and no classification in the suite moves.
|
|
16
|
+
|
|
17
|
+
That guard would have quietly made the tripwire above meaningless -- a digit-free body now exits before the regexes it was written to time. The test input carries a suffix of `x401x x403x x404x x429x`: glued to word characters, so the pre-check opens but no shape can match (`429\b` needs a boundary after the 9) and all four patterns still scan the full 98 KB. The test also asserts the result is `upstream_error`, which is only true if no earlier branch returned -- so a future short-circuit added above them fails the test instead of hollowing it out.
|
|
18
|
+
|
|
19
|
+
## 0.79.0 -- no code changes
|
|
20
|
+
|
|
21
|
+
Published 2026-09-01 carrying a `CHANGELOG.md` line recorded under the 0.78.0 heading, plus the version bump itself: no source change, no dependency change, no metadata change. Noted here for the same reason 0.76.2 is, so a reader who finds no entry can tell "nothing shipped" from "nobody wrote it down".
|
|
22
|
+
|
|
5
23
|
## 0.78.0 -- the vault passphrase prompt reaches the code that needed it, and sidecars stop drifting
|
|
6
24
|
|
|
7
25
|
**Added -- sidecars stopped moving, and nothing said so**
|
|
@@ -38,10 +56,10 @@ The new SECRET VAULT section listed every server whose configured env carried `$
|
|
|
38
56
|
|
|
39
57
|
`YAW_MCP_VAULT_PASSPHRASE` was absent from `yaw-mcp --help`'s environment table while the README pointed at that table for "the full list", and `doctor` said nothing about the vault at all. A user whose server refused to spawn had no surface connecting a `${secret:NAME}` in bundles.json to the variable that makes it work. The var is now in `--help`, and `doctor` reports the vault file, its entry NAMES, which servers reference which names, whether a passphrase is present, and any referenced name that is not stored -- mirrored into `--json` as `.vault`. Names and booleans only: no secret value, and no passphrase, appears in either surface, which is also why the passphrase stays out of `DOCTOR_ENV_VARS` (that block prints raw values). The section is informational and never moves the exit code -- an unset passphrase is the normal state for a terminal run, since it belongs in the env your MCP client spawns yaw-mcp with, which doctor cannot see.
|
|
40
58
|
|
|
41
|
-
**Added -- `secrets set` says where the passphrase has to live, once, when it creates the vault**
|
|
42
|
-
|
|
43
|
-
Storing a secret and using one happen in different processes. `secrets set` runs in the user's own shell, where the passphrase was just supplied; the `${secret:NAME}` substitution runs inside the yaw-mcp that the MCP CLIENT spawns, which has its own environment and cannot prompt for anything. Set the passphrase only in the shell that ran `set` and the result is a vault that works perfectly from the CLI and a server that refuses to start, with nothing on either surface connecting the two -- no SUCCESS path in the CLI mentioned `YAW_MCP_VAULT_PASSPHRASE` at all, so it was discoverable by reading the README, or by hitting the failure and reading the error. Creating the vault now prints a one-time note naming the variable and the environment it belongs in; the wording differs depending on whether it is already set in the current shell, because someone who has exported it needs to be told the client's process is a separate one, not told to set it again. It fires on vault CREATION only -- once per vault, never on the second or the hundredth `set` -- and always on stderr, so `--json` stdout stays a single parseable line and `get`'s cleartext is never polluted. It reports only WHETHER the variable is set, never its value, since CLI output gets pasted into bug reports.
|
|
44
|
-
|
|
59
|
+
**Added -- `secrets set` says where the passphrase has to live, once, when it creates the vault**
|
|
60
|
+
|
|
61
|
+
Storing a secret and using one happen in different processes. `secrets set` runs in the user's own shell, where the passphrase was just supplied; the `${secret:NAME}` substitution runs inside the yaw-mcp that the MCP CLIENT spawns, which has its own environment and cannot prompt for anything. Set the passphrase only in the shell that ran `set` and the result is a vault that works perfectly from the CLI and a server that refuses to start, with nothing on either surface connecting the two -- no SUCCESS path in the CLI mentioned `YAW_MCP_VAULT_PASSPHRASE` at all, so it was discoverable by reading the README, or by hitting the failure and reading the error. Creating the vault now prints a one-time note naming the variable and the environment it belongs in; the wording differs depending on whether it is already set in the current shell, because someone who has exported it needs to be told the client's process is a separate one, not told to set it again. It fires on vault CREATION only -- once per vault, never on the second or the hundredth `set` -- and always on stderr, so `--json` stdout stays a single parseable line and `get`'s cleartext is never polluted. It reports only WHETHER the variable is set, never its value, since CLI output gets pasted into bug reports.
|
|
62
|
+
|
|
45
63
|
## 0.77.0 -- the learning signal stops recording things it did not observe, the silent failures get loud, and the dead ends are retired
|
|
46
64
|
|
|
47
65
|
Seven commits of full-pass review work, taken through repeated adversarial rounds. The two user-visible contract changes are first; the rest are fixes.
|
|
@@ -235,7 +235,7 @@ async function oamFloorLines(probe) {
|
|
|
235
235
|
}
|
|
236
236
|
async function defaultRunningPrefix(argvPath) {
|
|
237
237
|
if (process.env.VITEST) return null;
|
|
238
|
-
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-
|
|
238
|
+
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-YUPODM3T.js");
|
|
239
239
|
return detectRunningInstallPrefix2(argvPath);
|
|
240
240
|
}
|
|
241
241
|
async function defaultSpawn(cmd, args, cwd) {
|
|
@@ -287,7 +287,7 @@ async function runUpgrade(opts = {}) {
|
|
|
287
287
|
if (method === "global-npm") {
|
|
288
288
|
const rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
|
|
289
289
|
if (rawPrefix !== null) {
|
|
290
|
-
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-
|
|
290
|
+
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-YUPODM3T.js");
|
|
291
291
|
const spawnForm = quoteShellArgIfNeeded2(rawPrefix);
|
|
292
292
|
const displayForm = quoteArgForDisplay2(rawPrefix);
|
|
293
293
|
if (spawnForm !== null && displayForm !== null) {
|
|
@@ -395,7 +395,7 @@ async function runUpgrade(opts = {}) {
|
|
|
395
395
|
return { exitCode: 3, lines };
|
|
396
396
|
}
|
|
397
397
|
function readCurrentVersion() {
|
|
398
|
-
return true ? "0.79.
|
|
398
|
+
return true ? "0.79.1" : "dev";
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
// src/auto-upgrade.ts
|
|
@@ -533,7 +533,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
|
|
|
533
533
|
async function maybeAutoUpgrade(deps = {}) {
|
|
534
534
|
const optOut = process.env.YAW_MCP_AUTO_UPGRADE;
|
|
535
535
|
if (optOut === "0" || optOut?.toLowerCase() === "false") return;
|
|
536
|
-
const current = deps.currentVersion ?? (true ? "0.79.
|
|
536
|
+
const current = deps.currentVersion ?? (true ? "0.79.1" : "dev");
|
|
537
537
|
if (current === "dev") return;
|
|
538
538
|
const method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(deps.argvPath ?? process.argv[1]);
|
|
539
539
|
const latest = await (deps.fetchLatestImpl ?? fetchLatestVersion)();
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
parseUpgradeArgs,
|
|
51
51
|
refineInstallMethod,
|
|
52
52
|
runUpgrade
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-TBJCXYS4.js";
|
|
54
54
|
import {
|
|
55
55
|
log
|
|
56
56
|
} from "./chunk-3RRZQPA5.js";
|
|
@@ -2162,7 +2162,7 @@ async function connectToUpstreamOnce(config, onDisconnect, onListChanged, bridge
|
|
|
2162
2162
|
if (downstreamCaps?.sampling) capabilities.sampling = downstreamCaps.sampling;
|
|
2163
2163
|
if (downstreamCaps?.roots) capabilities.roots = {};
|
|
2164
2164
|
const client = new Client(
|
|
2165
|
-
{ name: "yaw-mcp", version: true ? "0.79.
|
|
2165
|
+
{ name: "yaw-mcp", version: true ? "0.79.1" : "dev" },
|
|
2166
2166
|
{ capabilities }
|
|
2167
2167
|
);
|
|
2168
2168
|
if (bridge && capabilities.elicitation) {
|
|
@@ -6642,7 +6642,7 @@ function foldBundleWarnings(warnings, probe) {
|
|
|
6642
6642
|
const prefix = `${probe.path}:`;
|
|
6643
6643
|
return warnings.filter((w) => !w.startsWith(prefix));
|
|
6644
6644
|
}
|
|
6645
|
-
var VERSION = true ? "0.79.
|
|
6645
|
+
var VERSION = true ? "0.79.1" : "dev";
|
|
6646
6646
|
var DOCTOR_USAGE = `Usage: yaw-mcp doctor [--json]
|
|
6647
6647
|
|
|
6648
6648
|
Print a diagnostic of your yaw-mcp setup.
|
|
@@ -10392,10 +10392,15 @@ function httpStatusRe(code) {
|
|
|
10392
10392
|
const shapeC = `^[\\s"'\`\\[(]*${code}\\b${notCountOrDomain}`;
|
|
10393
10393
|
return new RegExp(`${shapeA1}|${shapeA2}|${shapeB}|${shapeC}`);
|
|
10394
10394
|
}
|
|
10395
|
-
|
|
10396
|
-
|
|
10397
|
-
|
|
10398
|
-
|
|
10395
|
+
function httpStatusMatcher(code) {
|
|
10396
|
+
const digits = String(code);
|
|
10397
|
+
const re = httpStatusRe(code);
|
|
10398
|
+
return (t) => t.includes(digits) && re.test(t);
|
|
10399
|
+
}
|
|
10400
|
+
var HAS_HTTP_401 = httpStatusMatcher(401);
|
|
10401
|
+
var HAS_HTTP_403 = httpStatusMatcher(403);
|
|
10402
|
+
var HAS_HTTP_404 = httpStatusMatcher(404);
|
|
10403
|
+
var HAS_HTTP_429 = httpStatusMatcher(429);
|
|
10399
10404
|
var RX_NO_TOKEN = /no [a-z_]*token (configured|set)/i;
|
|
10400
10405
|
var RX_TIMEOUT = /(?<!["'`])\btimeout\b(?!["'`])/;
|
|
10401
10406
|
function classifyError(text) {
|
|
@@ -10413,17 +10418,17 @@ function classifyError(text) {
|
|
|
10413
10418
|
if (t.includes("auto-reconnect failed") || t.includes("connection closed")) {
|
|
10414
10419
|
return "connection_lost";
|
|
10415
10420
|
}
|
|
10416
|
-
if (
|
|
10421
|
+
if (HAS_HTTP_429(t) || t.includes("rate limit") || t.includes("too many requests") || // OpenAI SDK quota body: "429 You exceeded your current quota, ..."
|
|
10417
10422
|
t.includes("exceeded your current quota")) {
|
|
10418
10423
|
return "rate_limited";
|
|
10419
10424
|
}
|
|
10420
|
-
if (
|
|
10425
|
+
if (HAS_HTTP_401(t) || HAS_HTTP_403(t) || t.includes("unauthorized") || t.includes("forbidden") || t.includes("permission denied") || t.includes("access denied") || // go-github / github-mcp-server reason phrases, which follow a URL
|
|
10421
10426
|
// rather than an intro word ("GET https://api.github.com/...: 401 Bad
|
|
10422
10427
|
// credentials []") so the status regex cannot see the code.
|
|
10423
10428
|
t.includes("bad credentials") || t.includes("requires authentication") || t.includes("not accessible by") || RX_NO_TOKEN.test(t)) {
|
|
10424
10429
|
return "unauthorized";
|
|
10425
10430
|
}
|
|
10426
|
-
if (
|
|
10431
|
+
if (HAS_HTTP_404(t) || t.includes("not found")) {
|
|
10427
10432
|
return "not_found";
|
|
10428
10433
|
}
|
|
10429
10434
|
return "upstream_error";
|
|
@@ -12527,7 +12532,7 @@ var ConnectServer = class _ConnectServer {
|
|
|
12527
12532
|
static SHUTDOWN_DRAIN_MS = 2e3;
|
|
12528
12533
|
constructor() {
|
|
12529
12534
|
this.server = new Server(
|
|
12530
|
-
{ name: "yaw-mcp", version: true ? "0.79.
|
|
12535
|
+
{ name: "yaw-mcp", version: true ? "0.79.1" : "dev" },
|
|
12531
12536
|
{
|
|
12532
12537
|
capabilities: {
|
|
12533
12538
|
tools: { listChanged: true },
|
|
@@ -15198,7 +15203,7 @@ if (subcommand === "compliance") {
|
|
|
15198
15203
|
`);
|
|
15199
15204
|
process.exitCode = 0;
|
|
15200
15205
|
} else if (subcommand === "--version" || subcommand === "-V") {
|
|
15201
|
-
process.stdout.write(`yaw-mcp ${true ? "0.79.
|
|
15206
|
+
process.stdout.write(`yaw-mcp ${true ? "0.79.1" : "dev"}
|
|
15202
15207
|
`);
|
|
15203
15208
|
process.exitCode = 0;
|
|
15204
15209
|
} else if (subcommand && !subcommand.startsWith("-")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yawlabs/mcp",
|
|
3
|
-
"version": "0.79.
|
|
3
|
+
"version": "0.79.1",
|
|
4
4
|
"mcpName": "io.github.YawLabs/mcp",
|
|
5
5
|
"description": "Yaw MCP -- one install, every MCP server, managed from yaw.sh/mcp. Runs entirely on your machine: no account, no sign-in.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|