@baref00t/mcp-server 0.2.0 → 0.3.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.
- package/LICENSE +201 -201
- package/README.md +195 -109
- package/dist/server.js +24 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +22 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/partner/bulkCreateLeads.d.ts +21 -0
- package/dist/tools/partner/bulkCreateLeads.d.ts.map +1 -0
- package/dist/tools/partner/bulkCreateLeads.js +33 -0
- package/dist/tools/partner/bulkCreateLeads.js.map +1 -0
- package/dist/tools/partner/createLead.d.ts +24 -0
- package/dist/tools/partner/createLead.d.ts.map +1 -0
- package/dist/tools/partner/createLead.js +36 -0
- package/dist/tools/partner/createLead.js.map +1 -0
- package/dist/tools/partner/deleteLead.d.ts +12 -0
- package/dist/tools/partner/deleteLead.d.ts.map +1 -0
- package/dist/tools/partner/deleteLead.js +22 -0
- package/dist/tools/partner/deleteLead.js.map +1 -0
- package/dist/tools/partner/enrichLead.d.ts +15 -0
- package/dist/tools/partner/enrichLead.d.ts.map +1 -0
- package/dist/tools/partner/enrichLead.js +28 -0
- package/dist/tools/partner/enrichLead.js.map +1 -0
- package/dist/tools/partner/getLead.d.ts +12 -0
- package/dist/tools/partner/getLead.d.ts.map +1 -0
- package/dist/tools/partner/getLead.js +21 -0
- package/dist/tools/partner/getLead.js.map +1 -0
- package/dist/tools/partner/listLeadActivity.d.ts +18 -0
- package/dist/tools/partner/listLeadActivity.d.ts.map +1 -0
- package/dist/tools/partner/listLeadActivity.js +25 -0
- package/dist/tools/partner/listLeadActivity.js.map +1 -0
- package/dist/tools/partner/listLeads.d.ts +21 -0
- package/dist/tools/partner/listLeads.d.ts.map +1 -0
- package/dist/tools/partner/listLeads.js +35 -0
- package/dist/tools/partner/listLeads.js.map +1 -0
- package/dist/tools/partner/sendLeadConsent.d.ts +27 -0
- package/dist/tools/partner/sendLeadConsent.d.ts.map +1 -0
- package/dist/tools/partner/sendLeadConsent.js +55 -0
- package/dist/tools/partner/sendLeadConsent.js.map +1 -0
- package/dist/tools/partner/setLeadStage.d.ts +26 -0
- package/dist/tools/partner/setLeadStage.d.ts.map +1 -0
- package/dist/tools/partner/setLeadStage.js +34 -0
- package/dist/tools/partner/setLeadStage.js.map +1 -0
- package/dist/tools/partner/triggerAssessment.d.ts.map +1 -1
- package/dist/tools/partner/triggerAssessment.js +9 -6
- package/dist/tools/partner/triggerAssessment.js.map +1 -1
- package/dist/tools/partner/updateBranding.d.ts +5 -0
- package/dist/tools/partner/updateBranding.d.ts.map +1 -1
- package/dist/tools/partner/updateBranding.js +7 -1
- package/dist/tools/partner/updateBranding.js.map +1 -1
- package/dist/tools/partner/updateLead.d.ts +137 -0
- package/dist/tools/partner/updateLead.d.ts.map +1 -0
- package/dist/tools/partner/updateLead.js +52 -0
- package/dist/tools/partner/updateLead.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,109 +1,195 @@
|
|
|
1
|
-
# `@baref00t/mcp-server`
|
|
2
|
-
|
|
3
|
-
[](LICENSE)
|
|
4
|
-
|
|
5
|
-
Hosted multi-tenant Model Context Protocol (MCP) server that exposes the [baref00t](https://baref00t.io) Partner + Distributor APIs to AI assistants — Claude Desktop, Cursor, ChatGPT remote MCP, generic MCP clients.
|
|
6
|
-
|
|
7
|
-
## Hosted endpoint
|
|
8
|
-
|
|
9
|
-
| Env | URL |
|
|
10
|
-
|---|---|
|
|
11
|
-
| Production | `https://mcp.baref00t.io/mcp` |
|
|
12
|
-
| Staging | `https://mcp.sandbox.baref00t.io/mcp` |
|
|
13
|
-
|
|
14
|
-
## Quick start (Claude Desktop)
|
|
15
|
-
|
|
16
|
-
`~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"mcpServers": {
|
|
21
|
-
"baref00t": {
|
|
22
|
-
"url": "https://mcp.baref00t.io/mcp",
|
|
23
|
-
"headers": {
|
|
24
|
-
"Authorization": "Bearer pk_live_YOUR_PARTNER_KEY"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Restart Claude Desktop. Ask: **"List my baref00t customers"**.
|
|
32
|
-
|
|
33
|
-
## Authentication
|
|
34
|
-
|
|
35
|
-
Pass your existing baref00t Partner or Distributor API key in any of these headers:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
Authorization: Bearer pk_live_…
|
|
39
|
-
X-Partner-Key: pk_live_…
|
|
40
|
-
X-Distributor-Key: dk_live_…
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Key prefix routes to the right scope. Partner keys see partner tools, distributor keys see distributor tools.
|
|
44
|
-
|
|
45
|
-
Get an API key at https://www.baref00t.io → Settings → API keys.
|
|
46
|
-
|
|
47
|
-
## v0.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
|
54
|
-
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
1
|
+
# `@baref00t/mcp-server`
|
|
2
|
+
|
|
3
|
+
[](LICENSE)
|
|
4
|
+
|
|
5
|
+
Hosted multi-tenant Model Context Protocol (MCP) server that exposes the [baref00t](https://baref00t.io) Partner + Distributor APIs to AI assistants — Claude Desktop, Cursor, ChatGPT remote MCP, generic MCP clients.
|
|
6
|
+
|
|
7
|
+
## Hosted endpoint
|
|
8
|
+
|
|
9
|
+
| Env | URL |
|
|
10
|
+
|---|---|
|
|
11
|
+
| Production | `https://mcp.baref00t.io/mcp` |
|
|
12
|
+
| Staging | `https://mcp.sandbox.baref00t.io/mcp` |
|
|
13
|
+
|
|
14
|
+
## Quick start (Claude Desktop)
|
|
15
|
+
|
|
16
|
+
`~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"baref00t": {
|
|
22
|
+
"url": "https://mcp.baref00t.io/mcp",
|
|
23
|
+
"headers": {
|
|
24
|
+
"Authorization": "Bearer pk_live_YOUR_PARTNER_KEY"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Restart Claude Desktop. Ask: **"List my baref00t customers"**.
|
|
32
|
+
|
|
33
|
+
## Authentication
|
|
34
|
+
|
|
35
|
+
Pass your existing baref00t Partner or Distributor API key in any of these headers:
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
Authorization: Bearer pk_live_…
|
|
39
|
+
X-Partner-Key: pk_live_…
|
|
40
|
+
X-Distributor-Key: dk_live_…
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Key prefix routes to the right scope. Partner keys see partner tools, distributor keys see distributor tools.
|
|
44
|
+
|
|
45
|
+
Get an API key at https://www.baref00t.io → Settings → API keys.
|
|
46
|
+
|
|
47
|
+
## Tool catalogue (v0.2 — 32 tools)
|
|
48
|
+
|
|
49
|
+
Full coverage of the Partner API + Distributor API. Destructive actions (delete, revoke, raw-secret reveals) include explicit warnings in the tool description so the AI assistant narrates the consequences before invoking.
|
|
50
|
+
|
|
51
|
+
### Partner — Account & Plan (3 tools, scope=`pk_*`)
|
|
52
|
+
|
|
53
|
+
| Tool | What it does |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `partner_get_plan_billing` | Plan + monthly quota usage + allowed products |
|
|
56
|
+
| `partner_get_billing` | Full billing snapshot (subscriptions, invoices, charges) |
|
|
57
|
+
| `partner_get_payment_portal_url` | Stripe Customer Portal deep-link for payment-method management |
|
|
58
|
+
|
|
59
|
+
### Partner — Branding (2 tools)
|
|
60
|
+
|
|
61
|
+
| Tool | What it does |
|
|
62
|
+
|---|---|
|
|
63
|
+
| `partner_get_branding` | Read name / company / brandColor / footerText / contactEmail / logo URL |
|
|
64
|
+
| `partner_update_branding` | Update branding fields (`name`, `company`, `brandColor`, `footerText`, `contactEmail`) — drives outbound email + report viewer chrome. `name` is the customer-facing Brand Name (preferred display); `company` is the legal/registration entity. |
|
|
65
|
+
|
|
66
|
+
### Partner — Customers (4 tools)
|
|
67
|
+
|
|
68
|
+
| Tool | What it does |
|
|
69
|
+
|---|---|
|
|
70
|
+
| `partner_list_customers` | List all customers in the partner account |
|
|
71
|
+
| `partner_get_customer` | Fetch one customer by id |
|
|
72
|
+
| `partner_create_customer` | Create a new customer (requires Microsoft Entra tenant id) |
|
|
73
|
+
| `partner_get_consent_url` | Get the customer-facing Microsoft admin-consent URL for a product |
|
|
74
|
+
| `partner_send_consent_email` | Email the consent link to the customer's configured recipients |
|
|
75
|
+
|
|
76
|
+
### Partner — Assessments (5 tools)
|
|
77
|
+
|
|
78
|
+
| Tool | What it does |
|
|
79
|
+
|---|---|
|
|
80
|
+
| `partner_list_assessments` | List runs, filter by month/product/customer |
|
|
81
|
+
| `partner_get_assessment` | Fetch one assessment by id |
|
|
82
|
+
| `partner_get_assessment_status` | Poll status of a running assessment |
|
|
83
|
+
| `partner_trigger_assessment` | Start a new assessment (costs 1 quota credit) |
|
|
84
|
+
| `partner_get_assessment_report` | Fetch the 30-day SAS URL for the rendered report (HTML) |
|
|
85
|
+
|
|
86
|
+
### Partner — Members (5 tools)
|
|
87
|
+
|
|
88
|
+
| Tool | What it does |
|
|
89
|
+
|---|---|
|
|
90
|
+
| `partner_list_members` | List Admin/Member/Viewer roster |
|
|
91
|
+
| `partner_invite_member` | Invite by email + role |
|
|
92
|
+
| `partner_update_member` | Change role or status (last-Admin protection enforced server-side) |
|
|
93
|
+
| `partner_remove_member` | Remove a member (permanent — warns before invoking) |
|
|
94
|
+
| `partner_resend_invite` | Resend a pending invite |
|
|
95
|
+
|
|
96
|
+
### Partner — Webhooks (6 tools)
|
|
97
|
+
|
|
98
|
+
| Tool | What it does |
|
|
99
|
+
|---|---|
|
|
100
|
+
| `partner_list_webhooks` | List configured endpoints + subscribed events |
|
|
101
|
+
| `partner_create_webhook` | Create endpoint — raw secret returned ONCE in the response |
|
|
102
|
+
| `partner_update_webhook` | Update URL/events/enabled/description; rotate secret if requested |
|
|
103
|
+
| `partner_delete_webhook` | Delete endpoint (warns: stops in-flight retries) |
|
|
104
|
+
| `partner_test_webhook` | Fire a `test.ping` event to verify the receiver |
|
|
105
|
+
| `partner_list_webhook_deliveries` | Recent delivery log with retry attempt count + response bodies |
|
|
106
|
+
|
|
107
|
+
### Partner — Mail (6 tools)
|
|
108
|
+
|
|
109
|
+
| Tool | What it does |
|
|
110
|
+
|---|---|
|
|
111
|
+
| `partner_mail_status` | Provider, connected mailbox, token validity |
|
|
112
|
+
| `partner_mail_set_mode` | Switch sender (`resend` / `microsoft` / `off`) |
|
|
113
|
+
| `partner_mail_disconnect` | Revoke the cached refresh token, revert to Resend |
|
|
114
|
+
| `partner_mail_send_test` | Send a test email to the calling user via Microsoft Graph |
|
|
115
|
+
| `partner_mail_set_shared_mailbox` | Set/clear the shared-mailbox UPN (FROM address override) |
|
|
116
|
+
| `partner_mail_start_connect` | Get Microsoft authorize URL for the partner admin to grant consent |
|
|
117
|
+
|
|
118
|
+
### Partner — API Keys (3 tools)
|
|
119
|
+
|
|
120
|
+
| Tool | What it does |
|
|
121
|
+
|---|---|
|
|
122
|
+
| `partner_list_keys` | List active API key slots (last 4 chars + slot number; max 2) |
|
|
123
|
+
| `partner_create_key` | Generate a new key — raw value returned ONCE; costs an active slot |
|
|
124
|
+
| `partner_revoke_key` | Revoke key by slot — permanent, can lock you out if it's the slot you're using |
|
|
125
|
+
|
|
126
|
+
### Partner — Pipeline / Leads (10 tools)
|
|
127
|
+
|
|
128
|
+
Requires the partner record to have `prospecting` in `enabledFeatures` (admin-granted only — no plan tier auto-includes it). All tools 403 with `FEATURE_NOT_ENABLED` otherwise.
|
|
129
|
+
|
|
130
|
+
| Tool | What it does |
|
|
131
|
+
|---|---|
|
|
132
|
+
| `partner_list_leads` | Paginated list with stage filter / search / stage-count rollup |
|
|
133
|
+
| `partner_get_lead` | One lead with full contact list + last 50 activity entries |
|
|
134
|
+
| `partner_create_lead` | Create from a domain — sync Apollo + Hunter + M365 OIDC enrichment by default |
|
|
135
|
+
| `partner_bulk_create_leads` | Up to 50 domains in one call — async enrichment |
|
|
136
|
+
| `partner_update_lead` | Partial update (company / contacts / partner overrides / notes / lostReason) |
|
|
137
|
+
| `partner_delete_lead` | Soft-delete — cancels in-flight outreach cadence |
|
|
138
|
+
| `partner_enrich_lead` | Re-run enrichment; `force: true` bypasses the freshness cache |
|
|
139
|
+
| `partner_set_lead_stage` | Set Won / Lost (terminal). Other stages advance server-side. |
|
|
140
|
+
| `partner_send_lead_consent` | **COSTS 1 CREDIT.** Kicks off the partner-branded outreach cadence — creates customer + assessment, sends touch-1 to up to 10 recipients, advances the lead to `OutreachSent`. Routes via `partner.mailProvider` (`resend` / `microsoft` / `off`); pass `skipEmail: true` to mint URLs without sending (or when mode is `off`). |
|
|
141
|
+
| `partner_list_lead_activity` | Paginated activity log per lead |
|
|
142
|
+
|
|
143
|
+
### Distributor (2 tools, scope=`dk_*`)
|
|
144
|
+
|
|
145
|
+
| Tool | What it does |
|
|
146
|
+
|---|---|
|
|
147
|
+
| `distributor_list_partners` | List sub-partners (optionally filtered by status) |
|
|
148
|
+
| `distributor_get_usage` | Aggregated month usage across all sub-partners |
|
|
149
|
+
|
|
150
|
+
### Versioning
|
|
151
|
+
|
|
152
|
+
| MCP version | SDK pin | Highlights |
|
|
153
|
+
|---|---|---|
|
|
154
|
+
| **0.2.0** (current) | `@baref00t/sdk@^0.6.0` | Full partner-portal surface coverage. 21 net new tools across branding, members, billing, webhooks, mail, keys. |
|
|
155
|
+
| 0.1.x | `@baref00t/sdk@^0.4.0` | Initial release: customers + assessments + plan/billing read |
|
|
156
|
+
|
|
157
|
+
## Local self-host
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
npm install -g @baref00t/mcp-server
|
|
161
|
+
BAREF00T_API_BASE=https://api.baref00t.io baref00t-mcp-server
|
|
162
|
+
# Listens on :8080
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
Then configure your MCP client to point at `http://localhost:8080/mcp` instead of the hosted URL. (The server itself is stateless multi-tenant — your API key still travels per-request.)
|
|
166
|
+
|
|
167
|
+
Or via Docker:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
docker run -d -p 8080:8080 \
|
|
171
|
+
-e BAREF00T_API_BASE=https://api.baref00t.io \
|
|
172
|
+
ghcr.io/becloudsmart-com/baref00t-mcp:latest
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
## Operational config (KV-backed)
|
|
176
|
+
|
|
177
|
+
When deployed to our hosted ACA, the following config lives in Key Vault and can be rotated **without redeploying** (server picks up changes within 30s):
|
|
178
|
+
|
|
179
|
+
| Secret | Default | Purpose |
|
|
180
|
+
|---|---|---|
|
|
181
|
+
| `MCPLogLevel` | `info` | Pino log level |
|
|
182
|
+
| `MCPToolConcurrency` | `8` | Per-key in-flight cap (protects partner's upstream quota) |
|
|
183
|
+
| `MCPAllowedKeyPrefixes` | `pk_live_,dk_live_` (prod) | Security knob — emergency-revoke a key class |
|
|
184
|
+
| `MCPEnabledTools` | `` (all) | Per-tool kill-switch |
|
|
185
|
+
| `MCPFeatureFlags` | `{}` | Future toggles (OAuth shim, write tools, streaming) |
|
|
186
|
+
|
|
187
|
+
Local dev reads these from env vars (e.g. `MCP_LOG_LEVEL=debug`).
|
|
188
|
+
|
|
189
|
+
## Privacy notice
|
|
190
|
+
|
|
191
|
+
When you use this server with an AI assistant, the **assistant's provider** (Anthropic / OpenAI / etc.) sees the tool call inputs + outputs you ask the AI to make — including customer email addresses, assessment scores, and other Partner-API data. baref00t doesn't control how the AI provider stores those interactions. Confirm your contractual basis with your AI provider before connecting a partner key that has access to real customer data.
|
|
192
|
+
|
|
193
|
+
## License
|
|
194
|
+
|
|
195
|
+
[Apache-2.0](LICENSE).
|
package/dist/server.js
CHANGED
|
@@ -23,6 +23,8 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { createServer } from 'node:http';
|
|
25
25
|
import { randomUUID } from 'node:crypto';
|
|
26
|
+
import { readFileSync } from 'node:fs';
|
|
27
|
+
import { fileURLToPath } from 'node:url';
|
|
26
28
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
27
29
|
import { StreamableHTTPServerTransport } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
28
30
|
import { CallToolRequestSchema, ListToolsRequestSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
@@ -34,7 +36,28 @@ import { keyHashShort } from './sdkCache.js';
|
|
|
34
36
|
import { callTool, listToolsForScope } from './registry.js';
|
|
35
37
|
import { registerAllTools } from './tools/index.js';
|
|
36
38
|
const SDK_NAME = 'baref00t-mcp-server';
|
|
37
|
-
|
|
39
|
+
/**
|
|
40
|
+
* Read version dynamically from this package's package.json so the
|
|
41
|
+
* `/healthz` smoke + MCP `initialize` response always reflect the
|
|
42
|
+
* actual deployed package version. Hard-coding it bit us once when
|
|
43
|
+
* the constant drifted to 0.1.6 while npm/ACA had moved past v0.2 —
|
|
44
|
+
* the publish-mcp.yml smoke tested for the package version and
|
|
45
|
+
* failed every release until we noticed.
|
|
46
|
+
*
|
|
47
|
+
* dist/server.js is at packages/mcp-server/dist/server.js, so
|
|
48
|
+
* package.json is one directory up from the compiled file.
|
|
49
|
+
*/
|
|
50
|
+
function readSdkVersion() {
|
|
51
|
+
try {
|
|
52
|
+
const pkgPath = fileURLToPath(new URL('../package.json', import.meta.url));
|
|
53
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
54
|
+
return pkg.version ?? '0.0.0-unknown';
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return '0.0.0-unknown';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const SDK_VERSION = readSdkVersion();
|
|
38
61
|
async function main() {
|
|
39
62
|
const e = env();
|
|
40
63
|
const log = logger();
|
package/dist/server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,YAAY,EAA6C,MAAM,WAAW,CAAA;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAA;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAA;AAClG,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAA;AAC3C,OAAO,EAAE,GAAG,EAAE,MA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G,IAAI,6BAA6B,CAAC;QAClD,kBAAkB,EAAE,SAAS;QAC7B,kBAAkB,EAAE,IAAI;KACzB,CAAC,CAAA;IACF,MAAM,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAA;IAE5B,MAAM,SAAS,CAAC,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAEvC,MAAM,EAAE,CAAC,KAAK,CACZ;QACE,SAAS;QACT,KAAK,EAAE,GAAG,CAAC,KAAK;QAChB,OAAO,EAAE,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;KAClC,EACD,qBAAqB,CACtB,CAAA;AACH,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;IAC5B,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAqEH,wBAAgB,gBAAgB,IAAI,IAAI,CAoEvC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -46,6 +46,17 @@ import partnerMailStartConnect from './partner/mailStartConnect.js';
|
|
|
46
46
|
import partnerListKeys from './partner/listKeys.js';
|
|
47
47
|
import partnerCreateKey from './partner/createKey.js';
|
|
48
48
|
import partnerRevokeKey from './partner/revokeKey.js';
|
|
49
|
+
// Leads / Pipeline (#346 PR 3 + 4b)
|
|
50
|
+
import partnerListLeads from './partner/listLeads.js';
|
|
51
|
+
import partnerGetLead from './partner/getLead.js';
|
|
52
|
+
import partnerCreateLead from './partner/createLead.js';
|
|
53
|
+
import partnerBulkCreateLeads from './partner/bulkCreateLeads.js';
|
|
54
|
+
import partnerUpdateLead from './partner/updateLead.js';
|
|
55
|
+
import partnerDeleteLead from './partner/deleteLead.js';
|
|
56
|
+
import partnerEnrichLead from './partner/enrichLead.js';
|
|
57
|
+
import partnerSetLeadStage from './partner/setLeadStage.js';
|
|
58
|
+
import partnerListLeadActivity from './partner/listLeadActivity.js';
|
|
59
|
+
import partnerSendLeadConsent from './partner/sendLeadConsent.js';
|
|
49
60
|
import distributorListPartners from './distributor/listPartners.js';
|
|
50
61
|
import distributorGetUsage from './distributor/getUsage.js';
|
|
51
62
|
let _registered = false;
|
|
@@ -95,6 +106,17 @@ export function registerAllTools() {
|
|
|
95
106
|
registerTool(partnerListKeys);
|
|
96
107
|
registerTool(partnerCreateKey);
|
|
97
108
|
registerTool(partnerRevokeKey);
|
|
109
|
+
// Partner — leads / pipeline (10)
|
|
110
|
+
registerTool(partnerListLeads);
|
|
111
|
+
registerTool(partnerGetLead);
|
|
112
|
+
registerTool(partnerCreateLead);
|
|
113
|
+
registerTool(partnerBulkCreateLeads);
|
|
114
|
+
registerTool(partnerUpdateLead);
|
|
115
|
+
registerTool(partnerDeleteLead);
|
|
116
|
+
registerTool(partnerEnrichLead);
|
|
117
|
+
registerTool(partnerSetLeadStage);
|
|
118
|
+
registerTool(partnerListLeadActivity);
|
|
119
|
+
registerTool(partnerSendLeadConsent);
|
|
98
120
|
// Distributor (2)
|
|
99
121
|
registerTool(distributorListPartners);
|
|
100
122
|
registerTool(distributorGetUsage);
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,oBAAoB,MAAM,4BAA4B,CAAA;AAC7D,OAAO,kBAAkB,MAAM,0BAA0B,CAAA;AACzD,OAAO,qBAAqB,MAAM,6BAA6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AAC,uBAAuB,CAAC,CAAA;IACrC,YAAY,CAAC,mBAAmB,CAAC,CAAA;AACnC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Tool } from '../../registry.js';
|
|
3
|
+
declare const inputSchema: z.ZodObject<{
|
|
4
|
+
domains: z.ZodArray<z.ZodString, "many">;
|
|
5
|
+
product: z.ZodOptional<z.ZodString>;
|
|
6
|
+
maturityTarget: z.ZodOptional<z.ZodString>;
|
|
7
|
+
enrich: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strict", z.ZodTypeAny, {
|
|
9
|
+
domains: string[];
|
|
10
|
+
product?: string | undefined;
|
|
11
|
+
maturityTarget?: string | undefined;
|
|
12
|
+
enrich?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
domains: string[];
|
|
15
|
+
product?: string | undefined;
|
|
16
|
+
maturityTarget?: string | undefined;
|
|
17
|
+
enrich?: boolean | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
declare const tool: Tool<typeof inputSchema>;
|
|
20
|
+
export default tool;
|
|
21
|
+
//# sourceMappingURL=bulkCreateLeads.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkCreateLeads.d.ts","sourceRoot":"","sources":["../../../src/tools/partner/bulkCreateLeads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;EAiBN,CAAA;AAEX,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getPartnerClient } from '../../sdkCache.js';
|
|
3
|
+
const inputSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
domains: z
|
|
6
|
+
.array(z.string().min(3))
|
|
7
|
+
.min(1)
|
|
8
|
+
.max(50)
|
|
9
|
+
.describe('Up to 50 bare domains. Duplicates within the input are deduped server-side.'),
|
|
10
|
+
product: z.string().optional(),
|
|
11
|
+
maturityTarget: z.string().optional(),
|
|
12
|
+
enrich: z
|
|
13
|
+
.boolean()
|
|
14
|
+
.optional()
|
|
15
|
+
.describe('Background enrichment after create (default: true). Bulk enrichment is async — ' +
|
|
16
|
+
'poll partner_get_lead or partner_list_leads to see results land.'),
|
|
17
|
+
})
|
|
18
|
+
.strict();
|
|
19
|
+
const tool = {
|
|
20
|
+
name: 'partner_bulk_create_leads',
|
|
21
|
+
scope: 'partner',
|
|
22
|
+
description: 'Bulk-create up to 50 leads from a list of domains. Requires `prospecting` feature flag. ' +
|
|
23
|
+
'Returns `created` (lead rows) + `skipped` (duplicates / invalid domains with reasons). ' +
|
|
24
|
+
'Enrichment runs in the background — partner_get_lead will return enriched data once Apollo / ' +
|
|
25
|
+
'Hunter / M365 finish (typically <30s per lead).',
|
|
26
|
+
schema: inputSchema,
|
|
27
|
+
async handler(input, ctx) {
|
|
28
|
+
const client = getPartnerClient(ctx.auth.apiKey);
|
|
29
|
+
return client.leads.bulkCreate(input);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
export default tool;
|
|
33
|
+
//# sourceMappingURL=bulkCreateLeads.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkCreateLeads.js","sourceRoot":"","sources":["../../../src/tools/partner/bulkCreateLeads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,GAAG,CAAC;KAClB,MAAM,CAAC;IACN,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CAAC,6EAA6E,CAAC;IAC1F,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,MAAM,EAAE,CAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,iFAAiF;QAC/E,kEAAkE,CACrE;CACJ,CAAC;KACD,MAAM,EAAE,CAAA;AAEX,MAAM,IAAI,GAA6B;IACrC,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,0FAA0F;QAC1F,yFAAyF;QACzF,+FAA+F;QAC/F,iDAAiD;IACnD,MAAM,EAAE,WAAW;IACnB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG;QACtB,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,OAAO,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;IACvC,CAAC;CACF,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Tool } from '../../registry.js';
|
|
3
|
+
declare const inputSchema: z.ZodObject<{
|
|
4
|
+
domain: z.ZodString;
|
|
5
|
+
product: z.ZodOptional<z.ZodString>;
|
|
6
|
+
maturityTarget: z.ZodOptional<z.ZodString>;
|
|
7
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
8
|
+
enrich: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
domain: string;
|
|
11
|
+
product?: string | undefined;
|
|
12
|
+
maturityTarget?: string | undefined;
|
|
13
|
+
notes?: string | undefined;
|
|
14
|
+
enrich?: boolean | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
domain: string;
|
|
17
|
+
product?: string | undefined;
|
|
18
|
+
maturityTarget?: string | undefined;
|
|
19
|
+
notes?: string | undefined;
|
|
20
|
+
enrich?: boolean | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const tool: Tool<typeof inputSchema>;
|
|
23
|
+
export default tool;
|
|
24
|
+
//# sourceMappingURL=createLead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createLead.d.ts","sourceRoot":"","sources":["../../../src/tools/partner/createLead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;EAsBN,CAAA;AAEX,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getPartnerClient } from '../../sdkCache.js';
|
|
3
|
+
const inputSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
domain: z
|
|
6
|
+
.string()
|
|
7
|
+
.min(3)
|
|
8
|
+
.describe('Bare domain — e.g. "acme.com". Protocol, path, and `www.` prefix are stripped server-side.'),
|
|
9
|
+
product: z.string().optional().describe('Product slug to associate (e.g. "e8", "tenant-health").'),
|
|
10
|
+
maturityTarget: z
|
|
11
|
+
.string()
|
|
12
|
+
.optional()
|
|
13
|
+
.describe('Optional product-specific maturity target (e.g. "level-2").'),
|
|
14
|
+
notes: z.string().max(5000).optional().describe('Internal notes on the lead.'),
|
|
15
|
+
enrich: z
|
|
16
|
+
.boolean()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Run Apollo + Hunter + M365 OIDC enrichment synchronously after create. ' +
|
|
19
|
+
'Default: true. Set false to skip and call partner_enrich_lead later.'),
|
|
20
|
+
})
|
|
21
|
+
.strict();
|
|
22
|
+
const tool = {
|
|
23
|
+
name: 'partner_create_lead',
|
|
24
|
+
scope: 'partner',
|
|
25
|
+
description: 'Create a single lead from a domain. Requires `prospecting` feature flag. By default runs ' +
|
|
26
|
+
'enrichment synchronously: Apollo + Hunter populate company/contact fields, and an OIDC probe ' +
|
|
27
|
+
'against login.microsoftonline.com fills tenantId/isOnM365 when the domain is on Entra. ' +
|
|
28
|
+
'Returns 409 with `existingLeadId` if a lead for the same domain already exists for this partner.',
|
|
29
|
+
schema: inputSchema,
|
|
30
|
+
async handler(input, ctx) {
|
|
31
|
+
const client = getPartnerClient(ctx.auth.apiKey);
|
|
32
|
+
return client.leads.create(input);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
export default tool;
|
|
36
|
+
//# sourceMappingURL=createLead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createLead.js","sourceRoot":"","sources":["../../../src/tools/partner/createLead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,GAAG,CAAC;KAClB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,4FAA4F,CAC7F;IACH,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,yDAAyD,CAAC;IAClG,cAAc,EAAE,CAAC;SACd,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAC9E,MAAM,EAAE,CAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,yEAAyE;QACvE,sEAAsE,CACzE;CACJ,CAAC;KACD,MAAM,EAAE,CAAA;AAEX,MAAM,IAAI,GAA6B;IACrC,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,2FAA2F;QAC3F,+FAA+F;QAC/F,yFAAyF;QACzF,kGAAkG;IACpG,MAAM,EAAE,WAAW;IACnB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG;QACtB,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACnC,CAAC;CACF,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Tool } from '../../registry.js';
|
|
3
|
+
declare const inputSchema: z.ZodObject<{
|
|
4
|
+
leadId: z.ZodString;
|
|
5
|
+
}, "strict", z.ZodTypeAny, {
|
|
6
|
+
leadId: string;
|
|
7
|
+
}, {
|
|
8
|
+
leadId: string;
|
|
9
|
+
}>;
|
|
10
|
+
declare const tool: Tool<typeof inputSchema>;
|
|
11
|
+
export default tool;
|
|
12
|
+
//# sourceMappingURL=deleteLead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteLead.d.ts","sourceRoot":"","sources":["../../../src/tools/partner/deleteLead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;EAIN,CAAA;AAEX,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAalC,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getPartnerClient } from '../../sdkCache.js';
|
|
3
|
+
const inputSchema = z
|
|
4
|
+
.object({
|
|
5
|
+
leadId: z.string().uuid(),
|
|
6
|
+
})
|
|
7
|
+
.strict();
|
|
8
|
+
const tool = {
|
|
9
|
+
name: 'partner_delete_lead',
|
|
10
|
+
scope: 'partner',
|
|
11
|
+
description: 'Soft-delete a lead. Requires `prospecting` feature flag. Cancels any in-flight outreach ' +
|
|
12
|
+
'cadence. The row stays in Postgres for audit; re-creating the same domain after deletion ' +
|
|
13
|
+
'creates a fresh lead row with a new id. Idempotent — re-deleting an already-deleted lead ' +
|
|
14
|
+
'returns 404.',
|
|
15
|
+
schema: inputSchema,
|
|
16
|
+
async handler(input, ctx) {
|
|
17
|
+
const client = getPartnerClient(ctx.auth.apiKey);
|
|
18
|
+
return client.leads.delete(input.leadId);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default tool;
|
|
22
|
+
//# sourceMappingURL=deleteLead.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteLead.js","sourceRoot":"","sources":["../../../src/tools/partner/deleteLead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAGpD,MAAM,WAAW,GAAG,CAAC;KAClB,MAAM,CAAC;IACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAC1B,CAAC;KACD,MAAM,EAAE,CAAA;AAEX,MAAM,IAAI,GAA6B;IACrC,IAAI,EAAE,qBAAqB;IAC3B,KAAK,EAAE,SAAS;IAChB,WAAW,EACT,0FAA0F;QAC1F,2FAA2F;QAC3F,2FAA2F;QAC3F,cAAc;IAChB,MAAM,EAAE,WAAW;IACnB,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG;QACtB,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC1C,CAAC;CACF,CAAA;AAED,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { Tool } from '../../registry.js';
|
|
3
|
+
declare const inputSchema: z.ZodObject<{
|
|
4
|
+
leadId: z.ZodString;
|
|
5
|
+
force: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
leadId: string;
|
|
8
|
+
force?: boolean | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
leadId: string;
|
|
11
|
+
force?: boolean | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
declare const tool: Tool<typeof inputSchema>;
|
|
14
|
+
export default tool;
|
|
15
|
+
//# sourceMappingURL=enrichLead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enrichLead.d.ts","sourceRoot":"","sources":["../../../src/tools/partner/enrichLead.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAE7C,QAAA,MAAM,WAAW;;;;;;;;;EAUN,CAAA;AAEX,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAelC,CAAA;AAED,eAAe,IAAI,CAAA"}
|