@yawlabs/mcp 1.1.0 → 1.1.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
@@ -6,7 +6,7 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
6
6
 
7
7
  **Fixed -- yaw-mcp no longer hosts sidecars on a local build-tree oam**
8
8
 
9
- A local oam build (a compiler output tree: `target/`, `debug/`, `out/`, `cmake-build-*`) reports the same version string as a release while carrying uncommitted code, so the `oam --version` probe could not tell it apart and yaw-mcp hosted sidecars on it -- in one observed case the same `oam 0.9.0` the installed releases reported, with different behavior behind it. The probe now refuses such a binary by PATH TEXT before anything spawns (`OamProbeFailure` gains `build-tree`), so it is never asked for a version, never trusted, and never enters the per-binary verdict cache. doctor and `install` say the real fix -- point `OAM_BIN` (or PATH order) at the installed oam and restart -- instead of "fix or reinstall". The same path-text rule typed's runtime manifest and Yaw's hook runtime already apply, so all three now certify the same binaries.
9
+ A local oam build (a compiler output tree: `target/`, `debug/`, `out/`, `cmake-build-*`) reports the same version string as a release while carrying uncommitted code, so the `oam --version` probe could not tell it apart and yaw-mcp hosted sidecars on it -- in one observed case the same `oam 0.9.0` the installed releases reported, with different behavior behind it. The probe now refuses such a binary by PATH TEXT before anything spawns (`OamProbeFailure` gains `build-tree`), so it is never asked for a version, never trusted, and never enters the per-binary verdict cache. doctor and `install` give the real fix instead of "fix or reinstall": put the release install dir (`~/.oam/bin`, or `%LOCALAPPDATA%\oam\bin` on Windows) ahead of the build tree on PATH, or point `OAM_BIN` at an installed release, then restart. With no release installed, the user has to reorder PATH first, because from oam 0.19.0 the installer refuses while another oam resolves ahead of its dir. On Windows, `OAM_SKIP_PATH_SHADOW=1` overrides the refusal. The same path-text rule typed's runtime manifest and Yaw's hook runtime already apply, so all three now certify the same binaries.
10
10
 
11
11
  **Changed -- the managed sidecar tree is the default spawn source on every path oam does not host**
12
12
 
@@ -11,7 +11,7 @@ import {
11
11
  recordAttemptAt,
12
12
  runsUnderNpmConfigPrefix,
13
13
  writeCheckMemo
14
- } from "./chunk-NOPVNM7B.js";
14
+ } from "./chunk-UOWMJUH4.js";
15
15
  export {
16
16
  UPGRADE_LOCK_NAME,
17
17
  acquireUpgradeLock,
@@ -4605,6 +4605,18 @@ function oamInstallAdvice(os) {
4605
4605
  if (os === CURRENT_OS && !oamPublishesBinaryForThisMachine()) return oamNoBinaryReason();
4606
4606
  return oamInstallCommand(os);
4607
4607
  }
4608
+ function oamReleaseDir(os) {
4609
+ return os === "windows" ? "%LOCALAPPDATA%\\oam\\bin" : "~/.oam/bin";
4610
+ }
4611
+ function oamBuildTreeFix(os, viaOamBin = false) {
4612
+ const dir = oamReleaseDir(os);
4613
+ const where = `${dir} (the installer default; OAM_INSTALL_DIR changes it)`;
4614
+ if (viaOamBin) {
4615
+ return `point OAM_BIN at an installed release oam, or unset it to use the oam on PATH; with no release installed, install one first (${oamInstallCommand(os)}, into ${where})`;
4616
+ }
4617
+ const override = os === "windows" ? " (OAM_SKIP_PATH_SHADOW=1 overrides it)" : "";
4618
+ return `put the release oam's dir, ${where}, ahead of the build tree on PATH, or point OAM_BIN at an installed release oam; with no release installed, reorder PATH first, since the installer (${oamInstallCommand(os)}) refuses while another oam resolves ahead of its dir${override}`;
4619
+ }
4608
4620
  function oamHeapOomHint(stderr) {
4609
4621
  if (!stderr.includes("OAM-RT-OOM")) return null;
4610
4622
  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.`;
@@ -4841,7 +4853,7 @@ async function probeOamUncached(run, generation) {
4841
4853
  if (run === spawnVersionProbe && absResolved !== null && isBuildTreePath(absResolved)) {
4842
4854
  log("warn", "oam resolves to a local build-tree binary; falling back to node for this process", {
4843
4855
  bin: absResolved,
4844
- fix: explicit ? "point OAM_BIN at the installed oam (~/.oam/bin)" : "put ~/.oam/bin ahead of the build tree on PATH",
4856
+ fix: oamBuildTreeFix(CURRENT_OS, explicit),
4845
4857
  thenRestart: "restart yaw-mcp; this probe is cached for the process lifetime"
4846
4858
  });
4847
4859
  return publish({
@@ -4850,7 +4862,8 @@ async function probeOamUncached(run, generation) {
4850
4862
  version: null,
4851
4863
  belowMin: false,
4852
4864
  failure: "build-tree",
4853
- failureDetail: `${absResolved} is a compiler output binary (build-tree), not a release`
4865
+ failureDetail: `${absResolved} is a compiler output binary (build-tree), not a release`,
4866
+ viaOamBin: explicit
4854
4867
  });
4855
4868
  }
4856
4869
  const identity = (() => {
@@ -5685,17 +5698,17 @@ async function oamFloorLines(probe) {
5685
5698
  }
5686
5699
  async function defaultRunningPrefix(argvPath) {
5687
5700
  if (isTestSandbox()) return null;
5688
- const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-3IZNHFYK.js");
5701
+ const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-EXON4SEO.js");
5689
5702
  return detectRunningInstallPrefix2(argvPath);
5690
5703
  }
5691
5704
  async function defaultAcquireLock(prefixDir) {
5692
5705
  if (isTestSandbox()) return () => {
5693
5706
  };
5694
- const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-3IZNHFYK.js");
5707
+ const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-EXON4SEO.js");
5695
5708
  return acquireUpgradeLock2(prefixDir);
5696
5709
  }
5697
5710
  async function upgradeLockPath(prefixDir) {
5698
- const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-3IZNHFYK.js");
5711
+ const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-EXON4SEO.js");
5699
5712
  return join11(prefixDir, UPGRADE_LOCK_NAME2);
5700
5713
  }
5701
5714
  async function defaultSpawn(cmd, args, cwd) {
@@ -5757,7 +5770,7 @@ async function runUpgrade(opts = {}) {
5757
5770
  if (method === "global-npm") {
5758
5771
  rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
5759
5772
  if (rawPrefix !== null) {
5760
- const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-3IZNHFYK.js");
5773
+ const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-EXON4SEO.js");
5761
5774
  const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
5762
5775
  const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
5763
5776
  if (spawnForm !== null && displayForm !== null) {
@@ -5889,7 +5902,7 @@ async function runUpgrade(opts = {}) {
5889
5902
  return { exitCode: 3, lines };
5890
5903
  }
5891
5904
  function readCurrentVersion() {
5892
- return true ? "1.1.0" : "dev";
5905
+ return true ? "1.1.1" : "dev";
5893
5906
  }
5894
5907
 
5895
5908
  // src/auto-upgrade.ts
@@ -6181,7 +6194,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
6181
6194
  }
6182
6195
  async function maybeAutoUpgrade(deps = {}) {
6183
6196
  if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
6184
- const current = deps.currentVersion ?? (true ? "1.1.0" : "dev");
6197
+ const current = deps.currentVersion ?? (true ? "1.1.1" : "dev");
6185
6198
  if (current === "dev") return;
6186
6199
  const argvPath = deps.argvPath ?? process.argv[1];
6187
6200
  let method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
@@ -6385,6 +6398,7 @@ export {
6385
6398
  oamPublishesBinaryForThisMachine,
6386
6399
  oamNoBinaryReason,
6387
6400
  oamInstallAdvice,
6401
+ oamBuildTreeFix,
6388
6402
  oamHeapOomHint,
6389
6403
  oamFailureLabel,
6390
6404
  compareVersions,
package/dist/index.js CHANGED
@@ -71,6 +71,7 @@ import {
71
71
  normalizeForCompare,
72
72
  npxSpec,
73
73
  npxSpecIndex,
74
+ oamBuildTreeFix,
74
75
  oamFailureLabel,
75
76
  oamHeapOomHint,
76
77
  oamInstallAdvice,
@@ -124,7 +125,7 @@ import {
124
125
  userConfigDir,
125
126
  withFileLock,
126
127
  yawModeOverlay
127
- } from "./chunk-NOPVNM7B.js";
128
+ } from "./chunk-UOWMJUH4.js";
128
129
 
129
130
  // src/audit-cmd.ts
130
131
  import { homedir as homedir6 } from "os";
@@ -3341,7 +3342,7 @@ async function connectToUpstreamOnce(config, onDisconnect, onListChanged, bridge
3341
3342
  if (downstreamCaps?.sampling) capabilities.sampling = downstreamCaps.sampling;
3342
3343
  if (downstreamCaps?.roots) capabilities.roots = {};
3343
3344
  const client = new Client(
3344
- { name: "yaw-mcp", version: true ? "1.1.0" : "dev" },
3345
+ { name: "yaw-mcp", version: true ? "1.1.1" : "dev" },
3345
3346
  { capabilities }
3346
3347
  );
3347
3348
  if (bridge && capabilities.elicitation) {
@@ -8106,7 +8107,7 @@ ${USAGE}`);
8106
8107
  );
8107
8108
  } else if (oamProbeResult.failure) {
8108
8109
  runtimeLines.push(
8109
- oamProbeResult.failure === "build-tree" ? `Runtime: node (${oamFailureLabel(oamProbeResult.failure)}${oamProbeResult.failureDetail ? ` -- ${oamProbeResult.failureDetail}` : ""}. Point OAM_BIN (or PATH) at the installed oam and re-run install to host yaw-mcp on it.)` : `Runtime: node (oam is installed but unusable: ${oamFailureLabel(oamProbeResult.failure)}${oamProbeResult.failureDetail ? ` -- ${oamProbeResult.failureDetail}` : ""}. Fix or reinstall oam and re-run install to host yaw-mcp on it.)`
8110
+ oamProbeResult.failure === "build-tree" ? `Runtime: node (${oamFailureLabel(oamProbeResult.failure)}${oamProbeResult.failureDetail ? ` -- ${oamProbeResult.failureDetail}` : ""}. Fix: ${oamBuildTreeFix(os, oamProbeResult.viaOamBin === true)}; then re-run install to host yaw-mcp on it.)` : `Runtime: node (oam is installed but unusable: ${oamFailureLabel(oamProbeResult.failure)}${oamProbeResult.failureDetail ? ` -- ${oamProbeResult.failureDetail}` : ""}. Fix or reinstall oam and re-run install to host yaw-mcp on it.)`
8110
8111
  );
8111
8112
  } else if (!opts.suppressOamAbsentNote) {
8112
8113
  runtimeLines.push(oamAbsentNote(os, opts.oamPublishesBinary));
@@ -10749,7 +10750,7 @@ function foldBundleWarnings(warnings, probe) {
10749
10750
  const prefix = `${probe.path}:`;
10750
10751
  return warnings.filter((w) => !w.startsWith(prefix));
10751
10752
  }
10752
- var VERSION = true ? "1.1.0" : "dev";
10753
+ var VERSION = true ? "1.1.1" : "dev";
10753
10754
  var DOCTOR_USAGE = `Usage: yaw-mcp doctor [--json]
10754
10755
 
10755
10756
  Print a diagnostic of your yaw-mcp setup.
@@ -11613,7 +11614,8 @@ function renderOamRuntimeSection(opts) {
11613
11614
  print(` binary: installed but UNUSABLE (${oamFailureLabel(probe.failure)}); servers run on node`);
11614
11615
  if (probe.failureDetail !== null) print(` detail: ${probe.failureDetail}`);
11615
11616
  if (probe.failure === "build-tree") {
11616
- print(" fix: point OAM_BIN (or PATH) at the installed oam, then restart yaw-mcp");
11617
+ print(` fix: ${oamBuildTreeFix(opts.os, probe.viaOamBin === true)}`);
11618
+ print(" then: restart yaw-mcp");
11617
11619
  } else {
11618
11620
  print(" fix: run `oam --version` by hand; OAM_BIN overrides which binary is probed");
11619
11621
  }
@@ -20354,7 +20356,7 @@ var ConnectServer = class _ConnectServer {
20354
20356
  * initialize handshake completes; see beginSession for why it waits. */
20355
20357
  buildServer(era, supportedProtocolVersions) {
20356
20358
  const s = new Server(
20357
- { name: "yaw-mcp", version: true ? "1.1.0" : "dev" },
20359
+ { name: "yaw-mcp", version: true ? "1.1.1" : "dev" },
20358
20360
  {
20359
20361
  capabilities: {
20360
20362
  tools: { listChanged: true },
@@ -24850,7 +24852,7 @@ function registerShutdownTriggers(shutdown, targets) {
24850
24852
  // src/status-cmd.ts
24851
24853
  import { existsSync as existsSync10 } from "fs";
24852
24854
  import { homedir as homedir23 } from "os";
24853
- var VERSION2 = true ? "1.1.0" : "dev";
24855
+ var VERSION2 = true ? "1.1.1" : "dev";
24854
24856
  var STATUS_SCHEMA_VERSION = 1;
24855
24857
  var STATUS_USAGE = `Usage: yaw-mcp status [--json]
24856
24858
 
@@ -25692,7 +25694,7 @@ if (subcommand === "compliance") {
25692
25694
  `);
25693
25695
  process.exitCode = 0;
25694
25696
  } else if (subcommand === "--version" || subcommand === "-V") {
25695
- process.stdout.write(`yaw-mcp ${true ? "1.1.0" : "dev"}
25697
+ process.stdout.write(`yaw-mcp ${true ? "1.1.1" : "dev"}
25696
25698
  `);
25697
25699
  process.exitCode = 0;
25698
25700
  } 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.0",
3
+ "version": "1.1.1",
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",