@yawlabs/mcp 1.1.11 → 1.1.12
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 +10 -0
- package/README.md +1 -1
- package/dist/{auto-upgrade-QWLYCX74.js → auto-upgrade-KXOCHAUR.js} +1 -1
- package/dist/{chunk-VG7NPV2A.js → chunk-PFDIDS6O.js} +4 -4
- package/dist/{chunk-FJ5PPHDD.js → chunk-SJWGO3WQ.js} +15 -18
- package/dist/{git-source-XOJY3JWD.js → git-source-W43NBUYR.js} +2 -2
- package/dist/index.js +8 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,16 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 1.1.12
|
|
8
|
+
|
|
9
|
+
**Changed -- the oam floor moves to 0.20.1**
|
|
10
|
+
|
|
11
|
+
`npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.20.1 through `oam run` on 2026-11-12 -- both protocol eras, 2025-11-25 (initialize) and 2026-07-28 (server/discover), each through tools/list and tools/call -- and raised `MIN_OAM_VERSION` to it; the floor was 0.20.0. 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.
|
|
12
|
+
|
|
13
|
+
**Changed -- a `node --max-old-space-size` below 16 is hosted on oam again**
|
|
14
|
+
|
|
15
|
+
oam 0.20.1 raises a heap cap under 16 MB to 16 MB instead of failing at startup (YawLabs/oam#479), from the launch flag, `NODE_OPTIONS` and `OAM_MAX_HEAP_MB` alike, and its out-of-memory message says so (`set by --max-old-space-size to 5 MB, raised to oam's 16 MB minimum`). With that oam as the floor, a `node` launch whose `--max-old-space-size` is any positive whole number now moves onto `oam run`; 1.1.11 kept 1-15 on node. The README and `--help` no longer warn that a `NODE_OPTIONS` or `OAM_MAX_HEAP_MB` cap below 8 fails at startup on oam.
|
|
16
|
+
|
|
7
17
|
## 1.1.11
|
|
8
18
|
|
|
9
19
|
**Breaking -- exit codes, `--json` failure output and `LOG_LEVEL`**
|
package/README.md
CHANGED
|
@@ -491,7 +491,7 @@ Common ones (run `yaw-mcp --help` for the full list):
|
|
|
491
491
|
| `YAW_MCP_PREWARM` | `0` stops yaw-mcp spawning a server at startup just to learn its tool list. Learning is rare -- the list persists and is only re-learned once it ages out -- but the session that does it starts the upstream twice, once to read the list and once for the activate that follows, which matters if the server startup is not idempotent. Off, a server whose tools are not already known cannot be called by tool name through `mcp_connect_exec` until you activate it, and `mcp_connect_find_tool` ranks it only where yaw-mcp ships a bundled tool list for it (under `YAW_MCP_TOOL_EXPOSURE=full` its tools are also missing from `tools/list` until then); `discover` still lists it. Default on. |
|
|
492
492
|
| `YAW_MCP_PROTOCOL` | Which MCP protocol eras yaw-mcp serves to the client that launched it. `auto` (the default) serves both: a client that opens with `server/discover` gets 2026-07-28, a client that opens with `initialize` gets the 2025 protocol it asked for. `legacy` serves the 2025 protocol only and answers `server/discover` with method-not-found, so a probing client falls back to `initialize` -- the server-side twin of Claude Code's own `MCP_PROTOCOL_NEGOTIATION=legacy`, for when a 2026-07-28 session misbehaves. An unrecognised value logs a warning and serves `auto`. Read at startup. |
|
|
493
493
|
| `OAM_BIN` | Path to the `oam` binary to use instead of the one on `PATH`. A path that does not exist is reported by `doctor` as an unusable oam (fix the variable), not as oam being absent. |
|
|
494
|
-
| `OAM_MAX_HEAP_MB` | Raises the V8 heap cap oam applies to a hosted server (4 GiB by default; can be lower inside a memory-limited Linux container). Set it in that server's `env` when a hosted sidecar dies with a heap out-of-memory error, or give that server `"runtime": "node"`. oam also honors node's own `NODE_OPTIONS=--max-old-space-size=<mb>` in that `env`, or the flag on a `node` launch, so one setting works on both runtimes; either takes precedence over `OAM_MAX_HEAP_MB`, except `NODE_OPTIONS=--max-old-space-size=0`, which leaves `OAM_MAX_HEAP_MB` in charge on oam. `<mb>` must be a whole number: `512m` or `1.5` makes the server exit 9 at startup on oam and node alike
|
|
494
|
+
| `OAM_MAX_HEAP_MB` | Raises the V8 heap cap oam applies to a hosted server (4 GiB by default; can be lower inside a memory-limited Linux container). Set it in that server's `env` when a hosted sidecar dies with a heap out-of-memory error, or give that server `"runtime": "node"`. oam also honors node's own `NODE_OPTIONS=--max-old-space-size=<mb>` in that `env`, or the flag on a `node` launch, so one setting works on both runtimes; either takes precedence over `OAM_MAX_HEAP_MB`, except `NODE_OPTIONS=--max-old-space-size=0`, which leaves `OAM_MAX_HEAP_MB` in charge on oam. `<mb>` must be a whole number: `512m` or `1.5` makes the server exit 9 at startup on oam and node alike. oam raises a cap below 16 MB to 16 MB, wherever it was set. oam's out-of-memory message names which of them set the cap (`set by --max-old-space-size`, `set by NODE_OPTIONS --max-old-space-size` or `set by OAM_MAX_HEAP_MB`), and says when it raised one (`to 5 MB, raised to oam's 16 MB minimum`). |
|
|
495
495
|
| `YAW_MCP_AUTO_LOAD` | `1` pre-activates the top recurring pack at startup (needs persistence). Default off. |
|
|
496
496
|
| `YAW_MCP_PRUNE_RESPONSES` | `0` disables response pruning. Default on. |
|
|
497
497
|
| `YAW_MCP_MAX_RESULT_BYTES` | Ceiling on a single proxied tool result. Over it, the reply is cut and carries a marker saying so, with the byte total and what was dropped -- a silently truncated result reads to the model as a complete one. Default `100000` (~25k tokens); `0` disables. `structuredContent` is passed through verbatim and is never cut. |
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
stripJsoncComments,
|
|
43
43
|
stripTrailingCommas,
|
|
44
44
|
userConfigDir
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-SJWGO3WQ.js";
|
|
46
46
|
|
|
47
47
|
// src/git-source.ts
|
|
48
48
|
import { spawn as spawn3 } from "child_process";
|
|
@@ -3861,12 +3861,12 @@ async function gitBuildMissing(config, home, consented) {
|
|
|
3861
3861
|
}
|
|
3862
3862
|
async function gitRepoConsented(config) {
|
|
3863
3863
|
if (!config.git?.commit || gitEntryBuilt(config.namespace, config.git)) return void 0;
|
|
3864
|
-
const { hasRepoConsent: hasRepoConsent2 } = await import("./git-source-
|
|
3864
|
+
const { hasRepoConsent: hasRepoConsent2 } = await import("./git-source-W43NBUYR.js");
|
|
3865
3865
|
return hasRepoConsent2(config.git.url, homedir6());
|
|
3866
3866
|
}
|
|
3867
3867
|
async function recordActivatedGitPin(namespace, commit) {
|
|
3868
3868
|
try {
|
|
3869
|
-
const { recordLoadedGitPin: recordLoadedGitPin2 } = await import("./git-source-
|
|
3869
|
+
const { recordLoadedGitPin: recordLoadedGitPin2 } = await import("./git-source-W43NBUYR.js");
|
|
3870
3870
|
await recordLoadedGitPin2(namespace, commit, { home: homedir6(), cwd: process.cwd() });
|
|
3871
3871
|
} catch (e) {
|
|
3872
3872
|
log("debug", "Could not record the git build an activation uses", { namespace, error: e.message });
|
|
@@ -4044,7 +4044,7 @@ async function connectToUpstreamOnce(config, onDisconnect, onListChanged, bridge
|
|
|
4044
4044
|
if (downstreamCaps?.sampling) capabilities.sampling = downstreamCaps.sampling;
|
|
4045
4045
|
if (downstreamCaps?.roots) capabilities.roots = {};
|
|
4046
4046
|
const client = new Client(
|
|
4047
|
-
{ name: "yaw-mcp", version: true ? "1.1.
|
|
4047
|
+
{ name: "yaw-mcp", version: true ? "1.1.12" : "dev" },
|
|
4048
4048
|
{ capabilities }
|
|
4049
4049
|
);
|
|
4050
4050
|
if (bridge && capabilities.elicitation) {
|
|
@@ -4727,7 +4727,7 @@ function npxSpec(args) {
|
|
|
4727
4727
|
const spec = args[idx];
|
|
4728
4728
|
return spec.startsWith("-") ? null : spec;
|
|
4729
4729
|
}
|
|
4730
|
-
var MIN_OAM_VERSION = "0.20.
|
|
4730
|
+
var MIN_OAM_VERSION = "0.20.1";
|
|
4731
4731
|
var OAM_INSTALL_SH = "curl -fsSL https://oamjs.org/install.sh | sh";
|
|
4732
4732
|
var OAM_INSTALL_PS1 = "irm https://oamjs.org/install.ps1 | iex";
|
|
4733
4733
|
function oamInstallCommand(os) {
|
|
@@ -5053,14 +5053,11 @@ async function probeOamUncached(run, generation) {
|
|
|
5053
5053
|
minVersion: MIN_OAM_VERSION,
|
|
5054
5054
|
// The floor is a released oam (the last one verify:oam-floor passed
|
|
5055
5055
|
// on), so below-min always means out of date, and oam updates itself
|
|
5056
|
-
// in place.
|
|
5057
|
-
//
|
|
5058
|
-
//
|
|
5059
|
-
//
|
|
5060
|
-
//
|
|
5061
|
-
// and oamjs is published, route this remedy and its copies (doctor,
|
|
5062
|
-
// install, upgrade, verify-oam-floor) through one helper that checks
|
|
5063
|
-
// the resolved path for a node_modules component.
|
|
5056
|
+
// in place. oam 0.20.0+ refuses `self-update` for a binary inside
|
|
5057
|
+
// node_modules, but oam is never published to npm, so no installer
|
|
5058
|
+
// puts one there: only a hand-pointed OAM_BIN could, and that is not
|
|
5059
|
+
// a case this remedy (or its copies in doctor, install, upgrade and
|
|
5060
|
+
// verify-oam-floor) needs to special-case.
|
|
5064
5061
|
updateWith: "oam self-update",
|
|
5065
5062
|
// ...but updating alone changes nothing here. A non-timeout verdict
|
|
5066
5063
|
// like this one is cached for the process lifetime and only cleared by
|
|
@@ -5148,7 +5145,7 @@ function nodeLaunchKind(command) {
|
|
|
5148
5145
|
}
|
|
5149
5146
|
var TS_ENTRY_RE = /\.[mc]?ts$/i;
|
|
5150
5147
|
var POSITIVE_INT = /^[1-9]\d*$/;
|
|
5151
|
-
var HEAP_MB =
|
|
5148
|
+
var HEAP_MB = POSITIVE_INT;
|
|
5152
5149
|
var OAM_HOSTABLE_NODE_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
5153
5150
|
"--no-warnings",
|
|
5154
5151
|
"--no-deprecation",
|
|
@@ -5960,21 +5957,21 @@ async function oamFloorLines(probe) {
|
|
|
5960
5957
|
}
|
|
5961
5958
|
async function defaultRunningPrefix(argvPath) {
|
|
5962
5959
|
if (isTestSandbox()) return null;
|
|
5963
|
-
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-
|
|
5960
|
+
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
5964
5961
|
return detectRunningInstallPrefix2(argvPath);
|
|
5965
5962
|
}
|
|
5966
5963
|
async function defaultConfirmGlobalPrefix(argvPath, prefix) {
|
|
5967
|
-
const { defaultConfirmGlobalPrefix: confirm } = await import("./auto-upgrade-
|
|
5964
|
+
const { defaultConfirmGlobalPrefix: confirm } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
5968
5965
|
return confirm(argvPath, prefix);
|
|
5969
5966
|
}
|
|
5970
5967
|
async function defaultAcquireLock(prefixDir) {
|
|
5971
5968
|
if (isTestSandbox()) return () => {
|
|
5972
5969
|
};
|
|
5973
|
-
const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-
|
|
5970
|
+
const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
5974
5971
|
return acquireUpgradeLock2(prefixDir);
|
|
5975
5972
|
}
|
|
5976
5973
|
async function upgradeLockPath(prefixDir) {
|
|
5977
|
-
const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-
|
|
5974
|
+
const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
5978
5975
|
return join11(prefixDir, UPGRADE_LOCK_NAME2);
|
|
5979
5976
|
}
|
|
5980
5977
|
async function defaultSpawn(cmd, args, cwd) {
|
|
@@ -6038,12 +6035,12 @@ async function runUpgrade(opts = {}) {
|
|
|
6038
6035
|
if (method === "global-npm") {
|
|
6039
6036
|
rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
|
|
6040
6037
|
if (rawPrefix !== null && !await (opts.confirmGlobalPrefix ?? defaultConfirmGlobalPrefix)(argvPath, rawPrefix)) {
|
|
6041
|
-
const { PREFIX_REFUSED_REASON: PREFIX_REFUSED_REASON2, prefixRefusedRemedies: prefixRefusedRemedies2 } = await import("./auto-upgrade-
|
|
6038
|
+
const { PREFIX_REFUSED_REASON: PREFIX_REFUSED_REASON2, prefixRefusedRemedies: prefixRefusedRemedies2 } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
6042
6039
|
prefixRefusedNote = `Note: not pinning --prefix ${rawPrefix}: ${PREFIX_REFUSED_REASON2}. The command below installs into npm's own global prefix and does NOT update the copy at ${rawPrefix}. ` + prefixRefusedRemedies2(rawPrefix, opts.platform);
|
|
6043
6040
|
rawPrefix = null;
|
|
6044
6041
|
}
|
|
6045
6042
|
if (rawPrefix !== null) {
|
|
6046
|
-
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-
|
|
6043
|
+
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-KXOCHAUR.js");
|
|
6047
6044
|
const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
|
|
6048
6045
|
const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
|
|
6049
6046
|
if (spawnForm !== null && displayForm !== null) {
|
|
@@ -6182,7 +6179,7 @@ async function runUpgrade(opts = {}) {
|
|
|
6182
6179
|
return { exitCode: 3, lines };
|
|
6183
6180
|
}
|
|
6184
6181
|
function readCurrentVersion() {
|
|
6185
|
-
return true ? "1.1.
|
|
6182
|
+
return true ? "1.1.12" : "dev";
|
|
6186
6183
|
}
|
|
6187
6184
|
|
|
6188
6185
|
// src/auto-upgrade.ts
|
|
@@ -6490,7 +6487,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
|
|
|
6490
6487
|
}
|
|
6491
6488
|
async function maybeAutoUpgrade(deps = {}) {
|
|
6492
6489
|
if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
|
|
6493
|
-
const current = deps.currentVersion ?? (true ? "1.1.
|
|
6490
|
+
const current = deps.currentVersion ?? (true ? "1.1.12" : "dev");
|
|
6494
6491
|
if (current === "dev") return;
|
|
6495
6492
|
const argvPath = deps.argvPath ?? process.argv[1];
|
|
6496
6493
|
let method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
|
|
@@ -65,8 +65,8 @@ import {
|
|
|
65
65
|
tryRemoveTree,
|
|
66
66
|
writeAskpassHelper,
|
|
67
67
|
writeGitState
|
|
68
|
-
} from "./chunk-
|
|
69
|
-
import "./chunk-
|
|
68
|
+
} from "./chunk-PFDIDS6O.js";
|
|
69
|
+
import "./chunk-SJWGO3WQ.js";
|
|
70
70
|
export {
|
|
71
71
|
GIT_CONSENT_FILENAME,
|
|
72
72
|
GIT_CREDENTIALS_REFUSAL,
|
package/dist/index.js
CHANGED
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
withHeartbeat,
|
|
157
157
|
withWarnSink,
|
|
158
158
|
writeGitState
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-PFDIDS6O.js";
|
|
160
160
|
import {
|
|
161
161
|
ALLOW_UNOWNED_ENV,
|
|
162
162
|
BINARY_RETIRED_HINT,
|
|
@@ -276,7 +276,7 @@ import {
|
|
|
276
276
|
userConfigDir,
|
|
277
277
|
withFileLock,
|
|
278
278
|
yawModeOverlay
|
|
279
|
-
} from "./chunk-
|
|
279
|
+
} from "./chunk-SJWGO3WQ.js";
|
|
280
280
|
|
|
281
281
|
// src/audit-cmd.ts
|
|
282
282
|
import { homedir as homedir2 } from "os";
|
|
@@ -7399,7 +7399,7 @@ function foldBundleWarnings(warnings, probe) {
|
|
|
7399
7399
|
const prefix = `${probe.path}:`;
|
|
7400
7400
|
return warnings.filter((w) => !w.startsWith(prefix));
|
|
7401
7401
|
}
|
|
7402
|
-
var VERSION = true ? "1.1.
|
|
7402
|
+
var VERSION = true ? "1.1.12" : "dev";
|
|
7403
7403
|
var DOCTOR_USAGE = `Usage: yaw-mcp doctor [--json]
|
|
7404
7404
|
|
|
7405
7405
|
Print a diagnostic of your yaw-mcp setup.
|
|
@@ -18468,7 +18468,7 @@ var ConnectServer = class _ConnectServer {
|
|
|
18468
18468
|
* initialize handshake completes; see beginSession for why it waits. */
|
|
18469
18469
|
buildServer(era, supportedProtocolVersions) {
|
|
18470
18470
|
const s = new Server(
|
|
18471
|
-
{ name: "yaw-mcp", version: true ? "1.1.
|
|
18471
|
+
{ name: "yaw-mcp", version: true ? "1.1.12" : "dev" },
|
|
18472
18472
|
{
|
|
18473
18473
|
capabilities: {
|
|
18474
18474
|
tools: { listChanged: true },
|
|
@@ -24155,7 +24155,7 @@ function registerShutdownTriggers(shutdown, targets) {
|
|
|
24155
24155
|
// src/status-cmd.ts
|
|
24156
24156
|
import { existsSync as existsSync9 } from "fs";
|
|
24157
24157
|
import { homedir as homedir20 } from "os";
|
|
24158
|
-
var VERSION2 = true ? "1.1.
|
|
24158
|
+
var VERSION2 = true ? "1.1.12" : "dev";
|
|
24159
24159
|
var STATUS_SCHEMA_VERSION = 1;
|
|
24160
24160
|
var STATUS_USAGE = `Usage: yaw-mcp status [--json]
|
|
24161
24161
|
|
|
@@ -24944,10 +24944,8 @@ if (subcommand === "compliance") {
|
|
|
24944
24944
|
which leaves OAM_MAX_HEAP_MB in charge on oam.
|
|
24945
24945
|
<mb> must be a whole number: 512m or 1.5 makes
|
|
24946
24946
|
the server exit 9 at startup on oam and node
|
|
24947
|
-
alike.
|
|
24948
|
-
|
|
24949
|
-
below 8 is not caught and fails at startup on
|
|
24950
|
-
oam, so use 16 or more there.
|
|
24947
|
+
alike. oam raises any cap below 16 to 16 and
|
|
24948
|
+
says so in its out-of-memory message.
|
|
24951
24949
|
MCP_CONNECT_TIMEOUT Milliseconds to wait for a server's MCP
|
|
24952
24950
|
handshake (default 15000). This is the FALLBACK
|
|
24953
24951
|
only -- a server's own \`connectTimeoutMs\` in
|
|
@@ -25102,7 +25100,7 @@ if (subcommand === "compliance") {
|
|
|
25102
25100
|
`);
|
|
25103
25101
|
process.exitCode = 0;
|
|
25104
25102
|
} else if (subcommand === "--version" || subcommand === "-V") {
|
|
25105
|
-
process.stdout.write(`yaw-mcp ${true ? "1.1.
|
|
25103
|
+
process.stdout.write(`yaw-mcp ${true ? "1.1.12" : "dev"}
|
|
25106
25104
|
`);
|
|
25107
25105
|
process.exitCode = 0;
|
|
25108
25106
|
} else if (subcommand !== void 0 && !subcommand.startsWith("-")) {
|
package/package.json
CHANGED