@agifyai/leadify-mcp 8.6.2 → 8.6.3

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.
@@ -40,6 +40,16 @@ const signalTierRule = z.object({
40
40
  signal_id: z.string().optional(),
41
41
  tier: z.enum(["hot", "warm", "cold"]).optional(),
42
42
  });
43
+ // Persona v2 owns entity-specific qualification contracts. Keep their nested
44
+ // shape forward-compatible here: the Leadify API remains the authority that
45
+ // validates the versioned Company/Person contracts, while the MCP must never
46
+ // silently strip them before forwarding the wholesale upsert.
47
+ const companyQualification = z
48
+ .record(z.unknown())
49
+ .describe("Versioned Company Persona qualification contract forwarded unchanged to Leadify.");
50
+ const personQualification = z
51
+ .record(z.unknown())
52
+ .describe("Versioned Person Persona qualification contract forwarded unchanged to Leadify.");
43
53
  const extraPromptPhase = z.object({
44
54
  scope: z.enum(["qualify", "outreach"]).optional(),
45
55
  insertion_point: z
@@ -319,6 +329,9 @@ export function registerPersonaTools(server, client) {
319
329
  .min(1)
320
330
  .describe("Required Vertical ID in the same organization."),
321
331
  description: z.string().optional().describe("Detailed persona description."),
332
+ // Persona v2 qualification contracts
333
+ company_qualification: companyQualification.optional(),
334
+ person_qualification: personQualification.optional(),
322
335
  // targeting
323
336
  target_profile: z
324
337
  .record(z.unknown())
@@ -449,6 +462,10 @@ export function registerPersonaTools(server, client) {
449
462
  body.expectedUpdatedAt = params.expected_updated_at;
450
463
  if (params.description !== undefined)
451
464
  body.description = params.description;
465
+ if (params.company_qualification !== undefined)
466
+ body.companyQualification = params.company_qualification;
467
+ if (params.person_qualification !== undefined)
468
+ body.personQualification = params.person_qualification;
452
469
  if (params.target_profile !== undefined)
453
470
  body.targetProfile = params.target_profile;
454
471
  if (params.disqualification_criteria !== undefined)
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const MCP_PACKAGE_NAME = "@agifyai/leadify-mcp";
2
2
  export declare const MCP_SERVER_NAME = "leadify";
3
- export declare const MCP_VERSION = "8.6.2";
3
+ export declare const MCP_VERSION: string;
package/dist/version.js CHANGED
@@ -1,3 +1,7 @@
1
+ import packageJson from "../package.json" with { type: "json" };
1
2
  export const MCP_PACKAGE_NAME = "@agifyai/leadify-mcp";
2
3
  export const MCP_SERVER_NAME = "leadify";
3
- export const MCP_VERSION = "8.6.2";
4
+ // publish.yml may select the next patch release immediately before building.
5
+ // Read the package manifest so the MCP handshake always reports that same
6
+ // published artifact version rather than a stale source constant.
7
+ export const MCP_VERSION = packageJson.version;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agifyai/leadify-mcp",
3
- "version": "8.6.2",
3
+ "version": "8.6.3",
4
4
  "description": "MCP server for Leadify lead management API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",