@leadbay/mcp 0.24.0 → 0.24.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 +18 -0
- package/README.md +19 -53
- package/dist/bin.js +177 -98
- package/dist/http-server.js +569 -104
- package/dist/installer-electron.js +2 -2
- package/dist/installer-gui.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog — @leadbay/mcp
|
|
2
2
|
|
|
3
|
+
## 0.24.2 — 2026-07-13
|
|
4
|
+
|
|
5
|
+
Release bump to publish a fresh hosted HTTP-server image carrying the 0.24.1
|
|
6
|
+
telemetry fix (the hosted `mcp.leadbay.app` endpoint deploys from the release
|
|
7
|
+
image, separately from npm). No code changes.
|
|
8
|
+
|
|
9
|
+
## 0.24.1 — 2026-07-10
|
|
10
|
+
|
|
11
|
+
Fix PostHog tool-call events silently dropped (product#3876). The hosted HTTP
|
|
12
|
+
server (`mcp.leadbay.app` — ChatGPT / Claude custom connectors) built its
|
|
13
|
+
per-request server without a telemetry handle, so every tool call over HTTP
|
|
14
|
+
produced zero events; only stdio logged. It now wires a process-level PostHog
|
|
15
|
+
client with per-request identity (correct multi-tenant attribution, no identity
|
|
16
|
+
latch), flushes on SIGTERM/SIGINT (Fly redeploys), and emits a startup event.
|
|
17
|
+
Also hardens the stdio path: `shutdown()` now flushes buffered events when
|
|
18
|
+
identity never resolved, and stdio uses `flushAt:1` so short sessions deliver
|
|
19
|
+
promptly.
|
|
20
|
+
|
|
3
21
|
## 0.24.0 — 2026-07-08
|
|
4
22
|
|
|
5
23
|
Enrichment stays active until done, then self-reports — no reprompt (product#3866).
|
package/README.md
CHANGED
|
@@ -67,13 +67,13 @@ from Anthropic's cloud and runs the OAuth sign-in in-app (no localhost
|
|
|
67
67
|
callback, no client id/secret to fill in):
|
|
68
68
|
|
|
69
69
|
1. **Customize → Connectors → "+" → Add custom connector**
|
|
70
|
-
2. **Name:** `Leadbay` · **URL:** `https://
|
|
70
|
+
2. **Name:** `Leadbay` · **URL:** `https://mcp.leadbay.app/mcp`
|
|
71
71
|
3. **Add**, then complete the Leadbay sign-in prompt.
|
|
72
72
|
|
|
73
73
|
The same hosted URL works from a terminal that has the Claude Code CLI:
|
|
74
74
|
|
|
75
75
|
```bash
|
|
76
|
-
claude mcp add --transport http leadbay https://
|
|
76
|
+
claude mcp add --transport http leadbay https://mcp.leadbay.app/mcp
|
|
77
77
|
```
|
|
78
78
|
|
|
79
79
|
In **Claude Cowork with a terminal**, the guided `installer` works as usual —
|
|
@@ -183,61 +183,27 @@ Default writes a `0600`-mode JSON file at the platform-correct credentials path
|
|
|
183
183
|
|
|
184
184
|
## 2. Updating the hosted MCP
|
|
185
185
|
|
|
186
|
-
The hosted MCP at `https://
|
|
186
|
+
The hosted MCP at `https://mcp.leadbay.app/mcp` runs self-hosted on the Leadbay
|
|
187
|
+
k3s cluster (`leadbay/infra`). Deploys are automatic and driven off release tags
|
|
188
|
+
— there is nothing to run by hand:
|
|
187
189
|
|
|
188
|
-
|
|
190
|
+
1. Bump `packages/mcp/package.json` in a normal PR and merge to `main`.
|
|
191
|
+
`auto-tag.yml` pushes the matching `mcp-v<ver>` tag.
|
|
192
|
+
2. `build-image.yml` builds this repo's `Dockerfile` and pushes the image to
|
|
193
|
+
Azure Container Registry as `leadbay.azurecr.io/mcp:<commit-sha>` (and
|
|
194
|
+
`:latest`).
|
|
195
|
+
3. Argo CD Image Updater in `leadbay/infra` watches for the new SHA-tagged image
|
|
196
|
+
and rolls the `mcp` workload automatically.
|
|
189
197
|
|
|
190
|
-
|
|
198
|
+
To confirm the live endpoint is serving the expected version:
|
|
191
199
|
|
|
192
200
|
```bash
|
|
193
|
-
|
|
201
|
+
curl https://mcp.leadbay.app/healthz
|
|
202
|
+
# {"ok":true,"version":"<published-version>"}
|
|
194
203
|
```
|
|
195
204
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
This is the current production path. Fly builds the repo `Dockerfile`, bundles `packages/mcp`, and starts `node dist/http-server.js`.
|
|
201
|
-
|
|
202
|
-
### Deploy from a published npm package
|
|
203
|
-
|
|
204
|
-
Use this when you want the remote MCP to run a package that has already been published to npm. Prefer pinning an exact version so production deploys are reproducible:
|
|
205
|
-
|
|
206
|
-
```dockerfile
|
|
207
|
-
FROM node:22-slim
|
|
208
|
-
|
|
209
|
-
WORKDIR /app
|
|
210
|
-
RUN npm install -g @leadbay/mcp@0.15.0
|
|
211
|
-
|
|
212
|
-
ENV NODE_ENV=production
|
|
213
|
-
ENV PORT=8080
|
|
214
|
-
EXPOSE 8080
|
|
215
|
-
|
|
216
|
-
CMD ["leadbay-mcp-http"]
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
Then point Fly at that Dockerfile and deploy:
|
|
220
|
-
|
|
221
|
-
```toml
|
|
222
|
-
[build]
|
|
223
|
-
dockerfile = 'Dockerfile.npm'
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
```bash
|
|
227
|
-
fly deploy --app leadbay-mcp-prod
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
```bash
|
|
231
|
-
curl https://leadbay-mcp-prod.fly.dev/healthz
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
Avoid `@latest` for production unless you intentionally want Fly deploys to pick up whatever version npm currently marks as latest:
|
|
235
|
-
|
|
236
|
-
```dockerfile
|
|
237
|
-
RUN npm install -g @leadbay/mcp@latest
|
|
238
|
-
```
|
|
239
|
-
|
|
240
|
-
That is convenient for quick tests, but less safe for production because the deployed version is no longer visible from a repo diff.
|
|
205
|
+
Infrastructure details (workload manifests, Argo CD app, DNS) live in
|
|
206
|
+
`leadbay/infra` — not this repo.
|
|
241
207
|
|
|
242
208
|
## 3. Quickstart
|
|
243
209
|
|
|
@@ -317,8 +283,8 @@ Leadbay connection OK.
|
|
|
317
283
|
Leadbay runs a hosted MCP server that any remote-MCP client can connect to without a local install. Pick the URL for your account's region:
|
|
318
284
|
|
|
319
285
|
```
|
|
320
|
-
https://
|
|
321
|
-
https://
|
|
286
|
+
https://mcp.leadbay.app/mcp # US accounts
|
|
287
|
+
https://mcp.leadbay.app/fr/mcp # FR accounts
|
|
322
288
|
```
|
|
323
289
|
|
|
324
290
|
- **Claude Desktop**: Settings → Connectors → Add custom connector → paste the URL.
|