conduyt-mcp 4.100.0 → 4.101.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 +1 -1
- package/dist/tools/contacts.d.ts +2 -0
- package/dist/tools/contacts.js +13 -5
- package/dist/tools/short-links.js +2 -2
- package/package.json +1 -1
- package/scripts/coverage-matrix.json +7 -3
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ MCP server for [Conduyt CRM](https://conduyt.app) — expose your CRM as AI-acce
|
|
|
14
14
|
### Contacts
|
|
15
15
|
| Tool | Description |
|
|
16
16
|
|------|-------------|
|
|
17
|
-
| `conduyt_list_contacts` | List and search contacts with filters |
|
|
17
|
+
| `conduyt_list_contacts` | List and search contacts with filters (search, exact `email`, `tag` names, `tagId` uuids: ANY-of, repeatable up to 20, `meta.total` counts the filtered set) |
|
|
18
18
|
| `conduyt_get_contact` | Get full contact details with timeline; `hasOutboundSms` = the workspace has ever provably texted the contact; `hasOutboundEmail` = the same for email; `duplicateProposals` and `heldIdentifiers` = the open possible-duplicate lines and held identifiers |
|
|
19
19
|
| `conduyt_create_contact` | Create a new contact (a 409 with `existingId`, `rule`, `ruleVersion`, `matchedOn`, `reason` means the identity policy identified the incoming person with that record: confirm the identity (name, company) before updating it, a shared phone or email is not proof, and the server creates (with a passive duplicate proposal) a different person on a shared identifier; 409 `identifier_changed` / `owner_busy` and 503 `IDENTITY_INDEX_NOT_READY` are retryable, nothing written; with `callId`: the lead for a contact-less inbound call, linked in the same transaction; the server derives source "Inbound Call" and the owner) |
|
|
20
20
|
| `conduyt_update_contact` | Update contact fields (incl. `assignedTo`; `keepPreviousOwnerAsCollaborator: true` with a reassignment keeps the previous owner as a read-only collaborator instead of releasing them, 400 without `assignedTo`); optional `expectedRevision` (0..2147483647) refuses a stale save with 409 `contact_changed` (code + current revision in the error) |
|
package/dist/tools/contacts.d.ts
CHANGED
|
@@ -20,4 +20,6 @@ export declare const LOSER_ORDER_NOTE = "losers are merged in the order given: f
|
|
|
20
20
|
export declare const MERGE_PREVIEW_MAX = 50;
|
|
21
21
|
export declare const MERGE_PREVIEW_TTL_MS: number;
|
|
22
22
|
export declare const EMAIL_LOOKUP_NOTE = "Exact email lookup: one address, or up to 20 distinct addresses in an array. Each is trimmed and lower-cased and matches the contact's primary email OR any secondary email slot (email_2 and up); it is an exact match, not a substring search (use `search` for partial text). Combines with every other filter (AND) inside your account and visibility. An empty or invalid address, or more than 20 distinct addresses, is a 400. On a workspace whose identifier index is still being built, the lookup answers 422 when the stored spellings of the requested addresses exceed its stored-spelling bind budget (a count of spellings, not of contacts; other filters do not help); ask support to complete the identifier backfill. Send addresses once; duplicates collapse.";
|
|
23
|
+
export declare const TAG_FILTER_NOTE = "Filter by tag NAME: one name, or up to 20 distinct names in an array (the contact carries ANY of them). Names match case-insensitively within your account. Cannot be combined with tagId (400). To filter by tag id use tagId.";
|
|
24
|
+
export declare const TAG_ID_FILTER_NOTE = "Filter by tag ID (uuid): one id, or up to 20 distinct ids in an array (the contact carries ANY of them). A malformed id or more than 20 ids is a 400; an id that is not a tag of your account matches nothing; a merged-away tag id follows its alias to the live tag. Cannot be combined with tag (400). The returned total (meta.total) counts the filtered set, so tagId with per_page=1 is a cheap count of the contacts holding a tag.";
|
|
23
25
|
export declare function registerContactTools(server: McpServer, client: ConduytClient): void;
|
package/dist/tools/contacts.js
CHANGED
|
@@ -70,27 +70,35 @@ function createMergePreviewStore() {
|
|
|
70
70
|
/** (API ?email=, app main 318adf38d) exact lookup of one address; the API trims and lower-cases, so a stray space is harmless */
|
|
71
71
|
const EMAIL_LOOKUP_ONE = z.string().trim().min(1).max(254);
|
|
72
72
|
export const EMAIL_LOOKUP_NOTE = "Exact email lookup: one address, or up to 20 distinct addresses in an array. Each is trimmed and lower-cased and matches the contact's primary email OR any secondary email slot (email_2 and up); it is an exact match, not a substring search (use `search` for partial text). Combines with every other filter (AND) inside your account and visibility. An empty or invalid address, or more than 20 distinct addresses, is a 400. On a workspace whose identifier index is still being built, the lookup answers 422 when the stored spellings of the requested addresses exceed its stored-spelling bind budget (a count of spellings, not of contacts; other filters do not help); ask support to complete the identifier backfill. Send addresses once; duplicates collapse.";
|
|
73
|
+
/** (API ?tag= / ?tagId=, #506) both are repeatable and capped at 20 distinct values; the API reads every occurrence (ANY-of) and refuses tagId together with tag */
|
|
74
|
+
const TAG_FILTER_MAX = 20;
|
|
75
|
+
export const TAG_FILTER_NOTE = "Filter by tag NAME: one name, or up to 20 distinct names in an array (the contact carries ANY of them). Names match case-insensitively within your account. Cannot be combined with tagId (400). To filter by tag id use tagId.";
|
|
76
|
+
export const TAG_ID_FILTER_NOTE = "Filter by tag ID (uuid): one id, or up to 20 distinct ids in an array (the contact carries ANY of them). A malformed id or more than 20 ids is a 400; an id that is not a tag of your account matches nothing; a merged-away tag id follows its alias to the live tag. Cannot be combined with tag (400). The returned total (meta.total) counts the filtered set, so tagId with per_page=1 is a cheap count of the contacts holding a tag.";
|
|
73
77
|
export function registerContactTools(server, client) {
|
|
74
78
|
const mergePreviews = createMergePreviewStore();
|
|
75
|
-
server.tool("conduyt_list_contacts", "List and search contacts with filtering. To find the contact(s) holding a known email address, pass `email` (exact match on the primary or any secondary email); `search` is a substring search. Returns paginated results with name, email, phone, tags, source, and assignee. Each row carries `revision` (integer save revision; pass it back as expectedRevision on conduyt_update_contact or the collaborator tools).", {
|
|
79
|
+
server.tool("conduyt_list_contacts", "List and search contacts with filtering. To find the contact(s) holding a known email address, pass `email` (exact match on the primary or any secondary email); `search` is a substring search. To list the contacts carrying a tag (or any of several tags), pass `tagId` (uuid) or `tag` (name); meta.total is the count of that filtered set. Returns paginated results with name, email, phone, tags, source, and assignee. Each row carries `revision` (integer save revision; pass it back as expectedRevision on conduyt_update_contact or the collaborator tools).", {
|
|
76
80
|
search: z.string().optional().describe("Search by name, email, or phone number"),
|
|
77
81
|
email: z.union([EMAIL_LOOKUP_ONE, z.array(EMAIL_LOOKUP_ONE).min(1).max(20)]).optional().describe(EMAIL_LOOKUP_NOTE),
|
|
78
|
-
tag: z.string().optional().describe(
|
|
82
|
+
tag: z.union([z.string().trim().min(1), z.array(z.string().trim().min(1)).min(1).max(TAG_FILTER_MAX)]).optional().describe(TAG_FILTER_NOTE),
|
|
83
|
+
tagId: z.union([z.string().trim().uuid(), z.array(z.string().trim().uuid()).min(1).max(TAG_FILTER_MAX)]).optional().describe(TAG_ID_FILTER_NOTE),
|
|
79
84
|
source: z.string().optional().describe("Filter by source (e.g. 'signup', 'import', 'manual')"),
|
|
80
85
|
assignedTo: z.string().optional().describe("Filter by assigned user ID"),
|
|
81
86
|
masterStatus: z.array(z.string().trim().min(1).max(40)).max(20).optional().describe("Only contacts whose LEAD (master) status is one of these: 'open', 'won', 'lost', 'abandoned', 'disqualified' or an account custom status. Unknown values are a 400."),
|
|
82
87
|
excludeMasterStatus: z.array(z.string().trim().min(1).max(40)).max(20).optional().describe("Hide contacts whose lead status is one of these — e.g. ['won','lost','abandoned','disqualified'] is the 'Active' view. Naming a status in both lists is a 400."),
|
|
83
88
|
page: z.number().optional().describe("Page number (default 1)"),
|
|
84
89
|
per_page: z.number().optional().describe("Results per page (default 25, max 100)"),
|
|
85
|
-
}, async ({ search, email, tag, source, assignedTo, masterStatus, excludeMasterStatus, page, per_page }) => {
|
|
90
|
+
}, async ({ search, email, tag, tagId, source, assignedTo, masterStatus, excludeMasterStatus, page, per_page }) => {
|
|
86
91
|
const params = new URLSearchParams();
|
|
87
92
|
if (search)
|
|
88
93
|
params.set("search", search);
|
|
89
94
|
// repeated `email` params, one per address (the API reads every occurrence); an omitted or empty array sends none
|
|
90
95
|
for (const address of email === undefined ? [] : Array.isArray(email) ? email : [email])
|
|
91
96
|
params.append("email", address);
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
// repeated `tag` / `tagId` params, one per value (the API reads every occurrence and refuses the two together)
|
|
98
|
+
for (const name of tag === undefined ? [] : Array.isArray(tag) ? tag : [tag])
|
|
99
|
+
params.append("tag", name);
|
|
100
|
+
for (const id of tagId === undefined ? [] : Array.isArray(tagId) ? tagId : [tagId])
|
|
101
|
+
params.append("tagId", id);
|
|
94
102
|
if (source)
|
|
95
103
|
params.set("source", source);
|
|
96
104
|
if (assignedTo)
|
|
@@ -8,7 +8,7 @@ import { strictInput } from "./strict.js";
|
|
|
8
8
|
* Retry-After) reaches the agent as the first answer and is never replayed here.
|
|
9
9
|
*/
|
|
10
10
|
export function registerShortLinkTools(server, client) {
|
|
11
|
-
strictInput(server.tool("conduyt_create_short_link", "Make (or reuse) this workspace's Conduyt short link for a public link-shortener address that the Message check flagged (POST /api/v1/short-links; an API key needs the 'messages' scope, an sms key is accepted, and the member needs communications.create): put the returned short link in the message in place of the flagged address. The short link redirects to the address exactly as given; there is one link per workspace and address, so a repeat returns the same link. Shortenable: a web link the link check would fetch and the Message check flagged as a public link shortener. NOT shortenable (400 not_shortenable, before any work): an address on our own host (unsubscribe, one-time booking and file links, click tracking), an address with a merge field, mailto:, tel: or sms: addresses, one of our own short links, or any address the Message check does not flag as a link shortener. Answers 200 { data: { url: the short link, target: the address given } }. Errors, surfaced verbatim and never retried: 400 invalid_body (url missing, not a string or an unknown key) / not_shortenable; 403 forbidden; 413 body_too_large; 429 rate_limited (30 per minute per workspace and member; the Retry-After seconds are in the error); 503 short_link_unavailable (the link could not be made; nothing changed, try again later).", {
|
|
12
|
-
url: z.string().
|
|
11
|
+
strictInput(server.tool("conduyt_create_short_link", "Make (or reuse) this workspace's Conduyt short link for a public link-shortener address that the Message check flagged (POST /api/v1/short-links; an API key needs the 'messages' scope, an sms key is accepted, and the member needs communications.create): put the returned short link in the message in place of the flagged address. The short link redirects to the address exactly as given; there is one link per workspace and address, so a repeat returns the same link. Shortenable: a web link of at most 2,048 characters that the link check would fetch and the Message check flagged as a public link shortener. NOT shortenable (400 not_shortenable, before any work): an address on our own host (unsubscribe, one-time booking and file links, click tracking), an address with a merge field, mailto:, tel: or sms: addresses, one of our own short links, or any address the Message check does not flag as a link shortener. Answers 200 { data: { url: the short link, target: the address given } }. Errors, surfaced verbatim and never retried: 400 invalid_body (url missing, not a string or an unknown key) / not_shortenable; 403 forbidden; 413 body_too_large; 429 rate_limited (30 per minute per workspace and member; the Retry-After seconds are in the error); 503 short_link_unavailable (the link could not be made; nothing changed, try again later).", {
|
|
12
|
+
url: z.string().describe("The flagged public link-shortener address to replace, e.g. https://bit.ly/abc123 (at most 2,048 characters; sent exactly as given, an empty or over-long value reaches the route and is its 400; the redirect goes to this address)"),
|
|
13
13
|
}, async ({ url }) => formatResult(await client.post("/api/v1/short-links", { url }))));
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-10-
|
|
2
|
+
"generatedAt": "2026-10-27T01:28:17.262Z",
|
|
3
3
|
"toolCount": 366,
|
|
4
|
-
"totalEndpoints":
|
|
4
|
+
"totalEndpoints": 1108,
|
|
5
5
|
"counts": {
|
|
6
6
|
"covered": 322,
|
|
7
|
-
"excluded":
|
|
7
|
+
"excluded": 332,
|
|
8
8
|
"planned": 454,
|
|
9
9
|
"uncategorized": 0
|
|
10
10
|
},
|
|
@@ -593,6 +593,10 @@
|
|
|
593
593
|
"status": "excluded",
|
|
594
594
|
"reason": "interactive session/password/SSO flows; API keys are the MCP auth model"
|
|
595
595
|
},
|
|
596
|
+
"POST /api/v1/auth/signup-events": {
|
|
597
|
+
"status": "excluded",
|
|
598
|
+
"reason": "interactive session/password/SSO flows; API keys are the MCP auth model"
|
|
599
|
+
},
|
|
596
600
|
"POST /api/v1/auth/switch-account": {
|
|
597
601
|
"status": "excluded",
|
|
598
602
|
"reason": "interactive session/password/SSO flows; API keys are the MCP auth model"
|