@yawlabs/mcp 0.73.1 → 0.73.2

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
@@ -2,6 +2,93 @@
2
2
 
3
3
  All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented here. This project uses [semantic versioning](https://semver.org) and a script-gated release flow: `./release.sh <version>` runs lint + typecheck + tests + build, bumps, tags, publishes to npm, and publishes `server.json` to the MCP registry.
4
4
 
5
+ ## 0.74.0 -- local-only: the hosted control plane is retired (BREAKING)
6
+
7
+ The hosted backend is gone. Every endpoint yaw-mcp called returns 404 -- `/api/connect/config`, `/heartbeat`, `/analytics`, `/servers`, `/api/compliance/ext`, `/api/try/event`, the dashboard, and `/signup`. Rather than keep code that cannot succeed, account mode is removed outright: your servers come from `~/.yaw-mcp/bundles.json` and your credentials from the local encrypted vault. Roughly 5,800 lines deleted.
8
+
9
+ Only two hosted surfaces survive, and neither needs an account: the public server catalog at `https://yaw.sh/data/mcp-catalog.json` (fetched on demand by `add` / `try`) and its browsable form at `https://yaw.sh/mcp/catalog/`.
10
+
11
+ **Breaking -- removed**
12
+
13
+ - `mcp_connect_install` and `mcp_connect_import` meta-tools. Both wrote to the account and already hard-errored in local mode. Add servers with `yaw-mcp add <slug>`.
14
+ - `compliance --publish` -- posted reports to a dead endpoint. Now rejected with exit 2.
15
+ - The 60s config poll. `bundles.json` is read once at startup, so restart the MCP client after editing it.
16
+ - Semantic reranking. Ranking is BM25 computed locally, plus the health, learning, and sampling signals. The Voyage-backed embedding index it depended on is retired.
17
+ - All telemetry. The analytics, heartbeat, and tool-report posters are deleted, and `try`'s event POST is a no-op that no longer computes or stores a machine fingerprint. Nothing is transmitted off your machine.
18
+ - `yaw-mcp servers` is now a deprecation stub that prints to stderr and exits 1. It is retained for one release because Yaw Terminal's MCP panel shells out to it and reads a non-zero exit as signed-out; the compliance grade it used to show moved to a `GRADE` column in `yaw-mcp list`.
19
+
20
+ **Breaking -- `yaw-mcp remove` now confirms**
21
+
22
+ `remove` was the only destructive verb without a gate. On a TTY it previews the namespace, name, launch command, and env KEY names (never values), then asks -- bare Enter is no. Off a TTY it refuses with exit 2 and names `--force`.
23
+
24
+ This breaks scripted use, and it breaks intermittently: a script removing an already-absent server still exits 0, so the cleanup path that worked yesterday fails the one time there was something to clean. Add `--force`. The gate exists because removal is less reversible than it looks -- env values stored on the entry go with it and `add` will not bring them back.
25
+
26
+ **Deprecated for one release -- still accepted, now warns**
27
+
28
+ - `--token` and `--no-yaw-mcp-config` on `yaw-mcp install`. Both are still fully parsed, so `install --all --token mcp_pat_...` keeps working and keeps exiting 0; the values are ignored.
29
+ - The `token` and `apiBase` keys in `.yaw-mcp/config.json`. The file still loads; a warning names it and tells you to revoke the PAT at its source, since deleting the key does not deactivate it.
30
+ - `doctor --json` keeps every key it used to emit. `token` and `apiBase` retain their nested shapes with null members and `backgroundPosters` keeps `{"analytics": null, "toolReport": null}`, rather than flattening to a bare `null` that would throw for anyone reading `.token.source`.
31
+
32
+ **Security**
33
+
34
+ - **Project `bundles.json` now requires explicit consent.** A project-scoped `<project>/.yaw-mcp/bundles.json` is normally committed to a repo, and every server in it is a command yaw-mcp spawns as you at startup. Cloning a hostile repo and opening an editor in it was enough to execute arbitrary argv. An unapproved file is ignored and your user-global file still loads; approve with `yaw-mcp trust`, which prints every command and arg before asking. Approval pins the file's SHA-256, so a later commit re-requires it. `--list` flags drifted entries, `--revoke` withdraws, and `YAW_MCP_TRUST_PROJECT=1` bypasses for CI. Your own `~/.yaw-mcp/bundles.json` is never gated.
35
+ - The consent preview escapes C0, DEL, C1 (0x9b is 8-bit CSI), and bidi overrides. Without it a repo could conceal its argv with SGR 8 or erase the rendered block with cursor-up before the prompt painted, defeating the one thing the gate guarantees.
36
+ - An unreadable project file no longer suppresses your user-global servers. A repo committing `.yaw-mcp` as a regular file (ENOTDIR) or `bundles.json` as a symlink loop (ELOOP) previously dropped every server on POSIX.
37
+ - Dropping the `apiBase` precedence chain closes a real hole: project scope was honored for `apiBase` while refused for `token`, so a committed project config could redirect the API base and the global token would follow it to an attacker host. `url-safety.ts` is deleted with it -- nothing dials a config-supplied URL any more.
38
+ - A transient trust-store read error (EACCES/EIO, an antivirus lock) no longer wipes every approval; I/O and parse failures are distinguished and I/O refuses to write.
39
+
40
+ **Fixed**
41
+
42
+ - `YAW_MCP_MIN_COMPLIANCE` was silently inert and the discover `[A]`-`[F]` badge never rendered -- `complianceGrade` lost its supplier with the backend and nothing read `grades.json`. Grades are now overlaid at startup.
43
+ - Prewarm respawned every active server on every client start, because the tool cache lost its only writer. It is persisted at state schema v2; v1 files migrate rather than being dropped.
44
+ - A tool-name collision between two upstreams pointed `tools/list` and dispatch at different servers -- the model saw one upstream's schema while the call executed another's, letting a later-activated server capture an earlier one's traffic. Both surfaces now agree on the first writer.
45
+ - On Windows, an `npm --prefix` containing a space was split into two argv tokens by the `shell: true` self-upgrade spawn, so the upgrade landed in the wrong tree and the running copy stayed stale. `C:\Users\<First Last>\AppData\Roaming\npm` is npm's default global prefix, so any account with a space in its name hit this on every stale startup.
46
+ - `doctor` lost its only exit-2 path when account mode went (both gates tested `config.token === null`), so a malformed config exited 0. The gate is unconditional now.
47
+
48
+ **Added**
49
+
50
+ - A root `LICENSE`: source-available, not open source. Free personal and commercial use and redistribution of unmodified copies; no right to offer it to third parties as a competing product. Contributions are accepted under DCO 1.1 sign-off -- no CLA, no copyright assignment. `package.json` previously declared `UNLICENSED` with no license file at all.
51
+ - `yaw-mcp trust` (`--list`, `--revoke`, `--yes`, `--json`).
52
+ - Test coverage grew from 1,809 to 1,998 tests. `ConnectServer.start()` had none and is now the only startup path.
53
+
54
+ ## 0.73.1 -- README rewrite and a full-pass review sweep
55
+
56
+ **Docs.** The README is rewritten against `index.ts --help`, `KNOWN_SUBCOMMANDS`, and `meta-tools.ts` -- about half its former length. It drops the retired Yaw Team surface (`login`/`logout`/`sync`/`stats`, `secrets push`/`pull`, `rotate --push`), gone since 0.71.0 but still documented, and adds the previously-undocumented top-level `audit` and `mcp_connect_secrets`.
57
+
58
+ **Fixed** -- 33 findings from a full-pass sweep of all source files, each adversarially re-verified before being fixed:
59
+
60
+ - `YAW_MCP_MIN_COMPLIANCE` was enforced only in `handleActivate`; the floor gate moved into `runActivateOne` so dispatch, discover auto-warm, deferred activation, and autoLoad all honor it.
61
+ - A concurrent-server-cap TOCTOU: the slot is reserved synchronously before `connectToUpstream`, so parallel activations of distinct namespaces cannot exceed the cap.
62
+ - A non-string allow-list entry no longer collapses to `[]` (allow-all), shadowing a valid parent scope; it warns and falls through.
63
+ - `recordSuccess` no longer fabricates a dispatch; shutdown counts an undrained backlog as dropped; sub-30% error rates are surfaced rather than silently penalizing rank.
64
+ - A child that dies during the initial fetch window is no longer reported as connected.
65
+ - Secret redaction sorts longest-first, so a secret that is a substring of another cannot leak a tail.
66
+
67
+ Intentionally deferred: converting `index.ts`'s 39 `process.exit()` calls to `process.exitCode` (needs restructuring the top-level ESM dispatch), and `reward.ts`'s first-text-block-only grading heuristic (changes cross-session learning behavior).
68
+
69
+ ## 0.73.0 -- post-merge review findings and ship-ready UX blockers
70
+
71
+ **Fixed**
72
+
73
+ - PowerShell positional completion was entirely dead. Every slot guard read `if ($tokens.Count -eq <index+2>)`, but that switch only runs inside the `else` of `if ($tokens.Count -le 2)`, so slot 0's `-eq 2` could never be true and no client, action, or shell candidate was ever offered. Verified with `TabExpansion2` against real PowerShell 5.1. bash/zsh/fish were correct and untouched.
74
+ - The secrets audit log recorded `injected` for secrets that were never injected. `recordResolveAudit` ran before the fail-closed missing-refs throw, so a refused spawn still logged every resolvable ref as injected -- meaning `yaw-mcp secrets audit` answered "did this server ever receive my prod token" with a false yes. Only `missing` events are recorded on that path now.
75
+ - A fatal startup config error exited 0. The fire-and-forget `runServer()` rejection was caught by the last-resort `unhandledRejection` handler, so a bad `YAW_MCP_URL` reported failure while returning success to any supervisor. Exits 1 now.
76
+ - An invalid secret name was rejected only after both prompts, so `secrets set "my token"` made you enter a passphrase and a secret value before saying the name was never valid. Validated in `parseSecretsArgs` now.
77
+ - The compliance shell-fallback message named the wrong characters -- `quoteForShell` also rejects `%` on win32 and `'` on POSIX.
78
+ - A pre-existing prompt bug in the same reader path: the value prompt rendered as `Secret value: Vault passphrase: `.
79
+
80
+ **Ship-ready blockers**
81
+
82
+ - `yaw-mcp --HELP` booted a silent stdio server. `suggestFlag` dropped the one alias you meant from its own candidate pool, returned `[]`, and fell through to `runServer()` -- the exact hang that branch exists to prevent. Exits 2 with a suggestion now.
83
+ - Neither destructive secrets path confirmed. `secrets remove` deleted immediately, and `secrets set` over an existing name overwrote while printing the same message as a fresh write. Both are now gated the way a config collision already was: prompt on a TTY, refuse off one. `remove` is gated both ways since it is unrecoverable; `set` still proceeds non-interactively so rotation scripts keep working, but prints `Replaced secret "X"` and sets `replaced` in `--json`.
84
+
85
+ ## 0.72.0 -- unblock the release on win32-arm64
86
+
87
+ **Fixed**
88
+
89
+ - Pinned `@biomejs/biome` to 2.4.16. The 2.5.x native binary segfaults (exit 139) on MINGW64-ARM64 before producing any output, which blocked `npm run lint` and stalled the release script -- its tolerance paths could not engage because there was no output to match against. 2.4.16 runs cleanly.
90
+ - `biome.json` follows the 2.4 flat schema (`rules.recommended: true` rather than `rules.preset`), plus the formatter rewrites that pin brought with it.
91
+
5
92
  ## 0.71.0 -- remove the Yaw Team surface (BREAKING)
6
93
 
7
94
  The Yaw Team tier is fully retired. The yaw.sh `/api/team/*` and `/api/admin/*` endpoints have been deleted, so every command that spoke to them is removed rather than left to fail at runtime.
package/LICENSE ADDED
@@ -0,0 +1,85 @@
1
+ Yaw MCP Source-Available License
2
+ Version 1.0
3
+
4
+ Copyright (c) 2026 Yaw Labs. All rights reserved.
5
+
6
+ This software is source-available, not open source. The source is published so
7
+ that you can read it, audit it, and trust it before running it -- Yaw MCP spawns
8
+ processes on your machine and handles your credentials, and you should not have
9
+ to take that on faith. Publication is not a grant of open-source rights.
10
+
11
+ 1. DEFINITIONS
12
+
13
+ "Software" means this software and its source code, in whole or in part,
14
+ including any modification you make to it.
15
+
16
+ "You" means the individual or legal entity exercising rights under this
17
+ License.
18
+
19
+ "Competing Product" means a product or service, offered to third parties for
20
+ a fee or as part of a paid offering, whose primary purpose is the same as the
21
+ Software's: orchestrating, proxying, hosting, or managing Model Context
22
+ Protocol servers on behalf of a user.
23
+
24
+ 2. GRANT OF RIGHTS
25
+
26
+ Subject to the conditions below, Yaw Labs grants You a worldwide,
27
+ royalty-free, non-exclusive license to:
28
+
29
+ (a) use and run the Software for any purpose, personal or commercial,
30
+ including inside a business, without limit on number of users or
31
+ machines;
32
+
33
+ (b) reproduce and distribute unmodified copies of the Software, including
34
+ through package registries and package managers, provided this License
35
+ and all copyright notices are retained;
36
+
37
+ (c) modify the Software and run Your modified version for Your own use or
38
+ Your organization's internal use; and
39
+
40
+ (d) distribute Your modifications for the purpose of contributing them back
41
+ to Yaw Labs.
42
+
43
+ 3. CONDITIONS AND LIMITATIONS
44
+
45
+ (a) You may not offer the Software, or any derivative of it, to third parties
46
+ as a Competing Product.
47
+
48
+ (b) You may not remove or alter any copyright, license, or attribution notice
49
+ in the Software.
50
+
51
+ (c) This License grants no rights in the names, logos, or trademarks of Yaw
52
+ Labs, including "Yaw", "Yaw Labs", and "Yaw MCP". Distributions under
53
+ Section 2(b) may use the name solely to identify the origin of the
54
+ Software.
55
+
56
+ (d) Any use of the Software not expressly permitted by this License is
57
+ reserved to Yaw Labs.
58
+
59
+ 4. TERMINATION
60
+
61
+ Your rights under this License terminate automatically if You breach it. They
62
+ are reinstated if You cure the breach within 30 days of becoming aware of it,
63
+ unless Yaw Labs has already notified You of the breach.
64
+
65
+ 5. NO WARRANTY
66
+
67
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
68
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
69
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NONINFRINGEMENT.
70
+
71
+ 6. LIMITATION OF LIABILITY
72
+
73
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL YAW LABS
74
+ BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF
75
+ CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE
76
+ SOFTWARE OR THE USE OF OR OTHER DEALINGS IN THE SOFTWARE, INCLUDING ANY LOSS
77
+ OF DATA, LOSS OF PROFITS, OR BUSINESS INTERRUPTION.
78
+
79
+ 7. THIRD-PARTY SOFTWARE
80
+
81
+ The Software depends on third-party packages distributed under their own
82
+ licenses. Those licenses govern those packages; this License covers only the
83
+ Software itself.
84
+
85
+ For licensing outside these terms, contact support@yaw.sh.
package/README.md CHANGED
@@ -4,16 +4,16 @@
4
4
 
5
5
  Yaw MCP (the `yaw-mcp` CLI) is an MCP server that fronts every other MCP server you use. Point each AI client (Claude Code, Claude Desktop, Cursor, VS Code) at it once, and your servers load lazily from a single connection instead of a hand-edited `mcpServers` block per client.
6
6
 
7
- Run it free with no account (servers live in a local `bundles.json`), or sign in with a token to manage servers from the [yaw.sh/mcp](https://yaw.sh/mcp) dashboard and sync them across machines.
7
+ It runs entirely on your machine. No account, no sign-in, no telemetry -- your servers live in a local `bundles.json` and your credentials in a local encrypted vault. Running as an MCP server, its only outbound call is a background npm check for its own updates (`YAW_MCP_AUTO_UPGRADE=0` to disable); `yaw-mcp add` fetches the public server catalog on demand.
8
8
 
9
9
  It earns its keep when you hit any of these:
10
10
 
11
- - **More than one client or machine.** Add a server once; every client/device picks it up on the next poll. No copy-pasting the same JSON into four config files.
12
- - **Tool-context bloat.** The `dispatch` meta-tool ranks your servers against the task and loads only the top match. A 30-server account keeps a handful of tools in context at a time instead of hundreds.
13
- - **Tokens you'd rather not leave in disk configs.** Credentials live encrypted (on the dashboard, or in a local vault) and inject at spawn time. Rotate once; every client picks up the new value.
11
+ - **More than one client.** Define a server once in `bundles.json`; every client on the machine picks it up. No copy-pasting the same JSON into four config files. (Sync `bundles.json` across machines with your dotfiles if you want it everywhere.)
12
+ - **Tool-context bloat.** The `dispatch` meta-tool ranks your servers against the task and loads only the top match. A 30-server setup keeps a handful of tools in context at a time instead of hundreds.
13
+ - **Tokens you'd rather not leave in disk configs.** Credentials live encrypted in a local vault and inject at spawn time. Rotate once; every client picks up the new value.
14
14
  - **A trust signal before you activate.** Every scored server shows an A-F compliance grade. Set `YAW_MCP_MIN_COMPLIANCE=B` to refuse anything below.
15
15
 
16
- One client, one machine, a few servers? `claude mcp add` is fine -- yaw-mcp's value shows up when that setup stops scaling.
16
+ One client, a few servers? `claude mcp add` is fine -- yaw-mcp's value shows up when that setup stops scaling.
17
17
 
18
18
  ## How it works
19
19
 
@@ -25,17 +25,15 @@ Your MCP client (Claude Code, Cursor, ...)
25
25
  @yawlabs/mcp --lazy load--> GitHub | Slack | Stripe | ... (your servers)
26
26
  ```
27
27
 
28
- 1. Add servers on the dashboard (or `yaw-mcp add <slug>` locally).
29
- 2. yaw-mcp pulls your config on startup and polls for changes.
30
- 3. The model uses a handful of **meta-tools** to control which servers' tools are in context. Installing a server puts it on your list; loading it brings its tools into the session.
28
+ 1. Add servers with `yaw-mcp add <slug>` (or edit `~/.yaw-mcp/bundles.json` directly).
29
+ 2. yaw-mcp reads that file on startup.
30
+ 3. The model uses a handful of **meta-tools** to control which servers' tools are in context. Adding a server puts it on your list; loading it brings its tools into the session.
31
31
 
32
32
  | Meta-tool | What it does |
33
33
  |-----------|--------------|
34
34
  | `mcp_connect_dispatch` | Describe a task in plain English; picks the best server, loads its tools, exposes them in one call. The fast path. |
35
- | `mcp_connect_discover` | List installed servers, optionally ranked by a context string. Auto-loads the top match when one clearly wins. |
35
+ | `mcp_connect_discover` | List available servers, optionally ranked by a context string. Auto-loads the top match when one clearly wins. |
36
36
  | `mcp_connect_activate` / `deactivate` | Load / unload specific servers by namespace. |
37
- | `mcp_connect_install` | Install a new server on your account. |
38
- | `mcp_connect_import` | Bulk-import servers from an existing client config. |
39
37
  | `mcp_connect_read_tool` | Return one tool's schema without loading its server. |
40
38
  | `mcp_connect_exec` | Run a short declarative pipeline of tool calls in one round-trip (`{"$ref": "<step>[.path]"}` splices prior outputs; no eval, max 16 steps). |
41
39
  | `mcp_connect_bundles` | List curated multi-server presets (PR review, DevOps incident, ...) and match them against your config. |
@@ -43,7 +41,7 @@ Your MCP client (Claude Code, Cursor, ...)
43
41
  | `mcp_connect_secrets` | Show which local-vault secrets each server's `${secret:NAME}` refs resolve to -- by name only, never a value. |
44
42
  | `mcp_connect_health` | Call counts, error rates, and latency per loaded server. |
45
43
 
46
- **Ranking.** dispatch/discover rank with BM25. When the backend has a Voyage embeddings key, a `/api/connect/rerank` call semantically reorders the shortlist; with no key it degrades to BM25-only. On top of the ranker, three client-side signals adjust scores:
44
+ **Ranking.** dispatch/discover rank with BM25, computed locally. On top of the ranker, three signals adjust scores:
47
45
 
48
46
  - **Health-aware** -- servers that recently failed or error often get down-ranked (never boosted above raw).
49
47
  - **Learning** -- servers that succeeded before get a small nudge (+10% max), persisted across restarts.
@@ -56,33 +54,26 @@ Servers auto-unload after ~10 tool calls to other servers, so context stays clea
56
54
  ### One command (recommended)
57
55
 
58
56
  ```bash
59
- npx -y @yawlabs/mcp@latest install <claude-code|claude-desktop|cursor|vscode> --token mcp_pat_your_token
57
+ npx -y @yawlabs/mcp@latest install <claude-code|claude-desktop|cursor|vscode>
60
58
  ```
61
59
 
62
- This edits the chosen client's config (correct path + JSON shape for your OS) to launch yaw-mcp, and writes your token to `~/.yaw-mcp/config.json` so every other client picks it up automatically. On Windows it wraps `npx` in `cmd /c` (without which MCP clients hit `ENOENT` on the `npx.cmd` shim). Run it once per client; re-run with `--token` to rotate.
60
+ This edits the chosen client's config (correct path + JSON shape for your OS) to launch yaw-mcp. On Windows it wraps `npx` in `cmd /c` (without which MCP clients hit `ENOENT` on the `npx.cmd` shim). Run it once per client.
63
61
 
64
62
  Useful flags:
65
63
 
66
64
  - `--scope user|project|local` -- which file to write (Claude Code + Cursor support project/local; VS Code is workspace-only; Claude Desktop is user-only).
67
65
  - `--dry-run` -- print the diff and exit without writing.
68
66
  - `--force` / `--skip` -- overwrite or leave an existing `mcp` entry (otherwise prompts on a TTY, refuses off-TTY).
69
- - `--no-yaw-mcp-config` -- write only the client config; leave `~/.yaw-mcp/config.json` alone.
70
67
 
71
68
  Or do every detected client at once:
72
69
 
73
70
  ```bash
74
- yaw-mcp install --list # detect clients + show install state (read-only, no token)
75
- yaw-mcp install --all --token mcp_pat_... # install into every user-scope client on this machine
71
+ yaw-mcp install --list # detect clients + show install state (read-only)
72
+ yaw-mcp install --all # install into every user-scope client on this machine
76
73
  ```
77
74
 
78
75
  > The launch entry is keyed `"mcp"`, so its tools surface under the `mcp__mcp__` namespace. Installs made before the rename used `"mcp.hosting"` / `"yaw-mcp"`; `yaw-mcp install` detects and migrates those.
79
76
 
80
- ### Getting your token
81
-
82
- 1. Sign up at [yaw.sh/mcp](https://yaw.sh/mcp).
83
- 2. **Settings > Tokens** -> create a token (starts with `mcp_pat_`).
84
- 3. Pass it to `yaw-mcp install` as above.
85
-
86
77
  ### Manual install
87
78
 
88
79
  The JSON shape (top-level `mcpServers`, except VS Code uses `servers` in `.vscode/mcp.json`):
@@ -95,35 +86,34 @@ The JSON shape (top-level `mcpServers`, except VS Code uses `servers` in `.vscod
95
86
  }
96
87
  ```
97
88
 
98
- On **Windows**, use `"command": "cmd", "args": ["/c", "npx", "-y", "@yawlabs/mcp@latest"]`. Put your token in `~/.yaw-mcp/config.json` (`{ "version": 1, "token": "mcp_pat_..." }`) or set `YAW_MCP_TOKEN` in the client's `env` block.
89
+ On **Windows**, use `"command": "cmd", "args": ["/c", "npx", "-y", "@yawlabs/mcp@latest"]`.
99
90
 
100
91
  ## CLI
101
92
 
102
- `yaw-mcp` with no subcommand runs as the MCP server. No token needed: without one it serves your local `~/.yaw-mcp/bundles.json`; with a token it also pulls your account's servers. Most read-only subcommands accept `--json`. Run `yaw-mcp <cmd> --help` for per-command flags.
93
+ `yaw-mcp` with no subcommand runs as the MCP server, serving the servers in your `~/.yaw-mcp/bundles.json`. Most read-only subcommands accept `--json`. Run `yaw-mcp <cmd> --help` for per-command flags.
103
94
 
104
95
  **Setup**
105
96
 
106
97
  ```bash
107
98
  yaw-mcp install <client> # connect a client to yaw-mcp (see above)
108
- yaw-mcp doctor [--json] # diagnose config, token, clients, learning, reliability, upgrade
99
+ yaw-mcp doctor [--json] # diagnose config, clients, learning, reliability, upgrade
109
100
  ```
110
101
 
111
- **Local servers (no account)** -- managed in `~/.yaw-mcp/bundles.json`, browse the catalog at [yaw.sh/mcp/explore](https://yaw.sh/mcp/explore):
102
+ **Servers** -- managed in `~/.yaw-mcp/bundles.json`, browse the catalog at [yaw.sh/mcp/catalog](https://yaw.sh/mcp/catalog/):
112
103
 
113
104
  ```bash
114
105
  yaw-mcp add <slug> [--env KEY=value] [--dry-run] # add a catalog server to bundles.json
115
106
  yaw-mcp remove <slug-or-namespace> # drop a server
116
- yaw-mcp list [--json] # list locally loaded servers
107
+ yaw-mcp list [--json] # list configured servers with their cached compliance grade
117
108
  yaw-mcp try <slug> [--client <name>] [--ttl 1h] # wire a one-off trial straight into your client (expires)
118
109
  yaw-mcp try-cleanup <slug> # remove a trial early (doctor GCs expired ones)
119
110
  ```
120
111
 
121
- `add` is not `install`: `install <client>` connects an AI client to yaw-mcp; `add <slug>` adds an MCP server to yaw-mcp itself. `try` points the client directly at the upstream server, bypassing yaw-mcp, so you can evaluate it without an account.
112
+ `add` is not `install`: `install <client>` connects an AI client to yaw-mcp; `add <slug>` adds an MCP server to yaw-mcp itself. `try` points the client directly at the upstream server, bypassing yaw-mcp, so you can evaluate it in isolation.
122
113
 
123
114
  **Inspection & maintenance**
124
115
 
125
116
  ```bash
126
- yaw-mcp servers [<filter>] [--json] # list dashboard servers (optional namespace substring filter)
127
117
  yaw-mcp bundles [list|match] [--json] # browse curated bundles; match partitions against your enabled servers
128
118
  yaw-mcp upgrade [--run] [--json] # show (or run) the command that bumps @yawlabs/mcp
129
119
  yaw-mcp reset-learning # clear cross-session learning (~/.yaw-mcp/state.json)
@@ -133,47 +123,41 @@ yaw-mcp completion <bash|zsh|fish|powershell> # print a shell-completion scrip
133
123
  **Compliance**
134
124
 
135
125
  ```bash
136
- yaw-mcp compliance <target> [--publish] # run the 88-test compliance suite; --publish posts the report + prints a URL
137
- yaw-mcp audit <namespace> # audit a stdio server from bundles.json, cache its A-F grade in grades.json
126
+ yaw-mcp compliance <target> # run the 88-test compliance suite against a server
127
+ yaw-mcp audit <namespace> # audit a stdio server from bundles.json, cache its A-F grade in grades.json
138
128
  ```
139
129
 
140
130
  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`.
141
131
 
142
- ## Adding servers on the dashboard
143
-
144
- On [yaw.sh/mcp](https://yaw.sh/mcp), each server has a **name**, **namespace** (tool prefix, e.g. `gh` -> `gh_create_issue`), **type** (`local` stdio or `remote` HTTP), **command + args** (local) or **URL** (remote), and an **env** block for API keys. Credentials are encrypted at rest and injected at spawn time -- they never sit in a client config.
145
-
146
132
  ## Configuration -- `.yaw-mcp/`
147
133
 
148
134
  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:
149
135
 
150
- | Scope | Path | Token allowed? |
151
- |-------|------|----------------|
152
- | **local** | `<project>/.yaw-mcp/config.local.json` | Yes -- machine-local, gitignore it. |
153
- | **project** | `<project>/.yaw-mcp/config.json` | No -- shared via git (warned; it would be committed). |
154
- | **global** | `~/.yaw-mcp/config.json` | Yes -- personal default for every project. |
136
+ | Scope | Path | Use |
137
+ |-------|------|-----|
138
+ | **local** | `<project>/.yaw-mcp/config.local.json` | Machine-local overrides; gitignore it. |
139
+ | **project** | `<project>/.yaw-mcp/config.json` | Shared via git with the repo. |
140
+ | **global** | `~/.yaw-mcp/config.json` | Personal default for every project. |
155
141
 
156
142
  The project `.yaw-mcp/` is found by walking up from the cwd, stopping just before `$HOME` so a `.yaw-mcp/` at `$HOME` is treated as global only. Files may contain `//` and `/* */` comments. Full schema:
157
143
 
158
144
  ```jsonc
159
145
  {
160
146
  "version": 1, // schema version; newer versions log a warning
161
- "token": "mcp_pat_...", // yaw.sh/mcp token; env YAW_MCP_TOKEN wins
162
- "apiBase": "https://yaw.sh/mcp", // backend override; env YAW_MCP_URL wins
163
147
  "servers": ["gh", "pg", "linear"], // allow-list of namespaces (most-specific scope wins)
164
148
  "blocked": ["prod-db"] // deny-list (UNION across all scopes -- fail-safe on deny)
165
149
  }
166
150
  ```
167
151
 
168
- Resolution: **token** = `YAW_MCP_TOKEN` env > local > global (project token ignored + warned). **apiBase** = `YAW_MCP_URL` env > local > project > global. Malformed files log a warning and fall through (fail-open). On POSIX, yaw-mcp warns if a token file is group/other-readable (`chmod 600` to silence). yaw-mcp reads config at startup, so restart the client after editing; `mcp_connect_health` shows which files are applied.
152
+ Malformed files log a warning and fall through (fail-open). yaw-mcp reads config at startup, so restart the client after editing; `mcp_connect_health` shows which files are applied.
169
153
 
170
154
  ### Project guide -- `YAW-MCP.md`
171
155
 
172
156
  Drop a `YAW-MCP.md` next to `config.json` in either `.yaw-mcp/` and yaw-mcp surfaces it via a `yaw-mcp://guide` MCP resource. The `discover`/`dispatch` descriptions tell the model to read it first, so project routing conventions ("use the `gh` server, not bash") and credential guidance stick without restating them each session. A user guide (`~/.yaw-mcp/YAW-MCP.md`) and a project guide are concatenated with the project one last; a missing file is skipped silently.
173
157
 
174
- ## Local secret vault (no account)
158
+ ## Local secret vault
175
159
 
176
- Besides pasting credentials into the dashboard, you can keep a value in an encrypted file on your own machine and reference it from any server's `env` with a `${secret:NAME}` placeholder:
160
+ Rather than putting credentials in a client config, keep a value in an encrypted file on your own machine and reference it from any server's `env` with a `${secret:NAME}` placeholder:
177
161
 
178
162
  ```jsonc
179
163
  "env": {
@@ -200,7 +184,7 @@ The passphrase derives the key via scrypt and is cached in memory for one proces
200
184
 
201
185
  ## Runtime detection & `uv` bootstrap
202
186
 
203
- On startup yaw-mcp probes for `node`, `npx`, `python`, `uvx`, and `docker` (best-effort, 3s per probe) and reports the snapshot to the dashboard, which warns before you add a server whose runtime is missing. yaw-mcp itself needs only Node.js.
187
+ On startup yaw-mcp probes for `node`, `npx`, `python`, `uvx`, and `docker` (best-effort, 3s per probe) so it can warn when a server's runtime is missing. yaw-mcp itself needs only Node.js.
204
188
 
205
189
  Python servers (`sqlite`, `time`, `sentry`, ...) launch via Astral's `uv`/`uvx`. On first encounter, if `uv` isn't on your PATH, yaw-mcp downloads Astral's standalone release, verifies the sha256, and caches it -- reusing your own `uv` if you have one. `uvx ARGS` is always rewritten to `uv tool run ARGS`, so only `uv` needs to be reachable.
206
190
 
@@ -208,19 +192,17 @@ Python servers (`sqlite`, `time`, `sentry`, ...) launch via Astral's `uv`/`uvx`.
208
192
 
209
193
  MCP servers are third-party code you choose to run. yaw-mcp doesn't sandbox them -- that's your OS and network. What it gives you is **visibility and a gate**:
210
194
 
211
- - **Compliance grades (A-F)** -- the `@yawlabs/mcp-compliance` suite (88 tests) grades a server; `servers` and `discover` show it inline (`github [ready] [A]`). `YAW_MCP_MIN_COMPLIANCE=B` makes `activate` refuse anything below the floor. Ungraded servers pass (don't punish unknown); audit them yourself with `yaw-mcp compliance <target>`.
212
- - **Source transparency** -- `servers` and the dashboard show the exact `command`, `args`, and `url` each server launches with. Nothing is wrapped.
213
- - **Encrypted credentials** -- dashboard `env` values are encrypted at rest and injected at spawn; never logged. Revoke the token and every install loses access on the next poll.
195
+ - **Compliance grades (A-F)** -- the `@yawlabs/mcp-compliance` suite (88 tests) grades a server; `yaw-mcp list` shows it in a `GRADE` column and `discover` shows it inline (`github [ready] [A]`). `YAW_MCP_MIN_COMPLIANCE=B` makes `activate` refuse anything below the floor. Ungraded servers pass (don't punish unknown); audit them yourself with `yaw-mcp compliance <target>`.
196
+ - **Source transparency** -- `list` and `discover` show the exact `command`, `args`, and `url` each server launches with. Nothing is wrapped.
197
+ - **Local credentials** -- vault values are encrypted at rest (scrypt + AES-256-GCM), injected at spawn, and never logged. Nothing is transmitted off the machine.
214
198
  - **Response pruning** (`YAW_MCP_PRUNE_RESPONSES`, on by default) -- redacts large file-blob content before it reaches the model, cutting the easiest cross-server prompt-injection vector.
215
199
  - **Namespace isolation** -- tools are namespace-prefixed (`gh_create_issue`, never bare `create_issue`), so a server can't impersonate another's tools. `mcp_connect_read_tool` inspects a schema before any code runs.
216
200
 
217
201
  yaw-mcp does **not** block outbound traffic, firewall DNS, analyze source, or pin hashes -- a malicious server you chose to run can reach any URL your machine can. Review the command before adding a server, run untrusted ones under a restricted user or container, and prefer graded servers when alternatives are equivalent. Report a security issue in yaw-mcp itself via [GitHub private advisories](https://github.com/YawLabs/mcp/security/advisories/new) (see [`SECURITY.md`](./SECURITY.md)).
218
202
 
219
- ## Config sync
203
+ ## Missing credentials
220
204
 
221
- yaw-mcp polls the dashboard every 60s (configurable), so adding, removing, or editing a server there takes effect with no restart. Because every install with the same token reads the same account, all your machines see the same servers, env vars, and credentials -- rotate in one place, every device picks it up on the next poll; revoke the token and every install stops immediately. That's why `~/.yaw-mcp/config.json` holds a token, not a server list.
222
-
223
- Missing credentials are handled inline where supported: if a server exits with something like `GITHUB_TOKEN is required` and your client advertises MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), yaw-mcp prompts for the value and retries. Load failures end with a `-> Edit at https://yaw.sh/mcp/...#server-<id>` deep link that most clients render as a click-through to the right dashboard card.
205
+ If a server exits with something like `GITHUB_TOKEN is required` and your client advertises MCP [elicitation](https://modelcontextprotocol.io/specification/server/elicitation), yaw-mcp prompts for the value and retries, rather than failing the call outright.
224
206
 
225
207
  ## Environment variables
226
208
 
@@ -228,9 +210,6 @@ Common ones (run `yaw-mcp --help` for the full list):
228
210
 
229
211
  | Variable | Description |
230
212
  |----------|-------------|
231
- | `YAW_MCP_TOKEN` | API token (overrides every config file). |
232
- | `YAW_MCP_URL` | API base URL (default `https://yaw.sh/mcp`). |
233
- | `YAW_MCP_POLL_INTERVAL` | Dashboard poll interval, seconds. `0` fetches once at startup. Default `60`. |
234
213
  | `YAW_MCP_SERVER_CAP` | Max concurrently active servers. Default `6`; `0` disables the cap. |
235
214
  | `YAW_MCP_MIN_COMPLIANCE` | Minimum grade (`A`-`F`) an installed server must report before `activate` loads it. |
236
215
  | `YAW_MCP_VAULT_PASSPHRASE` | Passphrase for the local secret vault. Required for spawn-time `${secret:NAME}` substitution. |
@@ -244,11 +223,17 @@ Common ones (run `yaw-mcp --help` for the full list):
244
223
  ## Requirements
245
224
 
246
225
  - Node.js 18.17+.
247
- - No account required for core features. A token from [yaw.sh/mcp](https://yaw.sh/mcp) unlocks dashboard-managed servers and cross-machine sync.
226
+ - No account. Everything runs locally.
227
+
228
+ ## License
229
+
230
+ Source-available, not open source. Copyright (c) 2026 Yaw Labs, all rights reserved.
231
+
232
+ The source is published so you can read and audit it before running it -- `yaw-mcp` spawns processes on your machine and handles your credentials, and you should not have to take that on faith. You may use it freely, personally or commercially, and redistribute unmodified copies. You may not offer it to third parties as a competing product. See [LICENSE](./LICENSE) for the terms, and [CONTRIBUTING.md](./CONTRIBUTING.md) for the DCO sign-off contributors use.
248
233
 
249
234
  ## Links
250
235
 
251
- - [yaw.sh/mcp](https://yaw.sh/mcp) -- dashboard and server management
236
+ - [yaw.sh/mcp/catalog](https://yaw.sh/mcp/catalog/) -- browse the server catalog
252
237
  - [@yawlabs/mcp-compliance](https://www.npmjs.com/package/@yawlabs/mcp-compliance) -- test your MCP servers for spec compliance
253
238
  - [CHANGELOG](./CHANGELOG.md) -- release notes
254
239
  - [GitHub](https://github.com/YawLabs/mcp) -- source and issues