@agifyai/leadify-mcp 8.6.3 → 8.6.5
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/dist/client.d.ts +6 -0
- package/dist/client.js +13 -0
- package/dist/tools/context_entities.d.ts +32 -32
- package/dist/tools/personas.d.ts +2 -4
- package/dist/tools/personas.js +117 -1108
- package/dist/tools/schema.d.ts +1 -1
- package/dist/tools/schema.js +36 -0
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -8,5 +8,11 @@ export declare class LeadifyClient {
|
|
|
8
8
|
put(path: string, body: unknown): Promise<unknown>;
|
|
9
9
|
patch(path: string, body: unknown): Promise<unknown>;
|
|
10
10
|
delete(path: string, body?: unknown): Promise<unknown>;
|
|
11
|
+
/**
|
|
12
|
+
* Invoke an authenticated oRPC procedure. The API-key facade exposes most
|
|
13
|
+
* everyday operations as REST, while hash-pinned schema migrations remain
|
|
14
|
+
* intentionally available only through the admin oRPC boundary.
|
|
15
|
+
*/
|
|
16
|
+
rpc(path: string, input: unknown): Promise<unknown>;
|
|
11
17
|
}
|
|
12
18
|
export declare function getClient(): LeadifyClient;
|
package/dist/client.js
CHANGED
|
@@ -57,6 +57,19 @@ export class LeadifyClient {
|
|
|
57
57
|
const url = new URL(path, this.baseUrl);
|
|
58
58
|
return this.request("DELETE", url, body);
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Invoke an authenticated oRPC procedure. The API-key facade exposes most
|
|
62
|
+
* everyday operations as REST, while hash-pinned schema migrations remain
|
|
63
|
+
* intentionally available only through the admin oRPC boundary.
|
|
64
|
+
*/
|
|
65
|
+
async rpc(path, input) {
|
|
66
|
+
const url = new URL(`/rpc/${path.replace(/^\/+/, "")}`, this.baseUrl);
|
|
67
|
+
const data = await this.request("POST", url, { json: input });
|
|
68
|
+
if (data && typeof data === "object" && "json" in data) {
|
|
69
|
+
return data.json;
|
|
70
|
+
}
|
|
71
|
+
return data;
|
|
72
|
+
}
|
|
60
73
|
}
|
|
61
74
|
let _client = null;
|
|
62
75
|
export function getClient() {
|
|
@@ -161,14 +161,6 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
161
161
|
implication?: string | undefined;
|
|
162
162
|
}>, "many">>;
|
|
163
163
|
}, "strict", z.ZodTypeAny, {
|
|
164
|
-
sector?: string | undefined;
|
|
165
|
-
painPoints?: {
|
|
166
|
-
id: string;
|
|
167
|
-
title: string;
|
|
168
|
-
description?: string | undefined;
|
|
169
|
-
customerCaseIds?: string[] | undefined;
|
|
170
|
-
useCaseIds?: string[] | undefined;
|
|
171
|
-
}[] | undefined;
|
|
172
164
|
allowedVocabulary?: string[] | undefined;
|
|
173
165
|
prohibitedVocabulary?: string[] | undefined;
|
|
174
166
|
legalConstraints?: {
|
|
@@ -177,6 +169,7 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
177
169
|
description?: string | undefined;
|
|
178
170
|
}[] | undefined;
|
|
179
171
|
customerCaseIds?: string[] | undefined;
|
|
172
|
+
sector?: string | undefined;
|
|
180
173
|
sectorPositioning?: string | undefined;
|
|
181
174
|
commercialPitch?: string | undefined;
|
|
182
175
|
idealCustomer?: {
|
|
@@ -198,6 +191,13 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
198
191
|
description?: string | undefined;
|
|
199
192
|
customerCaseIds?: string[] | undefined;
|
|
200
193
|
}[] | undefined;
|
|
194
|
+
painPoints?: {
|
|
195
|
+
id: string;
|
|
196
|
+
title: string;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
customerCaseIds?: string[] | undefined;
|
|
199
|
+
useCaseIds?: string[] | undefined;
|
|
200
|
+
}[] | undefined;
|
|
201
201
|
qualificationSignals?: {
|
|
202
202
|
id: string;
|
|
203
203
|
title: string;
|
|
@@ -226,14 +226,6 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
226
226
|
implication?: string | undefined;
|
|
227
227
|
}[] | undefined;
|
|
228
228
|
}, {
|
|
229
|
-
sector?: string | undefined;
|
|
230
|
-
painPoints?: {
|
|
231
|
-
id: string;
|
|
232
|
-
title: string;
|
|
233
|
-
description?: string | undefined;
|
|
234
|
-
customerCaseIds?: string[] | undefined;
|
|
235
|
-
useCaseIds?: string[] | undefined;
|
|
236
|
-
}[] | undefined;
|
|
237
229
|
allowedVocabulary?: string[] | undefined;
|
|
238
230
|
prohibitedVocabulary?: string[] | undefined;
|
|
239
231
|
legalConstraints?: {
|
|
@@ -242,6 +234,7 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
242
234
|
description?: string | undefined;
|
|
243
235
|
}[] | undefined;
|
|
244
236
|
customerCaseIds?: string[] | undefined;
|
|
237
|
+
sector?: string | undefined;
|
|
245
238
|
sectorPositioning?: string | undefined;
|
|
246
239
|
commercialPitch?: string | undefined;
|
|
247
240
|
idealCustomer?: {
|
|
@@ -263,6 +256,13 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
263
256
|
description?: string | undefined;
|
|
264
257
|
customerCaseIds?: string[] | undefined;
|
|
265
258
|
}[] | undefined;
|
|
259
|
+
painPoints?: {
|
|
260
|
+
id: string;
|
|
261
|
+
title: string;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
customerCaseIds?: string[] | undefined;
|
|
264
|
+
useCaseIds?: string[] | undefined;
|
|
265
|
+
}[] | undefined;
|
|
266
266
|
qualificationSignals?: {
|
|
267
267
|
id: string;
|
|
268
268
|
title: string;
|
|
@@ -291,14 +291,6 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
291
291
|
implication?: string | undefined;
|
|
292
292
|
}[] | undefined;
|
|
293
293
|
}>, {
|
|
294
|
-
sector?: string | undefined;
|
|
295
|
-
painPoints?: {
|
|
296
|
-
id: string;
|
|
297
|
-
title: string;
|
|
298
|
-
description?: string | undefined;
|
|
299
|
-
customerCaseIds?: string[] | undefined;
|
|
300
|
-
useCaseIds?: string[] | undefined;
|
|
301
|
-
}[] | undefined;
|
|
302
294
|
allowedVocabulary?: string[] | undefined;
|
|
303
295
|
prohibitedVocabulary?: string[] | undefined;
|
|
304
296
|
legalConstraints?: {
|
|
@@ -307,6 +299,7 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
307
299
|
description?: string | undefined;
|
|
308
300
|
}[] | undefined;
|
|
309
301
|
customerCaseIds?: string[] | undefined;
|
|
302
|
+
sector?: string | undefined;
|
|
310
303
|
sectorPositioning?: string | undefined;
|
|
311
304
|
commercialPitch?: string | undefined;
|
|
312
305
|
idealCustomer?: {
|
|
@@ -328,6 +321,13 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
328
321
|
description?: string | undefined;
|
|
329
322
|
customerCaseIds?: string[] | undefined;
|
|
330
323
|
}[] | undefined;
|
|
324
|
+
painPoints?: {
|
|
325
|
+
id: string;
|
|
326
|
+
title: string;
|
|
327
|
+
description?: string | undefined;
|
|
328
|
+
customerCaseIds?: string[] | undefined;
|
|
329
|
+
useCaseIds?: string[] | undefined;
|
|
330
|
+
}[] | undefined;
|
|
331
331
|
qualificationSignals?: {
|
|
332
332
|
id: string;
|
|
333
333
|
title: string;
|
|
@@ -356,14 +356,6 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
356
356
|
implication?: string | undefined;
|
|
357
357
|
}[] | undefined;
|
|
358
358
|
}, {
|
|
359
|
-
sector?: string | undefined;
|
|
360
|
-
painPoints?: {
|
|
361
|
-
id: string;
|
|
362
|
-
title: string;
|
|
363
|
-
description?: string | undefined;
|
|
364
|
-
customerCaseIds?: string[] | undefined;
|
|
365
|
-
useCaseIds?: string[] | undefined;
|
|
366
|
-
}[] | undefined;
|
|
367
359
|
allowedVocabulary?: string[] | undefined;
|
|
368
360
|
prohibitedVocabulary?: string[] | undefined;
|
|
369
361
|
legalConstraints?: {
|
|
@@ -372,6 +364,7 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
372
364
|
description?: string | undefined;
|
|
373
365
|
}[] | undefined;
|
|
374
366
|
customerCaseIds?: string[] | undefined;
|
|
367
|
+
sector?: string | undefined;
|
|
375
368
|
sectorPositioning?: string | undefined;
|
|
376
369
|
commercialPitch?: string | undefined;
|
|
377
370
|
idealCustomer?: {
|
|
@@ -393,6 +386,13 @@ export declare const verticalContextContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
393
386
|
description?: string | undefined;
|
|
394
387
|
customerCaseIds?: string[] | undefined;
|
|
395
388
|
}[] | undefined;
|
|
389
|
+
painPoints?: {
|
|
390
|
+
id: string;
|
|
391
|
+
title: string;
|
|
392
|
+
description?: string | undefined;
|
|
393
|
+
customerCaseIds?: string[] | undefined;
|
|
394
|
+
useCaseIds?: string[] | undefined;
|
|
395
|
+
}[] | undefined;
|
|
396
396
|
qualificationSignals?: {
|
|
397
397
|
id: string;
|
|
398
398
|
title: string;
|
package/dist/tools/personas.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import { type LeadifyClient } from "../client.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare function crmSchemaPackSelectionError(packs: readonly string[], workflowMode?: "person_first" | "company_first" | null): string | null;
|
|
6
|
-
export declare function registerPersonaTools(server: McpServer, client?: PersonaClient): void;
|
|
3
|
+
type PersonaClient = Pick<LeadifyClient, "get" | "post">;
|
|
4
|
+
export declare function registerPersonaTools(server: McpServer, injectedClient?: PersonaClient): void;
|
|
7
5
|
export {};
|