@leadbay/mcp 0.17.0 → 0.17.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.
@@ -0,0 +1,46 @@
1
+ const { app, BrowserWindow, shell } = require("electron");
2
+ const path = require("node:path");
3
+ const { pathToFileURL } = require("node:url");
4
+
5
+ let handle;
6
+ let win;
7
+
8
+ if (process.platform === "linux" && process.env.LEADBAY_INSTALLER_ELECTRON_SANDBOX !== "1") {
9
+ app.commandLine.appendSwitch("no-sandbox");
10
+ }
11
+
12
+ async function createWindow() {
13
+ const mod = await import(pathToFileURL(path.join(__dirname, "../dist/installer-gui.js")).href);
14
+ const isUninstall = process.argv.includes("--uninstall");
15
+ handle = isUninstall
16
+ ? await mod.startUninstallerGui({ openBrowser: false })
17
+ : await mod.startInstallerGui({ openBrowser: false });
18
+
19
+ win = new BrowserWindow({
20
+ width: 920,
21
+ height: 760,
22
+ minWidth: 720,
23
+ minHeight: 620,
24
+ title: isUninstall ? "Leadbay MCP Uninstaller" : "Leadbay MCP Installer",
25
+ backgroundColor: "#f6f7f4",
26
+ autoHideMenuBar: true,
27
+ webPreferences: {
28
+ contextIsolation: true,
29
+ nodeIntegration: false,
30
+ sandbox: true,
31
+ },
32
+ });
33
+
34
+ win.webContents.setWindowOpenHandler(({ url }) => {
35
+ shell.openExternal(url);
36
+ return { action: "deny" };
37
+ });
38
+ await win.loadURL(handle.url);
39
+ }
40
+
41
+ app.whenReady().then(createWindow);
42
+
43
+ app.on("window-all-closed", async () => {
44
+ if (handle) await handle.close().catch(() => undefined);
45
+ app.quit();
46
+ });
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@leadbay/mcp",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
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",
7
7
  "bin": {
8
- "leadbay-mcp": "dist/bin.js"
8
+ "leadbay-mcp": "dist/bin.js",
9
+ "leadbay-mcp-http": "dist/http-server.js",
10
+ "installer": "dist/installer-electron.js",
11
+ "leadbay-mcp-installer": "dist/installer-electron.js"
9
12
  },
10
13
  "files": [
11
14
  "dist/",
15
+ "installer/electron-main.cjs",
12
16
  "README.md",
13
17
  "MIGRATION.md",
14
18
  "CHANGELOG.md",
@@ -18,16 +22,21 @@
18
22
  "access": "public"
19
23
  },
20
24
  "scripts": {
21
- "prebuild": "pnpm --filter @leadbay/promptforge build",
25
+ "prebuild": "pnpm --filter @leadbay/core build",
22
26
  "build": "tsup",
23
27
  "typecheck": "tsc --noEmit",
24
28
  "test": "vitest run",
25
29
  "test:smoke": "vitest run --config vitest.smoke.config.ts",
26
- "prepublishOnly": "pnpm run build && pnpm run typecheck && pnpm run test"
30
+ "prepublishOnly": "pnpm run build && pnpm run typecheck && pnpm run test",
31
+ "installer": "pnpm run build && electron --no-sandbox installer/electron-main.cjs",
32
+ "installer:gui": "pnpm run installer",
33
+ "installer:gui:web": "pnpm run build && node dist/installer-gui.js"
27
34
  },
28
35
  "dependencies": {
36
+ "@hono/node-server": "^1.13.7",
29
37
  "@modelcontextprotocol/sdk": "1.29.0",
30
38
  "@sentry/node": "^9.0.0",
39
+ "hono": "^4.6.14",
31
40
  "posthog-node": "^4.5.0"
32
41
  },
33
42
  "devDependencies": {
@@ -35,6 +44,9 @@
35
44
  "@leadbay/core": "workspace:*",
36
45
  "@leadbay/promptforge": "workspace:*"
37
46
  },
47
+ "optionalDependencies": {
48
+ "electron": "^42.3.0"
49
+ },
38
50
  "engines": {
39
51
  "node": ">=22"
40
52
  },
@@ -1,259 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- AgentMemoryCaptureInputSchema,
4
- AgentMemoryEntrySchema,
5
- AgentMemoryInjectionError,
6
- AgentMemoryScopeSchema,
7
- AgentMemorySourceSchema,
8
- AgentMemoryTombstoneSchema,
9
- COMPOSITE_FILE_TOOL_NAMES,
10
- InMemoryBulkStore,
11
- LeadbayClient,
12
- LocalBulkStore,
13
- REGIONS,
14
- accountStatus,
15
- addLeadsToCampaign,
16
- addNote,
17
- adjustAudience,
18
- agentMemoryCapture,
19
- agentMemoryRecall,
20
- agentMemoryReview,
21
- agentMemoryTools,
22
- answerClarification,
23
- appendEntry,
24
- appendTombstone,
25
- assertSafeInsight,
26
- bulkEnrichStatus,
27
- bulkQualifyLeads,
28
- campaignCallSheet,
29
- campaignProgression,
30
- clearAgentMemoryCache,
31
- clearMockJournal,
32
- clearSelection,
33
- clearUserPrompt,
34
- compositeReadTools,
35
- compositeTools,
36
- compositeWriteTools,
37
- consolidate,
38
- createAgentMemoryId,
39
- createCampaign,
40
- createClient,
41
- createCustomField,
42
- createDefaultBulkStore,
43
- createLens,
44
- createLensDraft,
45
- createTopupLink,
46
- deselectLeads,
47
- discoverLeads,
48
- dislikeLead,
49
- dismissClarification,
50
- enrichContacts,
51
- enrichTitles,
52
- ensureAgentMemorySummary,
53
- extendLens,
54
- followupsMap,
55
- formatLoginError,
56
- getClarification,
57
- getContacts,
58
- getEnrichmentJobTitles,
59
- getEpilogueResponses,
60
- getLeadActivities,
61
- getLeadNotes,
62
- getLeadProfile,
63
- getLensFilter,
64
- getLensScoring,
65
- getMockJournal,
66
- getProspectingActions,
67
- getQuota,
68
- getSelectionIds,
69
- getTasteProfile,
70
- getUserPrompt,
71
- getWebFetch,
72
- granularReadTools,
73
- granularTools,
74
- granularWriteTools,
75
- hashAccountId,
76
- importAndQualify,
77
- importLeads,
78
- importStatus,
79
- invalidateAgentMemoryCache,
80
- isAgentMemoryEnabled,
81
- isValidBulkId,
82
- launchBulkEnrichment,
83
- likeLead,
84
- listCampaigns,
85
- listLenses,
86
- listLocations,
87
- listMappableFields,
88
- listSectors,
89
- login,
90
- makeAgentMemoryEntry,
91
- makeAgentMemoryTombstone,
92
- normalizeInsight,
93
- openBillingPortal,
94
- pickClarification,
95
- prepareOutreach,
96
- previewBulkEnrichment,
97
- promoteLens,
98
- pullFollowups,
99
- pullLeads,
100
- qualifyLead,
101
- qualifyStatus,
102
- readEntries,
103
- readTombstones,
104
- recallOrderedTitles,
105
- refinePrompt,
106
- removeEpilogue,
107
- removeLeadsFromCampaign,
108
- removePushback,
109
- reportFriction,
110
- reportOutreach,
111
- researchLeadById,
112
- researchLeadByNameFuzzy,
113
- resolveAgentMemoryForClient,
114
- resolveAgentMemoryPaths,
115
- resolveAgentMemoryRoot,
116
- resolveAgentMemorySummary,
117
- resolveImportRows,
118
- resolveRegion,
119
- seedCandidates,
120
- selectLeads,
121
- setActiveLens,
122
- setEpilogueStatus,
123
- setPushback,
124
- setUserPrompt,
125
- tools,
126
- tourPlan,
127
- updateLens,
128
- updateLensFilter,
129
- withAgentMemoryMeta
130
- } from "./chunk-ASAKITU3.js";
131
- export {
132
- AgentMemoryCaptureInputSchema,
133
- AgentMemoryEntrySchema,
134
- AgentMemoryInjectionError,
135
- AgentMemoryScopeSchema,
136
- AgentMemorySourceSchema,
137
- AgentMemoryTombstoneSchema,
138
- COMPOSITE_FILE_TOOL_NAMES,
139
- InMemoryBulkStore,
140
- LeadbayClient,
141
- LocalBulkStore,
142
- REGIONS,
143
- accountStatus,
144
- addLeadsToCampaign,
145
- addNote,
146
- adjustAudience,
147
- agentMemoryCapture,
148
- agentMemoryRecall,
149
- agentMemoryReview,
150
- agentMemoryTools,
151
- answerClarification,
152
- appendEntry,
153
- appendTombstone,
154
- assertSafeInsight,
155
- bulkEnrichStatus,
156
- bulkQualifyLeads,
157
- campaignCallSheet,
158
- campaignProgression,
159
- clearAgentMemoryCache,
160
- clearMockJournal,
161
- clearSelection,
162
- clearUserPrompt,
163
- compositeReadTools,
164
- compositeTools,
165
- compositeWriteTools,
166
- consolidate,
167
- createAgentMemoryId,
168
- createCampaign,
169
- createClient,
170
- createCustomField,
171
- createDefaultBulkStore,
172
- createLens,
173
- createLensDraft,
174
- createTopupLink,
175
- deselectLeads,
176
- discoverLeads,
177
- dislikeLead,
178
- dismissClarification,
179
- enrichContacts,
180
- enrichTitles,
181
- ensureAgentMemorySummary,
182
- extendLens,
183
- followupsMap,
184
- formatLoginError,
185
- getClarification,
186
- getContacts,
187
- getEnrichmentJobTitles,
188
- getEpilogueResponses,
189
- getLeadActivities,
190
- getLeadNotes,
191
- getLeadProfile,
192
- getLensFilter,
193
- getLensScoring,
194
- getMockJournal,
195
- getProspectingActions,
196
- getQuota,
197
- getSelectionIds,
198
- getTasteProfile,
199
- getUserPrompt,
200
- getWebFetch,
201
- granularReadTools,
202
- granularTools,
203
- granularWriteTools,
204
- hashAccountId,
205
- importAndQualify,
206
- importLeads,
207
- importStatus,
208
- invalidateAgentMemoryCache,
209
- isAgentMemoryEnabled,
210
- isValidBulkId,
211
- launchBulkEnrichment,
212
- likeLead,
213
- listCampaigns,
214
- listLenses,
215
- listLocations,
216
- listMappableFields,
217
- listSectors,
218
- login,
219
- makeAgentMemoryEntry,
220
- makeAgentMemoryTombstone,
221
- normalizeInsight,
222
- openBillingPortal,
223
- pickClarification,
224
- prepareOutreach,
225
- previewBulkEnrichment,
226
- promoteLens,
227
- pullFollowups,
228
- pullLeads,
229
- qualifyLead,
230
- qualifyStatus,
231
- readEntries,
232
- readTombstones,
233
- recallOrderedTitles,
234
- refinePrompt,
235
- removeEpilogue,
236
- removeLeadsFromCampaign,
237
- removePushback,
238
- reportFriction,
239
- reportOutreach,
240
- researchLeadById,
241
- researchLeadByNameFuzzy,
242
- resolveAgentMemoryForClient,
243
- resolveAgentMemoryPaths,
244
- resolveAgentMemoryRoot,
245
- resolveAgentMemorySummary,
246
- resolveImportRows,
247
- resolveRegion,
248
- seedCandidates,
249
- selectLeads,
250
- setActiveLens,
251
- setEpilogueStatus,
252
- setPushback,
253
- setUserPrompt,
254
- tools,
255
- tourPlan,
256
- updateLens,
257
- updateLensFilter,
258
- withAgentMemoryMeta
259
- };