@yawlabs/mcp 1.0.16 → 1.0.17
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
|
@@ -4,6 +4,12 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
**Fixed -- `release.sh` no longer dies at step 5 waiting on npm's five-minute CDN cache, so a release finishes in one run**
|
|
8
|
+
|
|
9
|
+
Recent releases, 1.0.16 included, ended with `npm does not show @yawlabs/mcp@<version> after 60s -- refusing to publish to MCP registry (it would 400)` and needed a second `./release.sh <version>` to publish `server.json`. The wait was on the wrong document. `npm view "@yawlabs/mcp@<version>"` fetches the package's whole packument, which registry.npmjs.org serves from Cloudflare's edge under `Cache-Control: public, max-age=300` -- measured 2026-09-28: `CF-Cache-Status: HIT` with `Age: 105`, and still `HIT` with `Cache-Control: no-cache` on the request (request headers cannot opt out; a fresh query string can, but `npm view` sends none, and the packument is the wrong document anyway) -- so for up to five minutes after `npm publish` returns it can keep answering from a copy that predates the publish. Ten reads six seconds apart could not outlast that, and a single read also measured about 20 s on this workstation, so the "60s" in the message was really several minutes spent on the wrong document. The MCP registry's validator never reads it: it fetches npm's per-version document, `GET /@yawlabs%2Fmcp/<version>` (registry v1.7.9, `internal/validators/registries/npm.go`), which Cloudflare serves `DYNAMIC`, never from the edge cache.
|
|
10
|
+
|
|
11
|
+
Every "is this version on npm?" read in the script -- the pre-flight already-published probe, the tag-drift guard, step 4's skip and its ARM64 tolerance, step 5's wait and the final verification -- now reads that per-version document through one cache-busted `curl` (`npm_version_manifest`): the same URL the registry will fetch, so a hit is the strongest local evidence that the publish will be accepted, and no read goes through `npm view` or its 20 s. Step 5 waits on a clock rather than a read count: `NPM_PROPAGATION_TIMEOUT` seconds (default 180) of reads every 5 s, a progress line every 30 s, and a failure that names the document, the time spent and the re-run. The variable is checked in the pre-flight, with the step-5 tools -- whole seconds, at most six digits, `0180` read as 180 -- because its first use is after the irreversible publish, and a `3m` failing there would strand the release at the registry step. `mcp-publisher publish` itself is tried up to four times, 30, 60 and then 90 seconds apart -- in this family, ctxlint's v0.27.0 ran out its own 60 s wait on the same per-version document and was accepted by the registry only on attempt 3 of 3, about 150 s after npm accepted the tarball -- on the failures that waiting cures, in the wording of the live registry (v1.8.1, reworded in v1.8.0 by registry PR #1411): a 404 naming this version (`exists, but version '<v>' was not found (status: 404)`), `Likely transient, retry later` (npm's 429 or 5xx, or a 404 whose package-level check was inconclusive), and `failed to fetch package metadata from NPM` (no status at all). The version is matched as the validator's own `version '<v>'`, since mcp-publisher after v1.8.1 prints the version before any error. It fails at once, with the tool's own output, on anything else: an expired login, the 422 schema report, a `mcpName` mismatch, a package the registry says does not exist. A duplicate version counts as done: the registry already holds it, the state the step exists to reach. If the listing still does not show it afterwards -- a version marked deleted is held but unlisted -- the final check says so rather than prescribing a re-run that would meet the same refusal. A persisted registry token is reused only with at least 240 s left, since tokens last 5 minutes and the retry can run 180 s. Step 4 reads npm's E403 `You cannot publish over the previously published versions` as the skip its probe should have taken, so a re-run whose read still lags npm's write goes on to step 5 instead of dying with a stale-token hint. The final verification reads the version and the tarball integrity out of one manifest read instead of two `npm view` calls. The one `npm view` left is the pre-flight `latest` read for the backward-version guard, where an answer up to five minutes stale changes nothing.
|
|
12
|
+
|
|
7
13
|
**Fixed -- Codex CLI 0.151 and later get yaw-mcp's tools: `install codex-cli` sets `mcp_optional_startup_grace_ms = 0` at the top of `config.toml`**
|
|
8
14
|
|
|
9
15
|
Codex 0.156.1 waits 1000 ms for optional MCP servers while it builds a session's tool catalog -- the top-level `mcp_optional_startup_grace_ms`, whose default is 1000 -- and a server that misses that grace is left out for the whole session, not added on a later turn. yaw-mcp launched through the entry `install codex-cli` writes (`command = "npx"`, `args = ["-y", "@yawlabs/mcp@latest"]`) took from 3 to more than 35 seconds to start, so its tools were absent on all 8 turns of a 37-second session. With `mcp_optional_startup_grace_ms = 0` at the top of `config.toml`, Codex waits for each server's own `startup_timeout_sec` instead -- the entry sets 60 -- and the tools were present from the first turn. Both were measured on 2026-09-24 against real Codex 0.156.1, and Codex 0.144.0 accepts the key (no config error, and `codex mcp list` works). Codex's source has the key from 0.151.0 on; Codex 0.147 to 0.150 already wait a fixed 1 s that this key cannot change, so the fix needs Codex 0.151 or newer. Marking the entry `required = true` is not the fix: measured, a required server that has not started within `startup_timeout_sec` stops Codex with `required MCP servers failed to initialize ... timed out handshaking`, which would turn a slow or broken yaw-mcp into a Codex that does not start.
|
|
@@ -109,6 +115,10 @@ Off a terminal, where it overwrote before, `import` now writes nothing and exits
|
|
|
109
115
|
|
|
110
116
|
The dry run said nothing about the originals, so the one step of an import that edits a file you did not name could not be previewed. With `--remove-originals` it now prints, before `--- dry run: nothing was written ---`, `Would remove 2 entries from <file> (--remove-originals):` and one indented line per key -- after `Reached through the yaw-mcp entry in <container>.` when yaw-mcp is reached through another scope's entry -- or the reason it would remove none: the real run's refusal, led by `Would not remove the originals: ` in place of `Not removing the originals: `; `yaw-mcp import: would not be removed from <file>: <key> (<why>). Remove that entry by hand; ...` for a key the real run would leave; `yaw-mcp import: would remove nothing from <file>; it would be left unchanged. The servers would be imported either way.`; or, when bundles.json does not parse and nothing would be imported, `yaw-mcp import: would remove nothing from <file> -- none of these servers would be imported, because their write to bundles.json could not be previewed (the warning above says why).` The preview runs the real run's own search for yaw-mcp's entry, its refusal and its splice over the same bytes, and the real run's removal prints what it did before. The preview assumes that every bundles.json entry the import would change is overwritten (the entry above); a real run in which one is skipped leaves that server's original where it is. A dry run without `--remove-originals` prints nothing new, and `import --help` says what `--dry-run` shows with it.
|
|
111
117
|
|
|
118
|
+
**Changed -- the oam floor moves to 0.17.0**
|
|
119
|
+
|
|
120
|
+
`npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/sdk` server on oam v0.17.0 through `oam run` on 2026-09-25 -- initialize, tools/list and tools/call all completed -- and raised `MIN_OAM_VERSION` to it; the floor was 0.16.4. 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.
|
|
121
|
+
|
|
112
122
|
## 1.0.15 -- 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
|
|
113
123
|
|
|
114
124
|
Published 2026-09-24, the same day as 1.0.13. This section was prepared under a 1.0.14 heading and published as 1.0.15: there is no 1.0.14 on npm and no `v1.0.14` tag. 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.
|
|
@@ -3939,7 +3939,7 @@ function npxSpec(args) {
|
|
|
3939
3939
|
const spec = args[idx];
|
|
3940
3940
|
return spec.startsWith("-") ? null : spec;
|
|
3941
3941
|
}
|
|
3942
|
-
var MIN_OAM_VERSION = "0.
|
|
3942
|
+
var MIN_OAM_VERSION = "0.17.0";
|
|
3943
3943
|
var OAM_INSTALL_SH = "curl -fsSL https://oamjs.org/install.sh | sh";
|
|
3944
3944
|
var OAM_INSTALL_PS1 = "irm https://oamjs.org/install.ps1 | iex";
|
|
3945
3945
|
function oamInstallCommand(os) {
|
|
@@ -4905,7 +4905,7 @@ async function oamFloorLines(probe) {
|
|
|
4905
4905
|
}
|
|
4906
4906
|
async function defaultRunningPrefix(argvPath) {
|
|
4907
4907
|
if (process.env.VITEST) return null;
|
|
4908
|
-
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-
|
|
4908
|
+
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-MT4LORBC.js");
|
|
4909
4909
|
return detectRunningInstallPrefix2(argvPath);
|
|
4910
4910
|
}
|
|
4911
4911
|
async function defaultSpawn(cmd, args, cwd) {
|
|
@@ -4966,7 +4966,7 @@ async function runUpgrade(opts = {}) {
|
|
|
4966
4966
|
if (method === "global-npm") {
|
|
4967
4967
|
const rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
|
|
4968
4968
|
if (rawPrefix !== null) {
|
|
4969
|
-
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-
|
|
4969
|
+
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-MT4LORBC.js");
|
|
4970
4970
|
const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
|
|
4971
4971
|
const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
|
|
4972
4972
|
if (spawnForm !== null && displayForm !== null) {
|
|
@@ -5083,7 +5083,7 @@ async function runUpgrade(opts = {}) {
|
|
|
5083
5083
|
return { exitCode: 3, lines };
|
|
5084
5084
|
}
|
|
5085
5085
|
function readCurrentVersion() {
|
|
5086
|
-
return true ? "1.0.
|
|
5086
|
+
return true ? "1.0.17" : "dev";
|
|
5087
5087
|
}
|
|
5088
5088
|
|
|
5089
5089
|
// src/auto-upgrade.ts
|
|
@@ -5364,7 +5364,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
|
|
|
5364
5364
|
}
|
|
5365
5365
|
async function maybeAutoUpgrade(deps = {}) {
|
|
5366
5366
|
if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
|
|
5367
|
-
const current = deps.currentVersion ?? (true ? "1.0.
|
|
5367
|
+
const current = deps.currentVersion ?? (true ? "1.0.17" : "dev");
|
|
5368
5368
|
if (current === "dev") return;
|
|
5369
5369
|
const argvPath = deps.argvPath ?? process.argv[1];
|
|
5370
5370
|
const method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
|
package/dist/index.js
CHANGED
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
unparseableConfigFix,
|
|
108
108
|
userConfigDir,
|
|
109
109
|
yawModeOverlay
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-Z66T6Z6Z.js";
|
|
111
111
|
|
|
112
112
|
// src/audit-cmd.ts
|
|
113
113
|
import { homedir as homedir6 } from "os";
|
|
@@ -3271,7 +3271,7 @@ async function connectToUpstreamOnce(config, onDisconnect, onListChanged, bridge
|
|
|
3271
3271
|
if (downstreamCaps?.sampling) capabilities.sampling = downstreamCaps.sampling;
|
|
3272
3272
|
if (downstreamCaps?.roots) capabilities.roots = {};
|
|
3273
3273
|
const client = new Client(
|
|
3274
|
-
{ name: "yaw-mcp", version: true ? "1.0.
|
|
3274
|
+
{ name: "yaw-mcp", version: true ? "1.0.17" : "dev" },
|
|
3275
3275
|
{ capabilities }
|
|
3276
3276
|
);
|
|
3277
3277
|
if (bridge && capabilities.elicitation) {
|
|
@@ -11757,7 +11757,7 @@ function foldBundleWarnings(warnings, probe) {
|
|
|
11757
11757
|
const prefix = `${probe.path}:`;
|
|
11758
11758
|
return warnings.filter((w) => !w.startsWith(prefix));
|
|
11759
11759
|
}
|
|
11760
|
-
var VERSION = true ? "1.0.
|
|
11760
|
+
var VERSION = true ? "1.0.17" : "dev";
|
|
11761
11761
|
var DOCTOR_USAGE = `Usage: yaw-mcp doctor [--json]
|
|
11762
11762
|
|
|
11763
11763
|
Print a diagnostic of your yaw-mcp setup.
|
|
@@ -19475,7 +19475,7 @@ var ConnectServer = class _ConnectServer {
|
|
|
19475
19475
|
static SHUTDOWN_DRAIN_MS = 2e3;
|
|
19476
19476
|
constructor() {
|
|
19477
19477
|
this.server = new Server(
|
|
19478
|
-
{ name: "yaw-mcp", version: true ? "1.0.
|
|
19478
|
+
{ name: "yaw-mcp", version: true ? "1.0.17" : "dev" },
|
|
19479
19479
|
{
|
|
19480
19480
|
capabilities: {
|
|
19481
19481
|
tools: { listChanged: true },
|
|
@@ -23263,7 +23263,7 @@ function registerShutdownTriggers(shutdown, targets) {
|
|
|
23263
23263
|
// src/status-cmd.ts
|
|
23264
23264
|
import { existsSync as existsSync10 } from "fs";
|
|
23265
23265
|
import { homedir as homedir23 } from "os";
|
|
23266
|
-
var VERSION2 = true ? "1.0.
|
|
23266
|
+
var VERSION2 = true ? "1.0.17" : "dev";
|
|
23267
23267
|
var STATUS_SCHEMA_VERSION = 1;
|
|
23268
23268
|
var STATUS_USAGE = `Usage: yaw-mcp status [--json]
|
|
23269
23269
|
|
|
@@ -24056,7 +24056,7 @@ if (subcommand === "compliance") {
|
|
|
24056
24056
|
`);
|
|
24057
24057
|
process.exitCode = 0;
|
|
24058
24058
|
} else if (subcommand === "--version" || subcommand === "-V") {
|
|
24059
|
-
process.stdout.write(`yaw-mcp ${true ? "1.0.
|
|
24059
|
+
process.stdout.write(`yaw-mcp ${true ? "1.0.17" : "dev"}
|
|
24060
24060
|
`);
|
|
24061
24061
|
process.exitCode = 0;
|
|
24062
24062
|
} else if (subcommand !== void 0 && !subcommand.startsWith("-")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yawlabs/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"mcpName": "io.github.YawLabs/mcp",
|
|
5
5
|
"description": "MCP gateway and orchestrator: one local install fronts every MCP server for Claude Code, Cursor, and VS Code, loading tools on demand.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|