@agifyai/leadify-mcp 8.3.2 → 8.3.4

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.
@@ -186,6 +186,30 @@ export function registerLeadTools(server, client = getClient()) {
186
186
  }
187
187
  });
188
188
  // ── delete_sequence_messages ──────────────────────────────────────────
189
+ server.tool("upsert_lead_note", "Create a free-form note in a prospect's Notes tab. Idempotent for the same lead and exact note body: retrying the call returns the original note instead of adding a duplicate.", {
190
+ lead_id: z.string().describe("ID of the prospect that owns the note."),
191
+ body: z.string().min(1).max(20_000).describe("Markdown note body to store in the prospect's Notes tab."),
192
+ }, async ({ lead_id, body }) => {
193
+ try {
194
+ const data = await client.post(`/api/lead/${encodeURIComponent(lead_id)}/notes`, { body });
195
+ return toolResult(data);
196
+ }
197
+ catch (error) {
198
+ return handleToolError(error);
199
+ }
200
+ });
201
+ server.tool("get_lead_notes", "Read the free-form Notes tab of one prospect. Use this to verify an imported or manually added note.", {
202
+ lead_id: z.string().describe("ID of the prospect whose Notes tab to read."),
203
+ }, async ({ lead_id }) => {
204
+ try {
205
+ const data = await client.get(`/api/lead/${encodeURIComponent(lead_id)}/notes`);
206
+ return toolResult(data);
207
+ }
208
+ catch (error) {
209
+ return handleToolError(error);
210
+ }
211
+ });
212
+ // ── delete_sequence_messages ──────────────────────────────────────────
189
213
  server.tool("delete_sequence_messages", "Permanently remove only the generated LinkedIn and email sequence messages for one lead. " +
190
214
  "It does not modify the lead's contact data, qualification, activities, campaign state, or any other fields. " +
191
215
  "This action is irreversible: obtain explicit user confirmation before calling it.", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agifyai/leadify-mcp",
3
- "version": "8.3.2",
3
+ "version": "8.3.4",
4
4
  "description": "MCP server for Leadify lead management API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",