@yawlabs/mcp 1.0.17 → 1.0.18
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
|
@@ -8,7 +8,7 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
|
|
|
8
8
|
|
|
9
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
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
|
|
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 600 -- the 1.0.17 release itself waited 142 s for npm to serve the version, and the @yawlabs/fetch-mcp 0.8.2 release the same day spent 295 s of its own 300 s gate on it) 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. Step 4's ARM64 tolerance asks npm on the same clock whether a publish that segfaulted landed, where it used to give up after three reads 6 s apart, so a publish that had landed but that npm was slow to serve would have been reported as failed. It does so only when npm's own log shows no refusal: an E403 for a version npm already holds is read as the skip first, and an OTP challenge, an auth error or any other 4xx goes straight to its own handling. 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. The registry's own HTTP 429, 502, 503 and 504 on the publish call are retried on the same clock -- the 1.0.17 release met a `504 Gateway Time-out` from its nginx gateway -- and a retry is safe even when the timed-out attempt landed, because 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, and is checked again -- and refreshed through `mcp-publisher login github` -- before every retry with 120 s to spare, since tokens last 5 minutes and an attempt that meets a timing-out gateway spends the gateway's own timeout before its 504 arrives. A duplicate right after the registry's own timeout is read as that timed-out attempt having landed, and a listing that then does not show it is reported as the failed read it is rather than as a deleted version. Every mcp-publisher call to the registry, the login and each publish attempt, now runs under coreutils `timeout` (`MCP_PUBLISH_TIMEOUT_S`, default 90 s) where one (or Homebrew's `gtimeout`) is on PATH -- without one the call runs unbounded, and a warning says so -- because mcp-publisher waits for the registry's answer with no limit of its own and a registry that never answered would hang the step. A publish attempt that gets no answer is retried on the same clock: one the limit stopped, and one whose connection failed or dropped (the client's `error sending request` or `error reading response`). A login the limit stopped fails saying the registry did not answer; any other login failure says how to read mcp-publisher's output above it (a 401 is the registry refusing the token exchange, most often over the token itself; a 429, a 5xx or a connection error is the registry or the network). A publish refused with a 403 says what the io.github.YawLabs namespace takes: a YawLabs org Owner whose token can read org roles. A duplicate after one that may have landed counts as it having landed; a connection the client reports as never opened (a TLS handshake that timed out and a proxy that refused the tunnel among them), and a 429, cannot have. Whether the MCP registry already lists the version -- step 5's probe before publishing, and the final read-back -- is asked of the registry's exact lookup, `GET /v0/servers/io.github.YawLabs%2Fmcp/versions/<version>`, not its search listing: while 1.0.17 was released, search requests took 25 s or never answered and the lookup answered in under 6 s, and search also returns superseded version records alongside the one asked for. Like the listing, the lookup leaves out a version marked deleted. 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
12
|
|
|
13
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`**
|
|
14
14
|
|
|
@@ -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-PZQM472F.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-PZQM472F.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.18" : "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.18" : "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-KMWLFOFF.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.18" : "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.18" : "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.18" : "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.18" : "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.18" : "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.18",
|
|
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",
|