@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.
- package/dist/tools/schema.js +2 -3
- package/package.json +1 -1
package/dist/tools/schema.js
CHANGED
|
@@ -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()).
|
|
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()).
|
|
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,
|