@agifyai/leadify-mcp 8.6.6 → 8.6.7

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.
@@ -85,7 +85,7 @@ export function registerSchemaTools(server, client) {
85
85
  lead_group_id: z.string().describe("ID of the lead group to inspect."),
86
86
  }, async ({ lead_group_id }) => {
87
87
  try {
88
- const data = await (client ?? getClient()).rpc("leadGroups/schemaMigrationPreview", { leadGroupId: lead_group_id });
88
+ const data = await (client ?? getClient()).post(`/api/lead-group/${encodeURIComponent(lead_group_id)}/schema-migration/preview`, {});
89
89
  return toolResult(data);
90
90
  }
91
91
  catch (error) {
@@ -102,8 +102,7 @@ export function registerSchemaTools(server, client) {
102
102
  confirmation: z.literal("apply_destructive_schema_migration").describe("Exact acknowledgement required by the server."),
103
103
  }, async ({ lead_group_id, expected_schema_hash, expected_plan_hash, confirmation }) => {
104
104
  try {
105
- const data = await (client ?? getClient()).rpc("leadGroups/applySchemaMigration", {
106
- leadGroupId: lead_group_id,
105
+ const data = await (client ?? getClient()).post(`/api/lead-group/${encodeURIComponent(lead_group_id)}/schema-migration/apply`, {
107
106
  expectedSchemaHash: expected_schema_hash,
108
107
  expectedPlanHash: expected_plan_hash,
109
108
  confirmation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agifyai/leadify-mcp",
3
- "version": "8.6.6",
3
+ "version": "8.6.7",
4
4
  "description": "MCP server for Leadify lead management API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",