@adrata/adrata-mcp 1.0.47 → 1.0.49

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/server.js +20 -4
  3. package/server.json +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adrata/adrata-mcp",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "description": "Adrata MCP Server \u2014 connect Claude Code, Codex, Gemini, Cursor, and other AI tools to your CRM. About 275 tools registered at startup for companies, people, deals, actions, buyer groups, warm intros, webhooks and intelligence, plus 65 more behind eight named toolsets you load with enable_toolset.",
5
5
  "type": "module",
6
6
  "main": "server.js",
package/server.js CHANGED
@@ -1828,14 +1828,30 @@ server.tool('get_company_firmographics', 'Get employee count and revenue metadat
1828
1828
  { companyId: z.string() },
1829
1829
  async (a) => ok(await api('GET', `/api/v1/companies/${a.companyId}/firmographics`)));
1830
1830
 
1831
- server.tool('enrich_person', `Trigger enrichment for a person professional info, social profiles. SPENDS VENDOR CREDITS (a Coresignal collect is 20 credits per person).${governedWriteNote('write:people')}`,
1832
- { personId: z.string(), ...governedWriteArgs },
1833
- async ({ personId, ...g }) => runGovernedWrite(
1831
+ // `enrichPhone` and `forceRefresh` reach the route ONLY through the request
1832
+ // body, and this tool used to send none at all — no `body` key, so the POST went
1833
+ // out empty and the route's `enrich_phone` fell to its `unwrap_or(false)`
1834
+ // default on every call. The flag was therefore unreachable from MCP: an agent
1835
+ // could pass it, the schema would accept it, and no vendor was ever asked for a
1836
+ // phone. That is the "capability that nothing can reach" shape, and it is the
1837
+ // reason phone was never requested on any of the async jobs in production.
1838
+ server.tool('enrich_person', `Trigger enrichment for a person — email, phone, professional info, social profiles. SPENDS VENDOR CREDITS. Phone is a separate paid field (a BetterContact mobile is 10 credits against 1 for an email), so pass enrichPhone: true whenever the ask is for a mobile, cell, direct line or "contact details" — without it no vendor is asked for a number and the run still reports success.${governedWriteNote('write:people')}`,
1839
+ {
1840
+ personId: z.string(),
1841
+ enrichPhone: z.boolean().optional().describe('Also look up a mobile/direct phone. Paid field, explicit opt-in, defaults false.'),
1842
+ forceRefresh: z.boolean().optional().describe('Run even when fields are already populated; only for an explicitly stale or wrong record.'),
1843
+ ...governedWriteArgs,
1844
+ },
1845
+ async ({ personId, enrichPhone, forceRefresh, ...g }) => runGovernedWrite(
1834
1846
  g,
1835
1847
  {
1836
1848
  method: 'POST',
1837
1849
  path: `/api/v1/people/${personId}/enrich`,
1838
- preview: { entity: 'person', entityId: personId, operation: 'enrich', spendsVendorCredits: true },
1850
+ body: body({ enrichPhone, forceRefresh }),
1851
+ preview: {
1852
+ entity: 'person', entityId: personId, operation: 'enrich',
1853
+ spendsVendorCredits: true, enrichPhone: enrichPhone === true,
1854
+ },
1839
1855
  },
1840
1856
  ));
1841
1857
 
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "com.adrata/adrata-mcp",
4
4
  "description": "Adrata revenue-intelligence MCP server: companies, people, opportunities, actions, buyer groups, enrichment, email, and workspace operations for AI agents.",
5
5
  "status": "active",
6
- "version": "1.0.47",
6
+ "version": "1.0.49",
7
7
  "websiteUrl": "https://adrata.com/developers",
8
8
  "repository": {
9
9
  "url": "https://github.com/adrata/adrata",
@@ -15,7 +15,7 @@
15
15
  "registryType": "npm",
16
16
  "registryBaseUrl": "https://registry.npmjs.org",
17
17
  "identifier": "@adrata/adrata-mcp",
18
- "version": "1.0.47",
18
+ "version": "1.0.49",
19
19
  "transport": {
20
20
  "type": "stdio"
21
21
  },