@yawlabs/mcp 1.1.9 → 1.1.10

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
@@ -48,6 +48,16 @@ After loading a server, dispatch lists its best-matching tools with their requir
48
48
 
49
49
  The dispatch tool description now ends with a short line (at most 800 characters) listing the installed servers and what they cover, so a client that searches tool descriptions can find dispatch for a request like "list my PRs". The server instructions now also say to answer general-knowledge questions directly, to retry with dispatch when `find_tool` misses, and to call a just-loaded tool through `mcp_connect_exec` if the client reports it missing.
50
50
 
51
+ **Changed -- the oam floor moves to 0.19.5**
52
+
53
+ `npm run verify:oam-floor` hosted a stdio `@modelcontextprotocol/server` server on oam v0.19.5 through `oam run` on 2026-11-09 -- 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.19.1. 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.
54
+
55
+ A `node` launch with node runtime flags before its script is now hosted on oam too, where it used to stay on node whatever the flag. oam 0.19.4 accepts node flags right after `run`, and 0.19.5 adds `--max-old-space-size`. The launch moves over only when every flag is one yaw-mcp ran on oam 0.19.5 beside node and saw behave the same: `--max-old-space-size=<mb>`, `--max-http-header-size=<n>`, `--dns-result-order=<order>`, `--disable-warning=<code>`, `--no-warnings`, `--no-deprecation`, `--trace-warnings`, `--trace-deprecation`, `--throw-deprecation`, `--trace-uncaught` and `--expose-gc`. The flags are passed to `oam run` ahead of the script, and a value must be given with `=`. Any other flag keeps the server on node as before -- `--enable-source-maps` (oam refuses it), `--inspect`, `--pending-deprecation`, `--title` and `--env-file` among them -- and so does one of the listed flags with its value as a separate argument. `yaw-mcp doctor` reports which flag kept a server on node.
56
+
57
+ `NODE_OPTIONS=--max-old-space-size=<mb>` in a server's `env` now sets the heap cap on oam as well as on node. oam before 0.19.5 ignored it, so a hosted server ran on oam's own cap whatever `NODE_OPTIONS` said. The out-of-memory hint now says to raise the cap where it is set: the `--max-old-space-size` flag in the server's node args first (it beats `NODE_OPTIONS`), then `NODE_OPTIONS`, which works on both runtimes and beats `OAM_MAX_HEAP_MB`. Raising `OAM_MAX_HEAP_MB` alone does nothing for a server that already sets the flag.
58
+
59
+ `doctor` now finds the entry file of an `oam run` client entry that gives an option its value as a separate argument (`run --check warn <entry>`, `run --max-old-space-size 4096 <entry>`). It used to read the value as the entry, so the real entry file was never checked and a missing one went unreported.
60
+
51
61
  ## 1.1.7 -- a server Windows will not start is named with its likely cause, instead of a bare `spawn UNKNOWN`
52
62
 
53
63
  **Fixed -- a server whose executable Windows will not run is named, with the likely cause, instead of a bare `spawn UNKNOWN`**
package/README.md CHANGED
@@ -130,6 +130,8 @@ When oam is installed and meets the minimum, yaw-mcp hosts the MCP servers it sp
130
130
 
131
131
  Only Node-based launches are rewritten. A server whose command is `docker`, `uvx`, or a native binary is left alone, as is an npx package that cannot be found on disk.
132
132
 
133
+ A `node` launch that puts node runtime flags before its script moves over with them when every flag is one yaw-mcp has checked behaves the same on oam: `--max-old-space-size=<mb>`, `--max-http-header-size=<n>`, `--dns-result-order=<order>`, `--disable-warning=<code>`, `--no-warnings`, `--no-deprecation`, `--trace-warnings`, `--trace-deprecation`, `--throw-deprecation`, `--trace-uncaught` and `--expose-gc`. A value has to be given with `=`. Any other flag — `--enable-source-maps`, `--inspect`, `--require`, or one of these with its value as a separate argument — keeps that server on node, and `yaw-mcp doctor` names the flag.
134
+
133
135
  Two more npx shapes stay on npx, because npx re-resolves its spec against the registry while `oam run <entry>` — and the managed `node <entry>` spawn — just run whatever sits at the path they are handed. A spec that **constrains the version** keeps npx unless the copy on disk can be shown to satisfy it — an exact pin moves over only when the resolved copy declares that same version, and a range or partial (`^1.2.3`, `~1.2`, `1.x`) always keeps npx, since honouring one would mean evaluating semver ranges against the tree. A spec naming a **git or path target** (`npx -y ./local-server`, `github:owner/repo`) keeps npx too: it is not a package name, so there is nothing to look it up as. A plain `@latest`, or no version at all, is the everyday case and does move over.
134
136
 
135
137
  **One tradeoff worth knowing.** `npx -y <pkg>@latest` re-resolves that tag on every spawn, so those servers update themselves. Once a server moves onto `oam run <entry>` or the managed `node <entry>` spawn, it runs the copy already on disk — oam has no fetch-on-demand, and the direct spawn deliberately doesn't re-resolve either — and npx stops running for that server, so the copy stops being refreshed. The version pins itself until something fetches a newer one. yaw-mcp logs the resolved version once per package at startup so this is visible rather than silent, and picks the newest copy present.
@@ -480,7 +482,7 @@ Common ones (run `yaw-mcp --help` for the full list):
480
482
  | `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 shows none of them until you activate it; `discover` still lists it. Default on. |
481
483
  | `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. |
482
484
  | `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. |
483
- | `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"`. |
485
+ | `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`. oam's out-of-memory message says the cap was set by `OAM_MAX_HEAP_MB` whichever of them set it. |
484
486
  | `YAW_MCP_AUTO_LOAD` | `1` pre-activates the top recurring pack at startup (needs persistence). Default off. |
485
487
  | `YAW_MCP_PRUNE_RESPONSES` | `0` disables response pruning. Default on. |
486
488
  | `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. |
@@ -11,7 +11,7 @@ import {
11
11
  recordAttemptAt,
12
12
  runsUnderNpmConfigPrefix,
13
13
  writeCheckMemo
14
- } from "./chunk-NYVP3NOV.js";
14
+ } from "./chunk-X54WSPEC.js";
15
15
  export {
16
16
  UPGRADE_LOCK_NAME,
17
17
  acquireUpgradeLock,
@@ -8,6 +8,7 @@ import {
8
8
  cacheDir,
9
9
  compareVersions,
10
10
  createStreamWriter,
11
+ describeNodeFlagRefusal,
11
12
  editJsoncPath,
12
13
  findProjectConfigDir,
13
14
  gitBuildDir,
@@ -31,6 +32,7 @@ import {
31
32
  resolveManagedSpawn,
32
33
  resolveNonNegativeIntEnv,
33
34
  resolveOamSpawn,
35
+ scanNodeLaunchFlags,
34
36
  setJsonKey,
35
37
  sidecarsNodeModules,
36
38
  sidecarsRoot,
@@ -39,7 +41,7 @@ import {
39
41
  stripJsoncComments,
40
42
  stripTrailingCommas,
41
43
  userConfigDir
42
- } from "./chunk-NYVP3NOV.js";
44
+ } from "./chunk-X54WSPEC.js";
43
45
 
44
46
  // src/git-source.ts
45
47
  import { spawn as spawn3 } from "child_process";
@@ -2088,11 +2090,10 @@ async function resolveBundlesDefault(opts) {
2088
2090
  function describeLaunchShape(command, args) {
2089
2091
  const kind = nodeLaunchKind(command);
2090
2092
  if (kind === "node") {
2091
- const entry = args[0];
2092
- if (!entry) return { code: "node-no-entry", detail: "the node launch names no entry file" };
2093
- if (entry.startsWith("-")) {
2094
- return { code: "node-flag-entry", detail: `the node launch starts with the flag ${entry}, not an entry file` };
2095
- }
2093
+ const scan = scanNodeLaunchFlags(args);
2094
+ if (scan.kind === "no-entry") return { code: "node-no-entry", detail: "the node launch names no entry file" };
2095
+ if (scan.kind === "refused")
2096
+ return { code: "node-flag-entry", detail: describeNodeFlagRefusal(scan.flag, scan.why) };
2096
2097
  return null;
2097
2098
  }
2098
2099
  if (kind === "npx") {
@@ -3740,12 +3741,12 @@ async function gitBuildMissing(config, home, consented) {
3740
3741
  }
3741
3742
  async function gitRepoConsented(config) {
3742
3743
  if (!config.git?.commit || gitEntryBuilt(config.namespace, config.git)) return void 0;
3743
- const { hasRepoConsent: hasRepoConsent2 } = await import("./git-source-ROCB3T3U.js");
3744
+ const { hasRepoConsent: hasRepoConsent2 } = await import("./git-source-TFNP7Y3W.js");
3744
3745
  return hasRepoConsent2(config.git.url, homedir6());
3745
3746
  }
3746
3747
  async function recordActivatedGitPin(namespace, commit) {
3747
3748
  try {
3748
- const { recordLoadedGitPin: recordLoadedGitPin2 } = await import("./git-source-ROCB3T3U.js");
3749
+ const { recordLoadedGitPin: recordLoadedGitPin2 } = await import("./git-source-TFNP7Y3W.js");
3749
3750
  await recordLoadedGitPin2(namespace, commit, { home: homedir6(), cwd: process.cwd() });
3750
3751
  } catch (e) {
3751
3752
  log("debug", "Could not record the git build an activation uses", { namespace, error: e.message });
@@ -3911,7 +3912,7 @@ async function connectToUpstreamOnce(config, onDisconnect, onListChanged, bridge
3911
3912
  if (downstreamCaps?.sampling) capabilities.sampling = downstreamCaps.sampling;
3912
3913
  if (downstreamCaps?.roots) capabilities.roots = {};
3913
3914
  const client = new Client(
3914
- { name: "yaw-mcp", version: true ? "1.1.9" : "dev" },
3915
+ { name: "yaw-mcp", version: true ? "1.1.10" : "dev" },
3915
3916
  { capabilities }
3916
3917
  );
3917
3918
  if (bridge && capabilities.elicitation) {
@@ -4671,7 +4671,7 @@ function npxSpec(args) {
4671
4671
  const spec = args[idx];
4672
4672
  return spec.startsWith("-") ? null : spec;
4673
4673
  }
4674
- var MIN_OAM_VERSION = "0.19.1";
4674
+ var MIN_OAM_VERSION = "0.19.5";
4675
4675
  var OAM_INSTALL_SH = "curl -fsSL https://oamjs.org/install.sh | sh";
4676
4676
  var OAM_INSTALL_PS1 = "irm https://oamjs.org/install.ps1 | iex";
4677
4677
  function oamInstallCommand(os) {
@@ -4706,7 +4706,7 @@ function oamBuildTreeFix(os, viaOamBin = false) {
4706
4706
  }
4707
4707
  function oamHeapOomHint(stderr) {
4708
4708
  if (!stderr.includes("OAM-RT-OOM")) return null;
4709
- return `The oam-hosted child hit its V8 heap cap. Raise it with OAM_MAX_HEAP_MB=<mb> in this server's env, or set "runtime": "node" for this server in bundles.json.`;
4709
+ return `The oam-hosted child hit its V8 heap cap. Raise it where it is set: the --max-old-space-size=<mb> flag in this server's node args if it has one (that wins), else NODE_OPTIONS=--max-old-space-size=<mb> in its env (honored by oam and node alike, and it takes precedence over OAM_MAX_HEAP_MB), or OAM_MAX_HEAP_MB=<mb> when nothing sets --max-old-space-size; or set "runtime": "node" for this server in bundles.json.`;
4710
4710
  }
4711
4711
  var warnedOamUnavailable = false;
4712
4712
  function oamFailureLabel(failure) {
@@ -5073,11 +5073,73 @@ function nodeLaunchKind(command) {
5073
5073
  return null;
5074
5074
  }
5075
5075
  var TS_ENTRY_RE = /\.[mc]?ts$/i;
5076
+ var POSITIVE_INT = /^[1-9]\d*$/;
5077
+ var OAM_HOSTABLE_NODE_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
5078
+ "--no-warnings",
5079
+ "--no-deprecation",
5080
+ "--trace-warnings",
5081
+ "--trace-deprecation",
5082
+ "--throw-deprecation",
5083
+ "--trace-uncaught",
5084
+ "--expose-gc"
5085
+ ]);
5086
+ var OAM_HOSTABLE_NODE_VALUE_FLAGS = /* @__PURE__ */ new Map([
5087
+ ["--max-old-space-size", POSITIVE_INT],
5088
+ ["--max-http-header-size", POSITIVE_INT],
5089
+ ["--dns-result-order", /^(?:verbatim|ipv4first|ipv6first)$/],
5090
+ ["--disable-warning", /^[A-Za-z0-9_]+$/]
5091
+ ]);
5092
+ function scanNodeLaunchFlags(args) {
5093
+ const flags = [];
5094
+ for (let i = 0; i < args.length; i++) {
5095
+ const a = args[i];
5096
+ if (!a.startsWith("-")) {
5097
+ if (a === "") return { kind: "no-entry" };
5098
+ return { kind: "entry", flags, entry: a, rest: args.slice(i + 1) };
5099
+ }
5100
+ const eq = a.indexOf("=");
5101
+ const name = eq === -1 ? a : a.slice(0, eq);
5102
+ if (OAM_HOSTABLE_NODE_BOOLEAN_FLAGS.has(name)) {
5103
+ if (eq !== -1) return { kind: "refused", flag: name, why: "bad-value" };
5104
+ } else {
5105
+ const valueRe = OAM_HOSTABLE_NODE_VALUE_FLAGS.get(name);
5106
+ if (valueRe === void 0) return { kind: "refused", flag: name, why: "unlisted" };
5107
+ if (eq === -1) return { kind: "refused", flag: name, why: "spaced-value" };
5108
+ if (!valueRe.test(a.slice(eq + 1))) return { kind: "refused", flag: name, why: "bad-value" };
5109
+ }
5110
+ flags.push(a);
5111
+ }
5112
+ return { kind: "no-entry" };
5113
+ }
5114
+ function describeNodeFlagRefusal(flag, why) {
5115
+ if (why === "spaced-value") {
5116
+ return `the node launch gives ${flag} its value as a separate argument; yaw-mcp hosts it on oam only as ${flag}=<value>`;
5117
+ }
5118
+ if (why === "bad-value") return `the node launch gives ${flag} a value yaw-mcp does not pass to oam`;
5119
+ return `the node launch carries the node flag ${flag}, which yaw-mcp does not host on oam`;
5120
+ }
5121
+ var OAM_SPACED_VALUE_OPTIONS = /* @__PURE__ */ new Set([
5122
+ "--check",
5123
+ "--record",
5124
+ "--replay",
5125
+ "--env-file",
5126
+ "--env-file-if-exists",
5127
+ "--input-type",
5128
+ "--max-http-header-size",
5129
+ "--max-old-space-size",
5130
+ "--v8-pool-size",
5131
+ "--trace-require-module",
5132
+ "--dns-result-order",
5133
+ "--disable-warning",
5134
+ "--redirect-warnings",
5135
+ "--allow-fs-read",
5136
+ "--allow-fs-write"
5137
+ ]);
5076
5138
  function rewriteForOam(command, args, deps) {
5077
5139
  const bin = deps.oamBin;
5078
5140
  if (!bin) return { command, args };
5079
- const toOam = (entry, rest) => {
5080
- const flags = TS_ENTRY_RE.test(entry) ? ["--no-check"] : [];
5141
+ const toOam = (entry, rest, nodeFlags = []) => {
5142
+ const flags = [...nodeFlags, ...TS_ENTRY_RE.test(entry) ? ["--no-check"] : []];
5081
5143
  return {
5082
5144
  command: bin,
5083
5145
  args: rest.length > 0 ? ["run", ...flags, entry, "--", ...rest] : ["run", ...flags, entry]
@@ -5085,10 +5147,17 @@ function rewriteForOam(command, args, deps) {
5085
5147
  };
5086
5148
  const kind = nodeLaunchKind(command);
5087
5149
  if (kind === "node") {
5088
- const [entry, ...rest] = args;
5089
- if (!entry) return { command, args };
5090
- if (entry.startsWith("-")) return { command, args };
5091
- return toOam(entry, rest);
5150
+ const scan = scanNodeLaunchFlags(args);
5151
+ if (scan.kind === "no-entry") return { command, args };
5152
+ if (scan.kind === "refused") {
5153
+ log("debug", "node launch carries a node flag yaw-mcp does not host on oam; staying on node", {
5154
+ flag: scan.flag,
5155
+ why: scan.why,
5156
+ argc: args.length
5157
+ });
5158
+ return { command, args };
5159
+ }
5160
+ return toOam(scan.entry, scan.rest, scan.flags);
5092
5161
  }
5093
5162
  if (kind === "npx") {
5094
5163
  const specIdx = npxSpecIndex(args);
@@ -5796,17 +5865,17 @@ async function oamFloorLines(probe) {
5796
5865
  }
5797
5866
  async function defaultRunningPrefix(argvPath) {
5798
5867
  if (isTestSandbox()) return null;
5799
- const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-RGWSTKNN.js");
5868
+ const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-BFZR7HIL.js");
5800
5869
  return detectRunningInstallPrefix2(argvPath);
5801
5870
  }
5802
5871
  async function defaultAcquireLock(prefixDir) {
5803
5872
  if (isTestSandbox()) return () => {
5804
5873
  };
5805
- const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-RGWSTKNN.js");
5874
+ const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-BFZR7HIL.js");
5806
5875
  return acquireUpgradeLock2(prefixDir);
5807
5876
  }
5808
5877
  async function upgradeLockPath(prefixDir) {
5809
- const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-RGWSTKNN.js");
5878
+ const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-BFZR7HIL.js");
5810
5879
  return join11(prefixDir, UPGRADE_LOCK_NAME2);
5811
5880
  }
5812
5881
  async function defaultSpawn(cmd, args, cwd) {
@@ -5869,7 +5938,7 @@ async function runUpgrade(opts = {}) {
5869
5938
  if (method === "global-npm") {
5870
5939
  rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
5871
5940
  if (rawPrefix !== null) {
5872
- const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-RGWSTKNN.js");
5941
+ const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-BFZR7HIL.js");
5873
5942
  const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
5874
5943
  const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
5875
5944
  if (spawnForm !== null && displayForm !== null) {
@@ -6001,7 +6070,7 @@ async function runUpgrade(opts = {}) {
6001
6070
  return { exitCode: 3, lines };
6002
6071
  }
6003
6072
  function readCurrentVersion() {
6004
- return true ? "1.1.9" : "dev";
6073
+ return true ? "1.1.10" : "dev";
6005
6074
  }
6006
6075
 
6007
6076
  // src/auto-upgrade.ts
@@ -6293,7 +6362,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
6293
6362
  }
6294
6363
  async function maybeAutoUpgrade(deps = {}) {
6295
6364
  if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
6296
- const current = deps.currentVersion ?? (true ? "1.1.9" : "dev");
6365
+ const current = deps.currentVersion ?? (true ? "1.1.10" : "dev");
6297
6366
  if (current === "dev") return;
6298
6367
  const argvPath = deps.argvPath ?? process.argv[1];
6299
6368
  let method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
@@ -6510,6 +6579,9 @@ export {
6510
6579
  resolveBinAbsolute,
6511
6580
  probeOam,
6512
6581
  nodeLaunchKind,
6582
+ scanNodeLaunchFlags,
6583
+ describeNodeFlagRefusal,
6584
+ OAM_SPACED_VALUE_OPTIONS,
6513
6585
  managedNodeBin,
6514
6586
  packageEntry,
6515
6587
  resolveStableNpmEntry,
@@ -60,8 +60,8 @@ import {
60
60
  tryRemoveTree,
61
61
  writeAskpassHelper,
62
62
  writeGitState
63
- } from "./chunk-PPQ2SHCU.js";
64
- import "./chunk-NYVP3NOV.js";
63
+ } from "./chunk-DQ4KOZI5.js";
64
+ import "./chunk-X54WSPEC.js";
65
65
  export {
66
66
  GIT_CONSENT_FILENAME,
67
67
  GIT_CREDENTIALS_REFUSAL,
package/dist/index.js CHANGED
@@ -143,7 +143,7 @@ import {
143
143
  withHeartbeat,
144
144
  withWarnSink,
145
145
  writeGitState
146
- } from "./chunk-PPQ2SHCU.js";
146
+ } from "./chunk-DQ4KOZI5.js";
147
147
  import {
148
148
  ALLOW_UNOWNED_ENV,
149
149
  BINARY_RETIRED_HINT,
@@ -157,6 +157,7 @@ import {
157
157
  INSTALL_TARGETS,
158
158
  LEGACY_ENTRY_NAMES,
159
159
  MIN_OAM_VERSION,
160
+ OAM_SPACED_VALUE_OPTIONS,
160
161
  POSIX_SHELL,
161
162
  POWERSHELL,
162
163
  PREWARM_FAILURE_BACKOFF_MS,
@@ -264,7 +265,7 @@ import {
264
265
  userConfigDir,
265
266
  withFileLock,
266
267
  yawModeOverlay
267
- } from "./chunk-NYVP3NOV.js";
268
+ } from "./chunk-X54WSPEC.js";
268
269
 
269
270
  // src/audit-cmd.ts
270
271
  import { homedir as homedir2 } from "os";
@@ -7048,7 +7049,7 @@ function foldBundleWarnings(warnings, probe) {
7048
7049
  const prefix = `${probe.path}:`;
7049
7050
  return warnings.filter((w) => !w.startsWith(prefix));
7050
7051
  }
7051
- var VERSION = true ? "1.1.9" : "dev";
7052
+ var VERSION = true ? "1.1.10" : "dev";
7052
7053
  var DOCTOR_USAGE = `Usage: yaw-mcp doctor [--json]
7053
7054
 
7054
7055
  Print a diagnostic of your yaw-mcp setup.
@@ -8512,9 +8513,18 @@ function oamLaunchParts(command, args) {
8512
8513
  return unwrapped === null ? null : { oam: unwrapped.oam, entry: oamRunEntryFromTokens(unwrapped.rest) };
8513
8514
  }
8514
8515
  function oamRunEntryFromTokens(tokens) {
8515
- const sub = tokens.findIndex((t) => !t.startsWith("-"));
8516
+ const sub = firstPositional(tokens, 0);
8516
8517
  if (sub < 0 || tokens[sub] !== "run") return null;
8517
- return tokens.slice(sub + 1).find((t) => !t.startsWith("-")) ?? null;
8518
+ const entry = firstPositional(tokens, sub + 1);
8519
+ return entry < 0 ? null : tokens[entry];
8520
+ }
8521
+ function firstPositional(tokens, from) {
8522
+ for (let i = from; i < tokens.length; i++) {
8523
+ const t = tokens[i];
8524
+ if (!t.startsWith("-")) return i;
8525
+ if (OAM_SPACED_VALUE_OPTIONS.has(t) && i + 1 < tokens.length && !tokens[i + 1].startsWith("-")) i++;
8526
+ }
8527
+ return -1;
8518
8528
  }
8519
8529
  var JSON_PROBE_FORMATS = /* @__PURE__ */ new Set(["json", "jsonc"]);
8520
8530
  function classifyProbeRead(loaded, read, exists2, platform) {
@@ -17876,7 +17886,7 @@ var ConnectServer = class _ConnectServer {
17876
17886
  * initialize handshake completes; see beginSession for why it waits. */
17877
17887
  buildServer(era, supportedProtocolVersions) {
17878
17888
  const s = new Server(
17879
- { name: "yaw-mcp", version: true ? "1.1.9" : "dev" },
17889
+ { name: "yaw-mcp", version: true ? "1.1.10" : "dev" },
17880
17890
  {
17881
17891
  capabilities: {
17882
17892
  tools: { listChanged: true },
@@ -23416,7 +23426,7 @@ function registerShutdownTriggers(shutdown, targets) {
23416
23426
  // src/status-cmd.ts
23417
23427
  import { existsSync as existsSync9 } from "fs";
23418
23428
  import { homedir as homedir20 } from "os";
23419
- var VERSION2 = true ? "1.1.9" : "dev";
23429
+ var VERSION2 = true ? "1.1.10" : "dev";
23420
23430
  var STATUS_SCHEMA_VERSION = 1;
23421
23431
  var STATUS_USAGE = `Usage: yaw-mcp status [--json]
23422
23432
 
@@ -24153,7 +24163,12 @@ if (subcommand === "compliance") {
24153
24163
  Linux container). Set it in that server's \`env\`
24154
24164
  in bundles.json when a hosted sidecar dies with a
24155
24165
  heap out-of-memory error, or give that server
24156
- \`"runtime": "node"\`.
24166
+ \`"runtime": "node"\`. oam (from the 0.19.5
24167
+ minimum) also honors node's own
24168
+ \`NODE_OPTIONS=--max-old-space-size=<mb>\` in
24169
+ that \`env\`, or the flag on a \`node\` launch, so
24170
+ one setting works on both runtimes; either one
24171
+ takes precedence over OAM_MAX_HEAP_MB.
24157
24172
  MCP_CONNECT_TIMEOUT Milliseconds to wait for a server's MCP
24158
24173
  handshake (default 15000). This is the FALLBACK
24159
24174
  only -- a server's own \`connectTimeoutMs\` in
@@ -24289,7 +24304,7 @@ if (subcommand === "compliance") {
24289
24304
  `);
24290
24305
  process.exitCode = 0;
24291
24306
  } else if (subcommand === "--version" || subcommand === "-V") {
24292
- process.stdout.write(`yaw-mcp ${true ? "1.1.9" : "dev"}
24307
+ process.stdout.write(`yaw-mcp ${true ? "1.1.10" : "dev"}
24293
24308
  `);
24294
24309
  process.exitCode = 0;
24295
24310
  } 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.1.9",
3
+ "version": "1.1.10",
4
4
  "mcpName": "io.github.YawLabs/mcp",
5
5
  "description": "MCP gateway: one local install fronts every MCP server for Claude Code, Cursor, and VS Code.",
6
6
  "license": "SEE LICENSE IN LICENSE.md",