consulti-mcp 2.0.1 → 2.1.0

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/README.md CHANGED
@@ -3,9 +3,9 @@
3
3
  [![npm version](https://img.shields.io/npm/v/consulti-mcp.svg)](https://www.npmjs.com/package/consulti-mcp)
4
4
  [![license](https://img.shields.io/npm/l/consulti-mcp.svg)](./LICENSE)
5
5
 
6
- MCP server for the Consulti lead intelligence API — **7 stable tools** to search 500M+ B2B leads, verify emails, enrich leads, manage saved lists, and check credit balance.
6
+ MCP server for the Consulti lead intelligence API — **8 stable tools** to search 500M+ B2B leads, verify emails, enrich leads by email or LinkedIn URL, manage saved lists, and check credit balance.
7
7
 
8
- > **Stable surface only.** Beta endpoints (LinkedIn lookup, name-domain lookup, local-business search, creator search) are intentionally NOT exposed via MCP — their schemas may change. To use them, call the REST API directly: https://www.consulti.ai/api-docs
8
+ > **Stable surface only.** Beta endpoints (LinkedIn cache-only lookup `find-by-linkedin`, name-domain lookup, local-business search, creator search) are intentionally NOT exposed via MCP — their schemas may change. To use them, call the REST API directly: https://www.consulti.ai/api-docs
9
9
 
10
10
  ## Installation
11
11
 
@@ -83,6 +83,21 @@ Enrich a lead's full profile using their email address.
83
83
  { "email": "john@example.com" }
84
84
  ```
85
85
 
86
+ ### enrich_linkedin
87
+
88
+ Enrich a person by their LinkedIn profile URL → a verified work email plus their US mobile phone (free add-on). Cache-first: served instantly when we already hold a verified email for that profile, otherwise enriched live and cached.
89
+
90
+ **Cost:** 1 lead credit — charged only when an email is returned; phone-only or no-match responses are free.
91
+
92
+ | Input | Type | Description |
93
+ | -------------- | ------ | ------------------------------------------------------ |
94
+ | `linkedin_url` | string | The LinkedIn profile URL, e.g. https://linkedin.com/in/johndoe |
95
+
96
+ **Example:**
97
+ ```json
98
+ { "linkedin_url": "https://linkedin.com/in/johndoe" }
99
+ ```
100
+
86
101
  ### search_b2b_leads
87
102
 
88
103
  Search a database of 500M+ B2B leads with filters like job title, industry, location, and company size. All inputs are optional.
@@ -205,7 +220,7 @@ Print the installed version:
205
220
 
206
221
  ```bash
207
222
  npx -y consulti-mcp --version
208
- # → 2.0.0
223
+ # → 2.1.0
209
224
  ```
210
225
 
211
226
  Releases are published to npm via [GitHub Actions trusted publishing](https://docs.npmjs.com/trusted-publishers) on tags matching `mcp-v*` — each release carries an [npm provenance attestation](https://docs.npmjs.com/generating-provenance-statements).
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
3
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
4
  import { z } from "zod";
5
- const VERSION = "2.0.0";
5
+ const VERSION = "2.1.0";
6
6
  if (process.argv.includes("--version") || process.argv.includes("-v")) {
7
7
  console.log(VERSION);
8
8
  process.exit(0);
@@ -87,6 +87,9 @@ server.tool("verify_email", "Verify if an email address is valid and deliverable
87
87
  server.tool("enrich_lead", "Enrich a lead's full profile using their email address. Cost: 1 lead credit — only deducted on a successful match; 404 responses are free.", { email: z.string().describe("The email address of the lead to enrich") }, async ({ email }) => ({
88
88
  content: [{ type: "text", text: await apiPost("/leads/enrich", { email }) }],
89
89
  }));
90
+ server.tool("enrich_linkedin", "Enrich a person by their LinkedIn profile URL → a verified work email plus their US mobile phone (free add-on). Cache-first: served instantly when we already hold a verified email for that profile, otherwise enriched live and cached. Cost: 1 lead credit — charged ONLY when an email is returned; phone-only or no-match responses are free.", { linkedin_url: z.string().describe("The LinkedIn profile URL, e.g. https://linkedin.com/in/johndoe") }, async ({ linkedin_url }) => ({
91
+ content: [{ type: "text", text: await apiPost("/enrich/linkedin", { linkedin_url }) }],
92
+ }));
90
93
  server.tool("search_b2b_leads", "Search a database of 500M+ B2B leads with filters like job title, industry, location, and company size. Cost: 1 lead credit per result returned — reserved up to `size` then refunded down to the actual row count; 0 results = 0 credits. Call get_credits first before large `size` values.", {
91
94
  q: z.string().optional().describe("Free text search across name, title, company, and industry"),
92
95
  titles: z.array(z.string()).optional().describe("Job titles to filter by (e.g. [\"CEO\", \"VP Marketing\"])"),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "consulti-mcp",
3
- "version": "2.0.1",
4
- "description": "Consulti.ai MCP server — 7 stable tools for email verification, B2B lead search/enrichment, list management, and credit-balance checks. Stable surface only; beta endpoints are not exposed via MCP. Compatible with Claude Desktop, Cursor, and any MCP client.",
3
+ "version": "2.1.0",
4
+ "description": "Consulti.ai MCP server — 8 stable tools for email verification, B2B lead search/enrichment, LinkedIn-URL enrichment, list management, and credit-balance checks. Stable surface only; beta endpoints are not exposed via MCP. Compatible with Claude Desktop, Cursor, and any MCP client.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "consulti-mcp": "dist/index.js"