@yawlabs/mcp 1.1.6 → 1.1.8
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
|
@@ -4,6 +4,40 @@ All notable changes to `@yawlabs/mcp` (formerly `@yawlabs/mcph`) are documented
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
**Changed -- routing picks the right server and tool more often for plain-English requests**
|
|
8
|
+
|
|
9
|
+
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%.
|
|
10
|
+
|
|
11
|
+
**Changed -- `discover` auto-loads a server only when the request clearly matches it**
|
|
12
|
+
|
|
13
|
+
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
|
+
|
|
15
|
+
**Added -- dispatch falls back to a close runner-up when its pick fails to start**
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
**Added -- dispatch replies list the matching tools' arguments, and `exec` checks arguments before calling**
|
|
20
|
+
|
|
21
|
+
After loading a server, dispatch lists its best-matching tools with their required and optional arguments. `exec` now refuses a call that is missing a required argument, or that passes a key the tool's schema forbids, and names the expected arguments (for example `package` -> `name`), instead of forwarding the call.
|
|
22
|
+
|
|
23
|
+
**Added -- GitHub, Terraform and Vault tools are searchable before their server has ever started**
|
|
24
|
+
|
|
25
|
+
`find_tool` and dispatch now rank tools for these three servers from tool lists bundled from their upstream releases (github-mcp-server v2.1.0, terraform-mcp-server v1.4.1, vault-mcp-server v0.2.0), which helps when their docker image cannot start. The server's real tool list replaces the bundled one once it has loaded. `find_tool` also names matching servers whose tools are still unknown.
|
|
26
|
+
|
|
27
|
+
**Changed -- dispatch's description names the installed servers**
|
|
28
|
+
|
|
29
|
+
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
|
+
|
|
31
|
+
## 1.1.7 -- a server Windows will not start is named with its likely cause, instead of a bare `spawn UNKNOWN`
|
|
32
|
+
|
|
33
|
+
**Fixed -- a server whose executable Windows will not run is named, with the likely cause, instead of a bare `spawn UNKNOWN`**
|
|
34
|
+
|
|
35
|
+
A local server whose binary exists but cannot be started -- built for another CPU architecture (an ARM32 exe on Windows ARM64), empty, truncated, or not a program at all -- failed activation with `spawn UNKNOWN` or `spawn EFTYPE` and nothing else: no file name, no cause, because the spawn error carries neither. It now says which command could not be started and why that usually happens, and names the rewritten binary when a uv or oam rewrite was the one that failed. When yaw-mcp itself runs on oam 0.19.2 or later, the Win32 code oam attaches (`winError`) is included, and 216 (`ERROR_EXE_MACHINE_TYPE_MISMATCH`) is called out by name. These failures are now in the `spawn_failure` category rather than `unknown`.
|
|
36
|
+
|
|
37
|
+
**Changed -- the `MCP_CONNECT_TIMEOUT` docs no longer name oam on Windows as a runtime that reports no CPU load**
|
|
38
|
+
|
|
39
|
+
oam before 0.19.2 reported every `os.cpus()` time as 0 on every platform, not only Windows; 0.19.2 reports real counters, so yaw-mcp running on it reads the machine load as it does on node. The handshake extension for unknown load is unchanged. The oam floor stays at 0.19.1.
|
|
40
|
+
|
|
7
41
|
## 1.1.6 -- `install gemini-cli` says Gemini CLI starts no server in an untrusted folder, and the client matrix passes on macOS and Linux
|
|
8
42
|
|
|
9
43
|
**Changed -- `install gemini-cli` says Gemini CLI starts no server in an untrusted folder**
|
package/README.md
CHANGED
|
@@ -430,7 +430,7 @@ Common ones (run `yaw-mcp --help` for the full list):
|
|
|
430
430
|
| `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. |
|
|
431
431
|
| `YAW_MCP_TOOL_TOKEN_CAP` | Ceiling on the estimated tokens of the whole loaded tool surface, checked alongside `YAW_MCP_SERVER_CAP` when a server is activated. The server cap counts servers, which says nothing about their size: six 3-tool servers and six 60-tool servers both sit at a cap of `6`. Default off. |
|
|
432
432
|
| `YAW_MCP_TOOL_EXPOSURE` | How much of the catalog `tools/list` advertises. `gateway`: the meta-tools plus the servers loaded this session. `lite`: only `mcp_connect_exec` / `find_tool` / `read_tool` plus the loaded servers, for a client that inlines every listed tool into every request; the other meta-tools stay callable by name. `full`: the pre-gateway surface, with a placeholder for every cached-but-unloaded tool. Unset, yaw-mcp picks `lite` when the client's MCP `clientInfo.name` is `typed-cli` and `gateway` otherwise; a set value always wins over that. Re-read on every `tools/list`, so a change lands without a restart. An unrecognised value logs a warning once and falls back to the client default. |
|
|
433
|
-
| `MCP_CONNECT_TIMEOUT` | Milliseconds to wait for a server's MCP handshake. Default `15000`; a server's own `connectTimeoutMs` in `bundles.json` always wins. Whole milliseconds in `1..2147483647` -- anything else falls back to the default with one warn. When the machine is saturated (CPU at least 50% busy over the wait) and the local child is still running at the deadline, it gets the same deadline once more -- at most twice the value in all (a runtime that reports no CPU load, such as oam
|
|
433
|
+
| `MCP_CONNECT_TIMEOUT` | Milliseconds to wait for a server's MCP handshake. Default `15000`; a server's own `connectTimeoutMs` in `bundles.json` always wins. Whole milliseconds in `1..2147483647` -- anything else falls back to the default with one warn. When the machine is saturated (CPU at least 50% busy over the wait) and the local child is still running at the deadline, it gets the same deadline once more -- at most twice the value in all (a runtime that reports no CPU load, such as oam before 0.19.2, counts as busy); a per-server `connectTimeoutMs` is never extended. |
|
|
434
434
|
| `MCP_LIST_TIMEOUT` | Milliseconds to wait for a server's tool/resource/prompt inventory calls after the handshake. Default `15000`; same `1..2147483647` whole-millisecond parse, invalid values fall back with one warn. |
|
|
435
435
|
| `MCP_CALL_TIMEOUT` | Milliseconds to wait for a single proxied `tools/call`. Default `60000` (the SDK's own bound); raise it for legitimately slow servers. Same `1..2147483647` whole-millisecond parse, invalid values fall back with one warn. |
|
|
436
436
|
| `YAW_MCP_IDLE_THRESHOLD` | Non-matching tool calls a loaded server tolerates before it is unloaded. Default `10`; bursty servers earn more patience automatically. The older name `MCP_CONNECT_IDLE_THRESHOLD` still works as a fallback. |
|
|
@@ -5785,17 +5785,17 @@ async function oamFloorLines(probe) {
|
|
|
5785
5785
|
}
|
|
5786
5786
|
async function defaultRunningPrefix(argvPath) {
|
|
5787
5787
|
if (isTestSandbox()) return null;
|
|
5788
|
-
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-
|
|
5788
|
+
const { detectRunningInstallPrefix: detectRunningInstallPrefix2 } = await import("./auto-upgrade-QLY5Y4ZM.js");
|
|
5789
5789
|
return detectRunningInstallPrefix2(argvPath);
|
|
5790
5790
|
}
|
|
5791
5791
|
async function defaultAcquireLock(prefixDir) {
|
|
5792
5792
|
if (isTestSandbox()) return () => {
|
|
5793
5793
|
};
|
|
5794
|
-
const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-
|
|
5794
|
+
const { acquireUpgradeLock: acquireUpgradeLock2 } = await import("./auto-upgrade-QLY5Y4ZM.js");
|
|
5795
5795
|
return acquireUpgradeLock2(prefixDir);
|
|
5796
5796
|
}
|
|
5797
5797
|
async function upgradeLockPath(prefixDir) {
|
|
5798
|
-
const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-
|
|
5798
|
+
const { UPGRADE_LOCK_NAME: UPGRADE_LOCK_NAME2 } = await import("./auto-upgrade-QLY5Y4ZM.js");
|
|
5799
5799
|
return join11(prefixDir, UPGRADE_LOCK_NAME2);
|
|
5800
5800
|
}
|
|
5801
5801
|
async function defaultSpawn(cmd, args, cwd) {
|
|
@@ -5858,7 +5858,7 @@ async function runUpgrade(opts = {}) {
|
|
|
5858
5858
|
if (method === "global-npm") {
|
|
5859
5859
|
rawPrefix = await (opts.runningPrefix ?? defaultRunningPrefix)(argvPath);
|
|
5860
5860
|
if (rawPrefix !== null) {
|
|
5861
|
-
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-
|
|
5861
|
+
const { quoteArgForDisplay: quoteArgForDisplay2, quoteShellArgIfNeeded: quoteShellArgIfNeeded2 } = await import("./auto-upgrade-QLY5Y4ZM.js");
|
|
5862
5862
|
const spawnForm = quoteShellArgIfNeeded2(rawPrefix, opts.platform);
|
|
5863
5863
|
const displayForm = quoteArgForDisplay2(rawPrefix, opts.platform);
|
|
5864
5864
|
if (spawnForm !== null && displayForm !== null) {
|
|
@@ -5990,7 +5990,7 @@ async function runUpgrade(opts = {}) {
|
|
|
5990
5990
|
return { exitCode: 3, lines };
|
|
5991
5991
|
}
|
|
5992
5992
|
function readCurrentVersion() {
|
|
5993
|
-
return true ? "1.1.
|
|
5993
|
+
return true ? "1.1.8" : "dev";
|
|
5994
5994
|
}
|
|
5995
5995
|
|
|
5996
5996
|
// src/auto-upgrade.ts
|
|
@@ -6282,7 +6282,7 @@ function defaultSpawn2(cmd, args, onDone = () => {
|
|
|
6282
6282
|
}
|
|
6283
6283
|
async function maybeAutoUpgrade(deps = {}) {
|
|
6284
6284
|
if (isFeatureDisabled("YAW_MCP_AUTO_UPGRADE")) return;
|
|
6285
|
-
const current = deps.currentVersion ?? (true ? "1.1.
|
|
6285
|
+
const current = deps.currentVersion ?? (true ? "1.1.8" : "dev");
|
|
6286
6286
|
if (current === "dev") return;
|
|
6287
6287
|
const argvPath = deps.argvPath ?? process.argv[1];
|
|
6288
6288
|
let method = (deps.isSeaImpl ? await deps.isSeaImpl() : await detectSea()) ? "binary" : detectInstallMethod(argvPath, realpathSync3, ["unknown", "local-node-modules"]);
|