@leadbay/mcp 0.23.6 → 0.23.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 +14 -0
- package/README.md +34 -12
- package/dist/bin.js +173 -47
- package/dist/http-server.js +173 -47
- package/dist/installer-electron.js +259 -208
- package/dist/installer-gui.js +30 -34
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog — @leadbay/mcp
|
|
2
2
|
|
|
3
|
+
## 0.23.8 — 2026-06-26
|
|
4
|
+
|
|
5
|
+
Installer no longer hangs in Claude Cowork / headless terminals (product#3805).
|
|
6
|
+
|
|
7
|
+
- **`installer`** — the guided installer awaited a detached browser-opener that resolved only on the child's `close` event, which a detached process often never emits; with no overall timeout the process dangled until the host (Claude Cowork) killed it ("running… then timeout", intermittently). It now reuses the hardened `openInBrowser` (resolves on `spawn`, not `close`), no longer blocks GUI startup on the browser open, and bounds the run with a watchdog that exits cleanly with hosted-MCP instructions instead of hanging. The installer always tries to open the browser — it never guesses "headless" and refuses to start.
|
|
8
|
+
- **Docs** — README documents adding Leadbay on **Claude web / Cowork web** as a custom Connector (`Customize → Connectors → Add custom connector`, URL `https://leadbay-mcp-prod.fly.dev/mcp`; OAuth runs in-app), and the `claude mcp add --transport http` equivalent. Stale `@0.16` install snippets corrected to `@latest`.
|
|
9
|
+
|
|
10
|
+
## 0.23.7 — 2026-06-25
|
|
11
|
+
|
|
12
|
+
Field-sales tour always renders the map (product#3779).
|
|
13
|
+
|
|
14
|
+
- **`leadbay_plan_tour_in_city` / `leadbay_tour_plan`** — a plain-language tour intent ("I'm visiting Jacksonville in 3 days — who should I go see?") now deterministically routes to the tour tool (no longer leaks to `leadbay_pull_leads`), builds the mixed tour (known accounts + fresh prospects), and **proactively offers to plot it on a map** — every run, without the user asking. On acceptance it renders via `places_map_display_v0` (or the place-card carousel on hosts without the widget).
|
|
15
|
+
- **Server-shaped `map_locations[]`** — leads are pre-shaped server-side (`{name, address, latitude, longitude, notes}`, badge in `notes`) plus a `map_summary`, so the agent never hand-builds the widget payload and passes coordinates through verbatim (no fabricated pins/addresses). Each stop is badged ★ Customer / ★ Qualified / ✦ New from real history fields (`epilogue_status` / `last_prospecting_action_at` / `last_monitor_action_at`). Guards against a `"null"`-string contact name.
|
|
16
|
+
|
|
3
17
|
## 0.23.6 — 2026-06-25
|
|
4
18
|
|
|
5
19
|
Geographic filter on Discover lenses (product#3759).
|
package/README.md
CHANGED
|
@@ -59,6 +59,28 @@ On Linux, use the terminal-only path instead (no desktop installer window):
|
|
|
59
59
|
npx -y @leadbay/mcp@latest install --oauth
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
### Claude web / Cowork on the web (no terminal)
|
|
63
|
+
|
|
64
|
+
On the web there's no terminal, so `npx … installer` doesn't apply — add
|
|
65
|
+
Leadbay as a **custom Connector** instead. Claude connects to the hosted MCP
|
|
66
|
+
from Anthropic's cloud and runs the OAuth sign-in in-app (no localhost
|
|
67
|
+
callback, no client id/secret to fill in):
|
|
68
|
+
|
|
69
|
+
1. **Customize → Connectors → "+" → Add custom connector**
|
|
70
|
+
2. **Name:** `Leadbay` · **URL:** `https://leadbay-mcp-prod.fly.dev/mcp`
|
|
71
|
+
3. **Add**, then complete the Leadbay sign-in prompt.
|
|
72
|
+
|
|
73
|
+
The same hosted URL works from a terminal that has the Claude Code CLI:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
claude mcp add --transport http leadbay https://leadbay-mcp-prod.fly.dev/mcp
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
In **Claude Cowork with a terminal**, the guided `installer` works as usual —
|
|
80
|
+
it opens your browser for sign-in and configures the detected clients. If the
|
|
81
|
+
browser never opens, the installer no longer hangs: it exits after a short
|
|
82
|
+
watchdog with the Connector / `claude mcp add` instructions above.
|
|
83
|
+
|
|
62
84
|
From a repo checkout, run the same native installer with:
|
|
63
85
|
|
|
64
86
|
```bash
|
|
@@ -139,7 +161,7 @@ You can verify the skills installed by running `/skill list` after install. To u
|
|
|
139
161
|
|
|
140
162
|
### Claude Desktop
|
|
141
163
|
|
|
142
|
-
The guided installer writes the local `mcpServers.leadbay` entry in `claude_desktop_config.json` with `npx -y @leadbay/mcp@
|
|
164
|
+
The guided installer writes the local `mcpServers.leadbay` entry in `claude_desktop_config.json` with `npx -y @leadbay/mcp@latest`, like the Linux flow. Restart Claude Desktop after install.
|
|
143
165
|
|
|
144
166
|
The `.dxt` / `.mcpb` bundle from [Releases](https://github.com/leadbay/leadclaw/releases/latest) remains available as an alternative install path.
|
|
145
167
|
|
|
@@ -147,14 +169,14 @@ The `.dxt` / `.mcpb` bundle from [Releases](https://github.com/leadbay/leadclaw/
|
|
|
147
169
|
|
|
148
170
|
If you installed Node from the official [nodejs.org](https://nodejs.org) `.pkg`, `/usr/local/lib/node_modules` is root-owned. Any of these works:
|
|
149
171
|
|
|
150
|
-
- **Use `npx` (recommended, no global install):** all examples above use `npx -y @leadbay/mcp@
|
|
172
|
+
- **Use `npx` (recommended, no global install):** all examples above use `npx -y @leadbay/mcp@latest ...` — no global install needed.
|
|
151
173
|
- **`sudo npm install -g @leadbay/mcp`** (enter your macOS password).
|
|
152
174
|
- **Use a Node version manager** — [nvm](https://github.com/nvm-sh/nvm), [volta](https://volta.sh), [fnm](https://github.com/Schniz/fnm). They install Node under your home directory, so `npm install -g` works without sudo.
|
|
153
175
|
|
|
154
176
|
### If you'd rather authenticate without auto-install
|
|
155
177
|
|
|
156
178
|
```bash
|
|
157
|
-
npx -y @leadbay/mcp@
|
|
179
|
+
npx -y @leadbay/mcp@latest login --oauth
|
|
158
180
|
```
|
|
159
181
|
|
|
160
182
|
Default writes a `0600`-mode JSON file at the platform-correct credentials path (`$XDG_CONFIG_HOME/leadbay/credentials.json` on Linux, `~/Library/Application Support/leadbay/credentials.json` on macOS, `%APPDATA%\leadbay\credentials.json` on Windows). Pass `--write-config /some/path.json` to override the path. Pass `--force` to overwrite an existing file from a different account. The legacy email/password path still exists for scripts that cannot use a browser.
|
|
@@ -220,7 +242,7 @@ That is convenient for quick tests, but less safe for production because the dep
|
|
|
220
242
|
## 3. Quickstart
|
|
221
243
|
|
|
222
244
|
Prefer the installer in [§1](#1-install). If you need to hand-write config,
|
|
223
|
-
first authenticate with `npx -y @leadbay/mcp@
|
|
245
|
+
first authenticate with `npx -y @leadbay/mcp@latest login --oauth`, then copy the
|
|
224
246
|
`LEADBAY_TOKEN` and `LEADBAY_REGION` values from the credentials file it writes.
|
|
225
247
|
|
|
226
248
|
### Claude Desktop
|
|
@@ -232,7 +254,7 @@ Edit `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) o
|
|
|
232
254
|
"mcpServers": {
|
|
233
255
|
"leadbay": {
|
|
234
256
|
"command": "npx",
|
|
235
|
-
"args": ["-y", "@leadbay/mcp@
|
|
257
|
+
"args": ["-y", "@leadbay/mcp@latest"],
|
|
236
258
|
"env": {
|
|
237
259
|
"LEADBAY_TOKEN": "<paste-oauth-token>",
|
|
238
260
|
"LEADBAY_REGION": "us"
|
|
@@ -253,7 +275,7 @@ In Cursor settings, add the MCP server:
|
|
|
253
275
|
"mcp.servers": {
|
|
254
276
|
"leadbay": {
|
|
255
277
|
"command": "npx",
|
|
256
|
-
"args": ["-y", "@leadbay/mcp@
|
|
278
|
+
"args": ["-y", "@leadbay/mcp@latest"],
|
|
257
279
|
"env": { "LEADBAY_TOKEN": "<paste-oauth-token>", "LEADBAY_REGION": "us" }
|
|
258
280
|
}
|
|
259
281
|
}
|
|
@@ -266,7 +288,7 @@ In Cursor settings, add the MCP server:
|
|
|
266
288
|
claude mcp add leadbay --scope user \
|
|
267
289
|
--env LEADBAY_TOKEN=<paste-oauth-token> \
|
|
268
290
|
--env LEADBAY_REGION=us \
|
|
269
|
-
-- npx -y @leadbay/mcp@
|
|
291
|
+
-- npx -y @leadbay/mcp@latest
|
|
270
292
|
```
|
|
271
293
|
|
|
272
294
|
> **`--scope user`** registers Leadbay globally for your account (visible from any project). Without it, `claude mcp add` defaults to project-local scope and the server only appears in conversations opened from the directory where you ran the command.
|
|
@@ -278,7 +300,7 @@ claude mcp add leadbay --scope user \
|
|
|
278
300
|
Before starting Claude, run:
|
|
279
301
|
|
|
280
302
|
```bash
|
|
281
|
-
LEADBAY_TOKEN=<paste-oauth-token> npx -y @leadbay/mcp@
|
|
303
|
+
LEADBAY_TOKEN=<paste-oauth-token> npx -y @leadbay/mcp@latest doctor
|
|
282
304
|
```
|
|
283
305
|
|
|
284
306
|
Expected output:
|
|
@@ -524,14 +546,14 @@ The user's literal text replaces `verification.ref` in the outreach record, and
|
|
|
524
546
|
| `No enrichment credits remaining` | Out of quota | Contact Leadbay support to extend quota |
|
|
525
547
|
| Claude Desktop "loading forever" on first use | `npx` cold-start fetching the package | First run takes ~10s. Prefer `npm install -g @leadbay/mcp` for faster startup. |
|
|
526
548
|
| Claude Desktop doesn't show Leadbay tools | Server crashed at startup | Check `~/Library/Logs/Claude/mcp*.log` (macOS) or `%APPDATA%\Claude\logs\mcp*.log` (Windows). |
|
|
527
|
-
| Claude Code can't find Leadbay in a new conversation | MCP server installed at project scope (default before 0.3.0) | Re-run with `--scope user`: `claude mcp remove leadbay && claude mcp add leadbay --scope user --env LEADBAY_TOKEN=… --env LEADBAY_REGION=us -- npx -y @leadbay/mcp@
|
|
549
|
+
| Claude Code can't find Leadbay in a new conversation | MCP server installed at project scope (default before 0.3.0) | Re-run with `--scope user`: `claude mcp remove leadbay && claude mcp add leadbay --scope user --env LEADBAY_TOKEN=… --env LEADBAY_REGION=us -- npx -y @leadbay/mcp@latest` |
|
|
528
550
|
| Agent reports "tool not found" for `refine_prompt` / `adjust_audience` etc. | Pre-0.3.0 install with `LEADBAY_MCP_WRITE` unset (writes were off) | Either re-run `npx @leadbay/mcp install` or remove `LEADBAY_MCP_WRITE=0` from your client config (writes are on by default in 0.3.0+) |
|
|
529
551
|
|
|
530
552
|
## 7. Upgrade & rotation
|
|
531
553
|
|
|
532
|
-
**Upgrade**:
|
|
554
|
+
**Upgrade**: the guided installer pins `@leadbay/mcp@latest`, so each MCP session already picks up the newest published version — just restart the client. (If you hand-pinned a specific version in your config, change it to `@latest` or the version you want, then restart.) **0.3.0 enables composite write tools by default** — see [MIGRATION.md](./MIGRATION.md). See also the [changelog](https://github.com/leadbay/leadclaw/releases).
|
|
533
555
|
|
|
534
|
-
**Rotate local credential**: re-run `npx -y @leadbay/mcp@
|
|
556
|
+
**Rotate local credential**: re-run `npx -y @leadbay/mcp@latest install --oauth` (or `login --oauth`) — the new credential replaces the old one in your MCP client config.
|
|
535
557
|
|
|
536
558
|
## 8. Advanced
|
|
537
559
|
|
|
@@ -684,7 +706,7 @@ After your first authenticated call, your PostHog `distinctId` is set to your Le
|
|
|
684
706
|
"mcpServers": {
|
|
685
707
|
"leadbay": {
|
|
686
708
|
"command": "npx",
|
|
687
|
-
"args": ["-y", "@leadbay/mcp@
|
|
709
|
+
"args": ["-y", "@leadbay/mcp@latest"],
|
|
688
710
|
"env": {
|
|
689
711
|
"LEADBAY_TOKEN": "u.…",
|
|
690
712
|
"LEADBAY_REGION": "us",
|