@leadbay/mcp 0.23.11 → 0.23.13

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
@@ -1,5 +1,17 @@
1
1
  # Changelog — @leadbay/mcp
2
2
 
3
+ ## 0.23.13 — 2026-07-03
4
+
5
+ Directory-submission schema fix.
6
+
7
+ - **`leadbay_import_and_qualify` `dry_run` param** now declares a JSON-Schema type (`["boolean","string"]` + `enum [true,false,"preview"]`). It previously carried only a description, so connector-directory validators (ChatGPT Apps SDK / Anthropic) rejected it with "Parameters missing type: dry_run". No behavior change — those were already the only accepted values. Introspection confirmed `dry_run` was the only untyped input property across all tools.
8
+
9
+ ## 0.23.12 — 2026-07-03
10
+
11
+ Claude Code install no longer fails with `unknown option '--scope'` / `--env` (product#3847).
12
+
13
+ - **`buildClaudeCodeAddArgs` (installer)** — the `claude mcp add` command built its subprocess tail with a `-p` **short** flag (`-- npx -y -p @leadbay/mcp@latest leadbay-mcp`). Even after the `--` separator, `-p` leaks back into Claude Code's own Commander parser on current CLIs, which then rejects an *earlier* option (`--scope`, or `--env`) with a misleading `unknown option` error — so the install aborted with exit 1. The tail now uses the `=`-joined long form `-- npx -y --package=@leadbay/mcp@latest leadbay-mcp`: the package spec must stay flagged and the `leadbay-mcp` bin named explicitly (the package declares several bins and none is `mcp`, so a bare `npx -y @leadbay/mcp@latest` would die at launch with `could not determine executable to run`), while `--package=…` is left untouched by Claude Code's parser. Verified live against `claude 2.1.199`: install → registered, uninstall → removed.
14
+
3
15
  ## 0.23.11 — 2026-07-02
4
16
 
5
17
  Windows `.dxt` sign-in now opens the browser reliably (product#3839).
package/dist/bin.js CHANGED
@@ -18537,6 +18537,11 @@ var init_import_and_qualify = __esm({
18537
18537
  description: "Lens id (escape hatch \u2014 defaults to active)."
18538
18538
  },
18539
18539
  dry_run: {
18540
+ // Union type (boolean | "preview"): declare both JSON-Schema types so
18541
+ // directory validators don't flag a missing `type`. The enum pins the
18542
+ // only accepted string value.
18543
+ type: ["boolean", "string"],
18544
+ enum: [true, false, "preview"],
18540
18545
  description: "Optional. `true` runs preprocess only (no commit, no qualify). `'preview'` runs preprocess and returns the wizard's per-column AI mapping hints + sample rows + custom-field candidates from the org catalog so the agent can choose a mapping. Default: false (full flow)."
18541
18546
  },
18542
18547
  skip_already_qualified: {
@@ -26547,7 +26552,7 @@ function buildClaudeCodeAddArgs(token, region, includeWrite, telemetryEnabled, l
26547
26552
  if (localBinPath) {
26548
26553
  args.push("--", "node", localBinPath);
26549
26554
  } else {
26550
- args.push("--", "npx", "-y", "-p", "@leadbay/mcp@latest", "leadbay-mcp");
26555
+ args.push("--", "npx", "-y", "--package=@leadbay/mcp@latest", "leadbay-mcp");
26551
26556
  }
26552
26557
  return args;
26553
26558
  }
@@ -27807,7 +27812,7 @@ var OAUTH_BASE_URLS = {
27807
27812
  fr: "https://staging.api.leadbay.app"
27808
27813
  }
27809
27814
  };
27810
- var VERSION = "0.23.11";
27815
+ var VERSION = "0.23.13";
27811
27816
  var HELP = `
27812
27817
  leadbay-mcp ${VERSION} \u2014 Leadbay Model Context Protocol server
27813
27818
 
@@ -18924,6 +18924,11 @@ var importAndQualify = {
18924
18924
  description: "Lens id (escape hatch \u2014 defaults to active)."
18925
18925
  },
18926
18926
  dry_run: {
18927
+ // Union type (boolean | "preview"): declare both JSON-Schema types so
18928
+ // directory validators don't flag a missing `type`. The enum pins the
18929
+ // only accepted string value.
18930
+ type: ["boolean", "string"],
18931
+ enum: [true, false, "preview"],
18927
18932
  description: "Optional. `true` runs preprocess only (no commit, no qualify). `'preview'` runs preprocess and returns the wizard's per-column AI mapping hints + sample rows + custom-field candidates from the org catalog so the agent can choose a mapping. Default: false (full flow)."
18928
18933
  },
18929
18934
  skip_already_qualified: {
@@ -24062,7 +24067,7 @@ function parseWriteEnv(env = process.env) {
24062
24067
  }
24063
24068
 
24064
24069
  // src/http-server.ts
24065
- var VERSION = true ? "0.23.11" : "0.0.0-dev";
24070
+ var VERSION = true ? "0.23.13" : "0.0.0-dev";
24066
24071
  var PORT = Number(process.env.PORT ?? 8080);
24067
24072
  var HOST = process.env.HOST ?? "0.0.0.0";
24068
24073
  var sseSessions = /* @__PURE__ */ new Map();
@@ -209,7 +209,7 @@ function buildClaudeCodeAddArgs(token, region, includeWrite, telemetryEnabled, l
209
209
  if (localBinPath) {
210
210
  args.push("--", "node", localBinPath);
211
211
  } else {
212
- args.push("--", "npx", "-y", "-p", "@leadbay/mcp@latest", "leadbay-mcp");
212
+ args.push("--", "npx", "-y", "--package=@leadbay/mcp@latest", "leadbay-mcp");
213
213
  }
214
214
  return args;
215
215
  }
@@ -1804,7 +1804,7 @@ var init_installer_gui = __esm({
1804
1804
  init_install_dxt();
1805
1805
  init_install_shared();
1806
1806
  init_oauth();
1807
- VERSION = true ? "0.23.11" : "0.0.0-dev";
1807
+ VERSION = true ? "0.23.13" : "0.0.0-dev";
1808
1808
  MESSAGES = {
1809
1809
  en: {
1810
1810
  installer: {
@@ -26,7 +26,7 @@ function buildClaudeCodeAddArgs(token, region, includeWrite, telemetryEnabled, l
26
26
  if (localBinPath) {
27
27
  args.push("--", "node", localBinPath);
28
28
  } else {
29
- args.push("--", "npx", "-y", "-p", "@leadbay/mcp@latest", "leadbay-mcp");
29
+ args.push("--", "npx", "-y", "--package=@leadbay/mcp@latest", "leadbay-mcp");
30
30
  }
31
31
  return args;
32
32
  }
@@ -1067,7 +1067,7 @@ async function oauthLogin(opts) {
1067
1067
  }
1068
1068
 
1069
1069
  // installer/installer-gui.ts
1070
- var VERSION = true ? "0.23.11" : "0.0.0-dev";
1070
+ var VERSION = true ? "0.23.13" : "0.0.0-dev";
1071
1071
  var MESSAGES = {
1072
1072
  en: {
1073
1073
  installer: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leadbay/mcp",
3
- "version": "0.23.11",
3
+ "version": "0.23.13",
4
4
  "mcpName": "io.github.leadbay/leadbay-mcp",
5
5
  "description": "Model Context Protocol (MCP) server for Leadbay — AI lead discovery, qualification, and enrichment for Claude Desktop, Cursor, and Claude Code.",
6
6
  "type": "module",