@mackody/quickenrich-mcp 0.1.0 → 0.1.1

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 (2) hide show
  1. package/README.md +85 -40
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,54 +1,106 @@
1
1
  # Quick Enrich MCP
2
2
 
3
- Standalone MCP server for Quick Enrich's documented APIs. It is built for internal prospecting workflows: secure local API-key storage, exact person enrichment, reverse-email/phone lookup, domain lead pulls, contact/company finder calls, and compact batch envelopes for agent use.
3
+ NPM package: [`@mackody/quickenrich-mcp`](https://www.npmjs.com/package/@mackody/quickenrich-mcp)
4
+
5
+ Standalone MCP server and CLI for Quick Enrich's documented APIs. It is built for internal prospecting workflows: secure local API-key storage, exact person enrichment, reverse-email/phone lookup, domain lead pulls, contact/company finder calls, CSV/JSONL workflows, and compact batch envelopes for agent use.
4
6
 
5
7
  Docs source: [Quick Enrich API Documentation](https://app.quickenrich.io/docs).
6
8
 
7
- ## Install
9
+ ## Install From NPM
8
10
 
9
11
  ```bash
10
- npm install
11
- npm run test
12
+ npm install -g @mackody/quickenrich-mcp
13
+ quickenrich-token set
14
+ quickenrich-token doctor
12
15
  ```
13
16
 
14
- Package/agent setup after install:
17
+ Requires Node.js 20 or newer.
18
+
19
+ You can also run without a global install:
15
20
 
16
21
  ```bash
17
- quickenrich-token set
18
- quickenrich-token doctor
19
- quickenrich-agent-docs install --cwd /path/to/agent-project
22
+ npx -p @mackody/quickenrich-mcp quickenrich-token set
23
+ npx -y @mackody/quickenrich-mcp
24
+ ```
25
+
26
+ ## MCP Client Config
27
+
28
+ Global install config:
29
+
30
+ ```json
31
+ {
32
+ "mcpServers": {
33
+ "quick-enrich": {
34
+ "command": "quickenrich-mcp",
35
+ "env": {
36
+ "QUICKENRICH_MCP_TOOL_MODE": "agent",
37
+ "QUICKENRICH_MCP_RESPONSE_MODE": "compact"
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ```
43
+
44
+ No-install `npx` config:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "quick-enrich": {
50
+ "command": "npx",
51
+ "args": ["-y", "@mackody/quickenrich-mcp"],
52
+ "env": {
53
+ "QUICKENRICH_MCP_TOOL_MODE": "agent",
54
+ "QUICKENRICH_MCP_RESPONSE_MODE": "compact"
55
+ }
56
+ }
57
+ }
58
+ }
20
59
  ```
21
60
 
22
- `quickenrich-agent-docs install` appends exactly two managed Quick Enrich how-to-use lines to `CLAUDE.md` and `AGENTS.md` in the target project. It is idempotent. Remove those managed lines with:
61
+ MCP server alias: `quick-enrich`
62
+
63
+ Use `QUICKENRICH_MCP_TOOL_MODE=minimal` for only auth, graph, natural-language planning, and batch pull. Use `QUICKENRICH_MCP_TOOL_MODE=full` when you want every low-level endpoint and verbose schema descriptions. Default `agent` mode is the recommended NPM install mode.
64
+
65
+ ## Auth
23
66
 
24
67
  ```bash
25
- quickenrich-agent-docs uninstall --cwd /path/to/agent-project
68
+ quickenrich-token set
69
+ quickenrich-token status
70
+ quickenrich-token doctor
26
71
  ```
27
72
 
28
- Set an API key with either an environment variable:
73
+ The token CLI stores the key at `~/.config/quickenrich-mcp/config.json` with `0600` permissions. Env vars override the config file.
74
+
75
+ For CI or ephemeral MCP hosts, set:
29
76
 
30
77
  ```bash
31
78
  export QUICKENRICH_API_KEY=...
32
79
  ```
33
80
 
34
- or the local secure config:
81
+ ## Agent Project Setup
82
+
83
+ After installing the package, add the two managed agent hints to a project:
35
84
 
36
85
  ```bash
37
- node scripts/quickenrich-token.mjs set
38
- node scripts/quickenrich-token.mjs status
86
+ quickenrich-agent-docs install --cwd /path/to/agent-project
39
87
  ```
40
88
 
41
- The token CLI stores the key at `~/.config/quickenrich-mcp/config.json` with `0600` permissions. Env vars override the config file.
42
-
43
- ## MCP
89
+ `quickenrich-agent-docs install` appends exactly two Quick Enrich how-to-use lines to `CLAUDE.md` and `AGENTS.md`. It is idempotent.
44
90
 
45
- Use the bundled `.mcp.json` or run directly:
91
+ Remove those managed lines with:
46
92
 
47
93
  ```bash
48
- node scripts/quickenrich-mcp.mjs
94
+ quickenrich-agent-docs uninstall --cwd /path/to/agent-project
49
95
  ```
50
96
 
51
- MCP server alias: `quick-enrich`
97
+ ## Package Binaries
98
+
99
+ - `quickenrich-mcp`: stdio MCP server.
100
+ - `quickenrich-token`: secure local API-key setup and auth diagnostics.
101
+ - `quickenrich-agent-docs`: install/uninstall agent usage hints in `CLAUDE.md` and `AGENTS.md`.
102
+
103
+ ## Agent Tool Surface
52
104
 
53
105
  Default agent tools:
54
106
 
@@ -76,8 +128,6 @@ Full-mode tools (`QUICKENRICH_MCP_TOOL_MODE=full`) also expose:
76
128
  - `quickenrich_batch_pull_leads`
77
129
  - `quickenrich_lookup_values`
78
130
 
79
- Use `QUICKENRICH_MCP_TOOL_MODE=minimal` for only auth, graph, natural-language planning, and batch pull. Use `QUICKENRICH_MCP_TOOL_MODE=full` when you want every low-level endpoint and verbose schema descriptions.
80
-
81
131
  Default agent mode intentionally emits slim schemas and short tool descriptions so cold agents do not spend context on prose they can recover from `quickenrich_agent_graph`. The default `tools/list` surface is budgeted under 8 KB and includes lookup discovery because finder filters need valid country, industry, employee-range, revenue-range, and service values.
82
132
 
83
133
  Responses default to compact mode with a 12 KB output budget, 12 array items, 48 object keys, depth 4, and 240-character strings. Pass `response: { "mode": "full", "maxOutputChars": 64000 }` for rawer output, or `response: { "mode": "meta" }` for shape-only output.
@@ -174,7 +224,7 @@ Domain batch pulls use a shared token-bucket limiter per MCP client plus a rolli
174
224
  ```bash
175
225
  QUICKENRICH_DOMAIN_SEARCH_REQUESTS_PER_MINUTE=300 \
176
226
  QUICKENRICH_DOMAIN_SEARCH_BURST_SIZE=8 \
177
- node scripts/quickenrich-mcp.mjs
227
+ quickenrich-mcp
178
228
  ```
179
229
 
180
230
  The batch result includes `throttle` metadata showing the active ceiling, burst, total acquired slots, and sleep time. Repeated calls through the same MCP process share buckets, so follow-up batches do not reset the burst. If a final 429 includes `Retry-After`, the limiter cools down before later starts.
@@ -183,7 +233,18 @@ Use `throttle_scope:"shared"` to coordinate the rolling request ceiling across m
183
233
 
184
234
  Other batch lanes also use small compliant default bursts: employee search, phone search, and reverse email default to `burst_size=16`; Contact Finder and Company Finder default to `burst_size=4`.
185
235
 
186
- ## Smoke Tests
236
+ ## Source Development
237
+
238
+ Clone the repo only if you are developing the package itself:
239
+
240
+ ```bash
241
+ git clone https://github.com/codyrobertson/quickenrich-mcp.git
242
+ cd quickenrich-mcp
243
+ npm install
244
+ npm run smoke
245
+ ```
246
+
247
+ Run the full local plus live suite when a Quick Enrich key is configured:
187
248
 
188
249
  ```bash
189
250
  npm run test
@@ -265,19 +326,3 @@ Latest default token-bucket paid local run on 2026-07-09:
265
326
  - `direct_core_batch`: 266.64 ms, 2 requests, 2 credits, 2 leads.
266
327
  - `mcp_batch_stdio`: 318.64 ms, 2 requests, 2 credits, 2 leads.
267
328
  - Result: MCP stdio batch was 2.09x faster than naive raw sequential API usage, cut request volume 2x, and saved 50% credits on duplicate inputs.
268
-
269
- ## NPM Publish Prep
270
-
271
- Dry-run the package contents before publishing:
272
-
273
- ```bash
274
- npm run check
275
- npm run smoke
276
- npm run pack:dry-run
277
- ```
278
-
279
- Actual publish is intentionally manual:
280
-
281
- ```bash
282
- npm publish --access public
283
- ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mackody/quickenrich-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Standalone MCP server and CLI for Quick Enrich lead enrichment APIs.",
6
6
  "bin": {