@yawlabs/mcp 1.1.7 → 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,30 @@ 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
+
7
31
  ## 1.1.7 -- a server Windows will not start is named with its likely cause, instead of a bare `spawn UNKNOWN`
8
32
 
9
33
  **Fixed -- a server whose executable Windows will not run is named, with the likely cause, instead of a bare `spawn UNKNOWN`**
@@ -11,7 +11,7 @@ import {
11
11
  recordAttemptAt,
12
12
  runsUnderNpmConfigPrefix,
13
13
  writeCheckMemo
14
- } from "./chunk-TI26KSBV.js";
14
+ } from "./chunk-7C5YSE4J.js";
15
15
  export {
16
16
  UPGRADE_LOCK_NAME,
17
17
  acquireUpgradeLock,
@@ -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-7FG236LQ.js");
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-7FG236LQ.js");
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-7FG236LQ.js");
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-7FG236LQ.js");
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.7" : "dev";
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.7" : "dev");
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"]);