@yawlabs/mcp 1.1.8 → 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 +30 -0
- package/README.md +59 -1
- package/dist/{auto-upgrade-QLY5Y4ZM.js → auto-upgrade-BFZR7HIL.js} +1 -1
- package/dist/chunk-DQ4KOZI5.js +6307 -0
- package/dist/{chunk-7C5YSE4J.js → chunk-X54WSPEC.js} +104 -14
- package/dist/git-source-TFNP7Y3W.js +126 -0
- package/dist/index.js +5751 -8025
- package/package.json +1 -1
- package/schemas/yaw-mcp.manifest.v1.json +65 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
**Added -- `add --git` builds a TypeScript MCP server from a private git repository and pins its commit**
|
|
8
|
+
|
|
9
|
+
`yaw-mcp add [<name>] --git <url>[#ref]` clones a repository you can read, installs and builds it, and records the resolved 40-character commit in `bundles.json`. Each commit gets its own build directory under `~/.yaw-mcp/git/`, and the server runs as `node <entry>` from there (on oam when it is installed). npm, pnpm and yarn repos build, with frozen lockfiles and through corepack when `packageManager` pins a version; bun repos are refused. `--subdir`, `--entry`, `--project`, `--yes`, `--no-start-check` and `-- <server args>` are supported, and `--dry-run` only resolves the ref. An optional `yaw-mcp.json` in the repo can name the namespace, description, entry, subdir and env declarations, never what runs ([schema](./schemas/yaw-mcp.manifest.v1.json)); a nameless add whose manifest namespace a different server already uses is refused. Authentication is your own git: ssh-agent, `~/.ssh/config`, a credential helper, or `--git-token-secret NAME` for a vault token passed to git through `GIT_ASKPASS`. A URL carrying a token is refused, and no credential is ever written to `bundles.json`, `.git/config` or any output. See [Private git servers](./README.md#private-git-servers).
|
|
10
|
+
|
|
11
|
+
**Added -- a repository's build scripts are approved once, not on every build**
|
|
12
|
+
|
|
13
|
+
The first build of a repository shows its install and build lifecycle scripts, and any repo config that can run code at install (`.npmrc`, `.yarnrc.yml` `yarnPath` and `plugins`, `.pnpmfile.cjs`, `pnpm-workspace.yaml` hooks), and asks before running them. The grant is stored per repository, with SSH and HTTPS forms of the same URL treated as one, and every later build of that repository on this machine -- update, a new ref, a rollback, `sidecars install`, a second server -- runs without asking again. The grant is per machine: a teammate who pulls a project file is asked once on theirs. Off a terminal, a repository with no grant needs `--yes`. Nothing is cloned or built when a server is loaded, prewarmed or activated, and approving a project file with `trust` remains a separate gate.
|
|
14
|
+
|
|
15
|
+
**Added -- `yaw-mcp update` and `yaw-mcp share` for git servers**
|
|
16
|
+
|
|
17
|
+
`update` moves git servers tracking a branch to the commit the branch points at now, building it beside the current build and repointing `bundles.json` only after the build succeeds. `--check` only asks the remote and also reports newer version tags for a server tracking a tag, `--ref` switches what a server tracks, `--to <sha>` goes back to a kept build, and `--project` edits the project file with its comments intact. The current and previous builds are kept, and so is any build another bundles.json on this machine still pins (a project file, or your own); older ones are deleted. `remove` likewise deletes only the builds nothing else pins, and names the ones it keeps. A project file that is not trusted is refused by `update` (even `--check`) and `share`, so its URL and vault secret are never used. `share <name>` prints the one-line `add --git` command coworkers paste (SSH and HTTPS forms where both apply) and the secrets they will be asked for, without env values, vault contents or local paths.
|
|
18
|
+
|
|
19
|
+
**Added -- git servers in `sidecars install`, `trust`, `remove` and `doctor`**
|
|
20
|
+
|
|
21
|
+
`sidecars install` builds any git server whose pinned commit has no build on this machine; a repository whose scripts were never allowed here is reported as `needs-consent` in `--json`, not as a failed build. `trust` shows a project file's git servers with their commits, and any vault token an entry sends together with the host it goes to, and offers the build after approval. `remove` deletes a git server's builds that no other bundles.json pins. `doctor` lists git servers under OAM RUNTIME with the commit, tracked ref, the last `update --check` result and its age, build status, and the node version and platform of the build, and `doctor --json` carries the same rows in `oamRuntime.git`. Doctor reads only what is on disk and never runs git, so a private SSH remote cannot make it prompt or hang. A missing build, a failed build, or a build made for another platform, arch or node major is a warning (exit 2) that names the rebuild command.
|
|
22
|
+
|
|
7
23
|
**Changed -- routing picks the right server and tool more often for plain-English requests**
|
|
8
24
|
|
|
9
25
|
Matching now folds plurals and common suffixes ("pull requests" matches "pull request", "vulnerable" matches "vulnerabilities"), understands common developer abbreviations (PR, k8s, repo, db, gh, deps, ...) and derives aliases from each installed server's own names. `find_tool` ignores filler words and no longer breaks ties alphabetically, so a large server no longer wins ties by having more tools. On a 21-server install, the right server ranked first rose from 75% to 81% of test requests, and the right tool ranked first from 39% to 50%.
|
|
@@ -12,6 +28,10 @@ Matching now folds plurals and common suffixes ("pull requests" matches "pull re
|
|
|
12
28
|
|
|
13
29
|
A server is auto-loaded only when enough of the request's meaningful words match it. General questions ("what is the capital of France") and requests for products that are not installed no longer start a server. Dispatch is unaffected: it still loads its best match, and now says when that match is weak and names the runner-up.
|
|
14
30
|
|
|
31
|
+
**Changed -- a failure under `--json` prints a document instead of an empty stdout**
|
|
32
|
+
|
|
33
|
+
`add`, `update`, `share` and an argv error now emit `{"ok": false, "error": "...", "exitCode": n}` on stdout when they refuse under `--json`, where stdout used to be zero bytes -- indistinguishable from a success a script had to parse to notice. The human-readable line stays on stderr and exit codes are unchanged (2 for usage/consent, 1 for failure), and the rest of the document shapes are untouched.
|
|
34
|
+
|
|
15
35
|
**Added -- dispatch falls back to a close runner-up when its pick fails to start**
|
|
16
36
|
|
|
17
37
|
When the chosen server fails to start, dispatch tries the next candidate if it scored within 1.3x of the failed one and the failed one matched enough of the request's words to be a confident pick, and says which server failed and which was loaded instead. Otherwise the failure is returned as before, so a request for a product that is not installed no longer loads an unrelated server.
|
|
@@ -28,6 +48,16 @@ After loading a server, dispatch lists its best-matching tools with their requir
|
|
|
28
48
|
|
|
29
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.
|
|
30
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
|
+
|
|
31
61
|
## 1.1.7 -- a server Windows will not start is named with its likely cause, instead of a bare `spawn UNKNOWN`
|
|
32
62
|
|
|
33
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.
|
|
@@ -184,6 +186,9 @@ yaw-mcp status [--json] # read-only snapshot of loaded servers, activity,
|
|
|
184
186
|
yaw-mcp add <slug> [--env KEY=value] [--dry-run] # add a catalog server to bundles.json
|
|
185
187
|
yaw-mcp add <name> --command "npx -y my-mcp" # ...or define a local server yourself
|
|
186
188
|
yaw-mcp add <name> --url https://host/mcp # ...or a remote one
|
|
189
|
+
yaw-mcp add [<name>] --git <url>[#ref] # ...or build one from a git repo (see Private git servers)
|
|
190
|
+
yaw-mcp update [<name>] [--check] [--to <sha>] # move git servers to their branch's new commit (yaw-mcp itself: upgrade)
|
|
191
|
+
yaw-mcp share <name> [--pin] # print the one-line add --git command coworkers paste
|
|
187
192
|
yaw-mcp import <client> [--dry-run] # adopt the servers a client already has
|
|
188
193
|
yaw-mcp remove <slug-or-namespace-or-name> # drop a server
|
|
189
194
|
yaw-mcp list [--json] # list configured servers with their cached compliance grade
|
|
@@ -247,6 +252,59 @@ yaw-mcp audit <namespace> # audit a stdio server from bundles.json, cache it
|
|
|
247
252
|
|
|
248
253
|
To install completion, redirect to your shell's completions dir, e.g. `yaw-mcp completion zsh > "${fpath[1]}/_yaw-mcp"`, or `yaw-mcp completion powershell >> $PROFILE`.
|
|
249
254
|
|
|
255
|
+
## Private git servers
|
|
256
|
+
|
|
257
|
+
A TypeScript MCP server that lives in a private repository -- your own, or your team's -- does not need to be published to npm. `add --git` clones it, installs its dependencies, builds it, and pins the exact commit:
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
yaw-mcp add acme-tools --git git@github.com:acme/acme-tools-mcp.git#main
|
|
261
|
+
yaw-mcp add --git https://github.com/acme/crm-mcp.git#v1.4.0 # name from the repo's yaw-mcp.json
|
|
262
|
+
yaw-mcp add tools --git git@gitlab.acme.dev:infra/mono.git --subdir packages/mcp --entry dist/index.js -- --verbose
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
- **The ref** after `#` can be a branch, a tag, or a short or full SHA (default: the remote's default branch). It is resolved to a full 40-character commit, and that commit is what `bundles.json` records. Each build lives in its own directory, `~/.yaw-mcp/git/<namespace>/<sha12>`, and the server runs as `node <entry>` from there, with the node yaw-mcp itself runs on -- on oam when oam is installed, like any other node server.
|
|
266
|
+
- **npm, pnpm and yarn** repos all build. The package manager comes from `packageManager` in the root `package.json` (run through corepack when it pins a version), else from the lockfile. Installs are always frozen (`npm ci`, `pnpm install --frozen-lockfile`, `yarn install --frozen-lockfile` or `--immutable`) and include dev dependencies; yarn 2+ builds with `nodeLinker: node-modules`, and a pnpm workspace subdir builds with `--filter`. The build is `<pm> run build`, run only when the package has a `build` script. bun repos are refused.
|
|
267
|
+
- **The entry** is the package's `bin`, then `main`, unless `--entry` says otherwise. `add` starts the server once and lists its tools before it reports success (`--no-start-check` skips that).
|
|
268
|
+
- `--dry-run` only resolves the ref and prints the commit it would pin.
|
|
269
|
+
|
|
270
|
+
**Build-script consent is asked once per repository.** The first build of a repo shows its install and build lifecycle scripts (pre/post hooks and every workspace package's scripts included), plus any repo config that can run code at install -- `.npmrc`, `.yarnrc`, `.yarnrc.yml` (`yarnPath`, `plugins`), `.pnpmfile.cjs`, `pnpm-workspace.yaml` hooks -- and asks before running them. That config is shown, not blocked. The answer is stored per repository in `~/.yaw-mcp/git/consent.json`, and later builds of the same repo -- `update`, a new ref, `--to`, `sidecars install`, a second server from the same repo -- do not ask again, even when the scripts change. `git@host:org/repo`, `ssh://git@host/org/repo` and `https://host/org/repo.git` count as the same repository. Off a terminal there is nobody to ask, so a repo with no stored grant needs `--yes`, which also records the grant. Nothing is ever cloned or built when yaw-mcp loads, lists, prewarms or activates a server: a server with no build on this machine fails activation with `Run: yaw-mcp sidecars install`.
|
|
271
|
+
|
|
272
|
+
**The repo's `yaw-mcp.json` (optional).** A server repo can carry a `yaw-mcp.json` at its root (and at `<subdir>/yaw-mcp.json`, which overrides the root key by key) so that a bare `add --git <url>` needs no other flags:
|
|
273
|
+
|
|
274
|
+
```jsonc
|
|
275
|
+
{
|
|
276
|
+
"$schema": "https://raw.githubusercontent.com/YawLabs/mcp/main/schemas/yaw-mcp.manifest.v1.json",
|
|
277
|
+
"version": 1,
|
|
278
|
+
"namespace": "acme_crm",
|
|
279
|
+
"description": "Acme CRM: accounts, deals, contacts",
|
|
280
|
+
"entry": "dist/index.js",
|
|
281
|
+
"env": {
|
|
282
|
+
"CRM_TOKEN": { "secret": "crm_token", "required": true, "help": "https://wiki.acme/crm-token" },
|
|
283
|
+
"CRM_REGION": { "default": "us" }
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
It can set the namespace, description, entry, subdir and env declarations -- never what runs: a `command`, `args` or `scripts` key is refused with a warning. Flags beat the manifest, and the manifest beats what `package.json` implies. A nameless `add --git` whose manifest names a namespace a different server already uses is refused, so a repo cannot take over another server's env; give the server a name instead. A secret is written to `bundles.json` as a `${secret:NAME}` reference, never as a value, and `add` offers to store a missing one in the [vault](#local-secret-vault). Every `add --git` prints the env keys it writes, each with the vault secret behind it or `a value (not shown)`. The file is strictly optional: everything in it has a flag, a repo may keep it out of a public mirror, and yaw-mcp never creates it or asks you to.
|
|
289
|
+
|
|
290
|
+
**Sharing with coworkers.** `yaw-mcp share <name>` prints the line a coworker pastes -- an `SSH:` and an `HTTPS:` form when the URL converts cleanly -- and the secrets they will be asked for. It prints the ref the server tracks, or the exact commit with `--pin`, and warns when that ref is a branch, since each coworker would get whatever the branch points at that day. It never prints env values, vault contents or local paths, and whatever the repo's `yaw-mcp.json` does not declare is spelled out as flags. Read access to the repository is the whole permission model: there is no registry and no sharing layer.
|
|
291
|
+
|
|
292
|
+
**Updating.** `yaw-mcp update` moves each git server tracking a branch to the commit the branch points at now. The new commit is built beside the current one and `bundles.json` is repointed only after the build succeeds, so a failed build changes nothing. A server tracking a tag or a commit is pinned: it is reported, not moved. `--check` only asks the remote and reports each server as up to date, behind or pinned, plus newer version tags for one tracking a tag. `--ref <ref>` switches what a server tracks, and `--to <sha>` goes back to a build kept on this machine (the current build and the one before it are kept, plus any build another bundles.json on this machine still pins; older ones are deleted). `yaw-mcp remove` deletes the server's builds with it, except one another bundles.json still pins, which it names. A project file you have not trusted is refused by `update` (even `--check`) and `share`, so its URL and vault secret are never used. `update` never touches yaw-mcp itself -- that is `yaw-mcp upgrade`.
|
|
293
|
+
|
|
294
|
+
**Teammates, through a project file.** `add --git --project` and `update --project` write the server, with its pinned commit, into the project's `.yaw-mcp/bundles.json`, keeping the file's comments; commit that file. A teammate who pulls it runs `yaw-mcp trust`, which shows the git server, its commit, and any vault token the entry would send together with the host it goes to, and, after approval, offers to build it (or run `yaw-mcp sidecars install` later). Project trust and repo consent are separate gates: approving the file does not skip the once-per-repo script consent, and a project entry with no pinned commit is refused rather than built from a moving branch. When the file was approved before your own `--project` write, the approval is renewed for you; otherwise it stays unapproved and the command says so.
|
|
295
|
+
|
|
296
|
+
**Doctor.** `yaw-mcp doctor` lists git servers under OAM RUNTIME: commit, tracked ref, the last `update --check` result and its age, build status, and the node version and platform the build was made with. Doctor never runs git (a private SSH remote can prompt or hang), so "behind" is only as fresh as your last `update --check`. A missing build, a failed build, or one made for another platform, arch or node major is a warning (exit 2) that names the rebuild command. `doctor --json` carries the same rows in `oamRuntime.git`.
|
|
297
|
+
|
|
298
|
+
**Credentials.** yaw-mcp uses your own git authentication and never stores a credential:
|
|
299
|
+
|
|
300
|
+
- **SSH** (`git@host:org/repo`, `ssh://...`): whatever your git already uses -- ssh-agent, `~/.ssh/config`, `core.sshCommand` or `GIT_SSH_COMMAND`.
|
|
301
|
+
- **HTTPS**: your git credential helper (Git Credential Manager, osxkeychain, libsecret), or `--git-token-secret NAME` to read a token from the vault. The token reaches git through a `GIT_ASKPASS` helper for that one git call only; it never goes into argv, the URL, `.git/config`, `bundles.json`, logs or `--json`, and only the secret's name is stored.
|
|
302
|
+
- A URL carrying a token or password (`https://TOKEN@host/...`) is refused before anything is written. A bare username (`https://git@host/...`) is fine.
|
|
303
|
+
- Off a terminal, git runs with `GIT_TERMINAL_PROMPT=0` and `GCM_INTERACTIVE=never`, so it fails fast instead of waiting on a prompt nobody can see. Clone and build output is redacted before it is printed or saved.
|
|
304
|
+
- **Windows and ssh-agent:** Git for Windows ships its own `ssh`, which does not use the Windows OpenSSH agent service. If `ssh -T git@github.com` works in PowerShell but the clone fails to authenticate, point git at the Windows client: `git config --global core.sshCommand C:/Windows/System32/OpenSSH/ssh.exe`.
|
|
305
|
+
- **Host keys:** yaw-mcp never accepts an ssh host key for you. A host ssh does not know yet is reported with the fix (`ssh -T git@<host>` once, to accept it); a host key that CHANGED is reported as a possible interception.
|
|
306
|
+
- A teammate who uses the other protocol than a committed project entry does not need to edit the shared file: git's own rewrite covers it, for example `git config --global url."https://github.com/".insteadOf "git@github.com:"`.
|
|
307
|
+
|
|
250
308
|
## Configuration -- `.yaw-mcp/`
|
|
251
309
|
|
|
252
310
|
yaw-mcp keeps its config under a `.yaw-mcp/` directory (mirroring `.git/`, `.vscode/`, `.claude/`). It reads `config.json` from three optional scopes, highest precedence first:
|
|
@@ -424,7 +482,7 @@ Common ones (run `yaw-mcp --help` for the full list):
|
|
|
424
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. |
|
|
425
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. |
|
|
426
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. |
|
|
427
|
-
| `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. |
|
|
428
486
|
| `YAW_MCP_AUTO_LOAD` | `1` pre-activates the top recurring pack at startup (needs persistence). Default off. |
|
|
429
487
|
| `YAW_MCP_PRUNE_RESPONSES` | `0` disables response pruning. Default on. |
|
|
430
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. |
|