conduyt-mcp 4.105.30 → 4.105.32
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
MCP server for [Conduyt CRM](https://conduyt.app) — expose your CRM as AI-accessible tools. Covers the core CRM surface (contacts, deals, pipelines, custom fields, automations, messaging, and more); use `conduyt_api_catalog` to discover the full set of 600+ REST endpoints.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Tools
|
|
6
6
|
|
|
7
7
|
### Discovery
|
|
8
8
|
| Tool | Description |
|
|
@@ -149,7 +149,7 @@ Connecting Calendly is browser-only (OAuth 2.0 + PKCE): the user opens `{app}/ap
|
|
|
149
149
|
### Call log search (read-only, dialer:view)
|
|
150
150
|
| Tool | Description |
|
|
151
151
|
|------|-------------|
|
|
152
|
-
| `conduyt_search_dialer_history` | Search and filter the dialer call log for QA (`GET /dialer/history`, 200 per page): `q` (200 characters at most; matches name, number, agent and transcript, not notes), `recordedOnly`, `disposition` (100 characters at most), `userId`, `dateFrom` / `dateTo`, `direction`, `status`, `mine`. Each row carries `match { field, snippet, ranges }` when `q` is given; `meta.incomplete` with `incompleteReason: "number_matches_capped"` means `total` is a lower bound; 400s surfaced verbatim | Also `unmatched` (only calls no contact is linked to) and `line` (only inbound calls to our line).
|
|
152
|
+
| `conduyt_search_dialer_history` | Search and filter the dialer call log for QA (`GET /dialer/history`, 200 per page): `q` (200 characters at most; matches name, number, agent and transcript, not notes), `recordedOnly`, `disposition` (100 characters at most), `userId`, `dateFrom` / `dateTo`, `direction`, `status`, `mine`. Each row carries `match { field, snippet, ranges }` when `q` is given; `meta.incomplete` with `incompleteReason: "number_matches_capped"` means `total` is a lower bound; each row carries `audioDiagnostics` (what the softphone reported about the call's audio: warning / cleared / gap rows, `[]` when nothing; this tool only); 400s surfaced verbatim | Also `unmatched` (only calls no contact is linked to) and `line` (only inbound calls to our line).
|
|
153
153
|
| `conduyt_count_unknown_callers` | The toll-free counter (`GET /calls/unknown-callers`): for a `line` since an ISO `since` (start of day, within 31 days), `total` inbound calls that arrived with no contact and `unmatched` still contact-less; `dialer:view` |
|
|
154
154
|
| `conduyt_link_call` | Link a contact-less call to an existing contact (`POST /calls/{id}/link`, the unknown-caller prompt's Search a contact + Attach): `attachNumber` writes the number into the next free phone slot, `dryRun` previews; refusals `call_already_linked`, `no_free_phone_slot`, `number_on_another_contact`, `number_owner_undecidable`, `contact_not_editable`, `number_unusable`; `dialer:create` (+ `contacts:edit` to attach) |
|
|
155
155
|
| `conduyt_search_dialer_calls` | The recordings / voicemail list with the same search and filters (`GET /dialer/calls`, 100 per page) |
|
|
@@ -203,6 +203,7 @@ No tool carries call audio. Fetch it with `GET {API base}/api/v1/dialer/call/{id
|
|
|
203
203
|
| `conduyt_send_invoice` | Send invoice via email with PDF and Stripe payment link (`resend` starts a new send; typed busy answers `invoice_send_pending`, `invoice_send_complained`, `invoice_send_in_flight`, `gate_busy`) |
|
|
204
204
|
| `conduyt_get_invoice_send_options` | What Send can do now (Email, Text it, Copy link), with reasons and the Text it text |
|
|
205
205
|
| `conduyt_get_invoice_activity` | The invoice history (sent, viewed, payments, voided with its reason) |
|
|
206
|
+
| `conduyt_get_invoicing_settings` / `conduyt_update_invoicing_settings` | The business's own invoice payment link (`GET` / `PATCH /settings/invoicing`; `settings:view` / `settings:edit`): `{ paymentLink: { url, label, instructions } \| null, defaultButtonLabel, settingsRevision }`. Invoices show a Pay button that opens the link; Conduyt never takes the money and never marks an invoice paid from it. The update REPLACES the link (`paymentLink` object, a missing label or instructions is stored as none) and takes `paymentLink: null` to remove it; `expectedSettingsRevision` (the revision the read returned) is required. Refusals, never retried: 409 `stale_settings_revision`, 422 `invalid_payment_link_url` / `_label` / `_instructions`, 503 `payment_link_ownership_unverifiable` (nothing saved, retry in a minute) |
|
|
206
207
|
| `conduyt_mark_invoice_sent` | Record that it went out another way (`via` manual or link) |
|
|
207
208
|
| `conduyt_record_invoice_payment` | Record a payment received outside Stripe (destructive: cannot be removed through the API) |
|
|
208
209
|
| `conduyt_void_invoice` | Void an invoice with a required reason (destructive) |
|
|
@@ -401,6 +402,7 @@ Team Chat 2.0 publishes thin events (ids and kinds, never message content) on th
|
|
|
401
402
|
| `conduyt_ai_summarize_contact` | AI summary with sentiment and next steps |
|
|
402
403
|
| `conduyt_ai_chat` | Conversational AI assistant grounded in your CRM (optionally pinned to a record) |
|
|
403
404
|
| `conduyt_ai_improve_email` | Rewrite an email draft for clarity, tone, and persuasiveness |
|
|
405
|
+
| `conduyt_ai_improve_sms` | Rewrite one SMS text (`POST /ai/improve-sms`), checked by the server before it is returned: links, times, prices, opt-out lines and merge fields kept as written; `body` 1-1600 characters, optional `transport` (twilio, project_blue, whatsapp, fromk or null); returns `{ data: { body } }`. An opt-out-only draft is refused 422 `ai_rewrite_rejected` before any AI credit is spent; a rewrite that broke a rule is 502; the refusal message is returned as the server wrote it |
|
|
404
406
|
| `conduyt_ai_deal_insights` | AI risk/momentum analysis and next actions for a single deal |
|
|
405
407
|
| `conduyt_ai_conversation_intelligence` | AI summary/sentiment/objections for a transcribed call |
|
|
406
408
|
| `conduyt_ai_call_disposition` | AI-suggested disposition for a call from its transcript |
|
package/dist/tool-annotations.js
CHANGED
|
@@ -200,6 +200,8 @@ export const TOOL_ANNOTATIONS = {
|
|
|
200
200
|
conduyt_get_import_required_rule: ro("Get Import Required Rule"),
|
|
201
201
|
conduyt_set_import_required_rule: update("Set Import Required Rule"),
|
|
202
202
|
conduyt_get_settings_revision: ro("Get Settings Revision"),
|
|
203
|
+
conduyt_get_invoicing_settings: ro("Get Invoicing Settings"),
|
|
204
|
+
conduyt_update_invoicing_settings: row("Update Invoicing Settings", false, true, false), // PATCH can remove the stored payment link, and every save appends an account_settings_changed audit row
|
|
203
205
|
conduyt_get_pipeline_rot_days: ro("Get Pipeline Rot Days"),
|
|
204
206
|
conduyt_set_pipeline_rot_days: update("Set Pipeline Rot Days"),
|
|
205
207
|
conduyt_get_mailchimp_settings: ro("Get Mailchimp Settings"),
|
|
@@ -339,6 +341,7 @@ export const TOOL_ANNOTATIONS = {
|
|
|
339
341
|
conduyt_ai_summarize_contact: ro("Summarize Contact With AI"),
|
|
340
342
|
conduyt_ai_chat: ro("Chat With AI Assistant"),
|
|
341
343
|
conduyt_ai_improve_email: ro("Improve Email With AI"),
|
|
344
|
+
conduyt_ai_improve_sms: ro("Improve Text With AI"),
|
|
342
345
|
conduyt_ai_deal_insights: ro("Get AI Deal Insights"),
|
|
343
346
|
conduyt_ai_conversation_intelligence: create("Analyze Conversation With AI"),
|
|
344
347
|
conduyt_ai_call_disposition: ro("Suggest Call Disposition"),
|
|
@@ -106,6 +106,17 @@ export function registerAiExtendedTools(server, client) {
|
|
|
106
106
|
const result = await client.post("/api/v1/ai/improve-email", params);
|
|
107
107
|
return formatResult(result);
|
|
108
108
|
});
|
|
109
|
+
server.tool("conduyt_ai_improve_sms", "Rewrite ONE SMS text with the account's AI (POST /api/v1/ai/improve-sms; the Message check's \"Rewrite with AI\"). Returns { data: { body } }, the rewritten text in data.body. The server checks the answer before returning it: links, times, prices and other protected tokens, opt-out lines (STOP, HELP, unsubscribe and similar) and merge fields are kept as written, the length rule of the transport holds, no new emoji, plain text. A rewrite that breaks a rule is refused 502 ai_rewrite_rejected (no partial result). A draft whose only lines are opt-out lines has nothing to rewrite: the server refuses it 422 ai_rewrite_rejected BEFORE any AI credit is spent; the refusal message is returned as the server wrote it. Nothing is sent or saved.", {
|
|
110
|
+
body: z.string().min(1).max(1600).refine((v) => v.trim() !== "", "must not be blank").describe("The SMS text to rewrite (1-1600 characters, kept as written, not trimmed; it must hold a non-whitespace character)"),
|
|
111
|
+
transport: z
|
|
112
|
+
.enum(["twilio", "project_blue", "whatsapp", "fromk"])
|
|
113
|
+
.nullable()
|
|
114
|
+
.optional()
|
|
115
|
+
.describe("The transport the composer counts with: twilio (SMS, the default when absent or null), project_blue (iMessage, no length cap), whatsapp (up to 4096 characters) or fromk."),
|
|
116
|
+
}, async (params) => {
|
|
117
|
+
const result = await client.post("/api/v1/ai/improve-sms", params);
|
|
118
|
+
return formatResult(result);
|
|
119
|
+
});
|
|
109
120
|
server.tool("conduyt_ai_deal_insights", "AI analysis of a single deal. Returns risk signals, momentum, and recommended next actions based on the deal's stage, activity, and history.", {
|
|
110
121
|
dealId: z.string().describe("Deal UUID to analyze"),
|
|
111
122
|
}, async (params) => {
|
|
@@ -111,7 +111,7 @@ const seg = (teammateId) => encodeURIComponent(teammateId.trim().toLowerCase());
|
|
|
111
111
|
const WHO = "Owners and admins, with a person's API key (the chat scope); an AI teammate's own key is refused (403 agent_route_refused). The teammate must have the provider Grok Bot or OpenClaw (grok or clawdbot; 409 agent_not_webhook_provider otherwise). Answers 404 ai_teammates_off while AI teammates are switched off and 402 plan_required when the workspace is not entitled. Against a server that predates these routes (an HTML 404) the error says so.";
|
|
112
112
|
export function registerAiTeammateConnectTools(server, client) {
|
|
113
113
|
// (#1153, tri-surface parity) the workspace's AI teammates, so an agent can find the one to connect by id or @handle
|
|
114
|
-
strictInput(server.tool("conduyt_list_ai_teammates", "List the workspace's live AI teammates (GET /api/v1/chat/agents; a removed teammate is not listed), oldest first: [{ id, handle, name, provider (claude_code, codex, grok, clawdbot), state (listening, replying, needs_attention (#1213: listening, nothing running, and a turn in the last 24 hours failed or timed out), away), connected (a connector teammate, grok or clawdbot: its connection is stored and live; any other: a listener runs now), connection (a connector teammate's not_connected, waiting_for_hello, listening or not_listening; null otherwise), knowledgeFolders (#1209: how many knowledge folders the teammate's RUNNING listeners reported, the sum over the listeners whose heartbeat beats now, 0 = none; a knowledge folder is a folder on the listener's computer the teammate reads on every turn, whoever asked, read-only, secrets-looking files excluded; it is chosen on that computer with \`conduyt agent listen\` (the start directory, --knowledge <folder> or --no-knowledge), never through Conduyt, and its path never leaves the computer), createdAt }]. Nothing secret is listed. Name a teammate to the connector tools (Grok Bot and OpenClaw) by its id or its @handle. The rows an API key reads carry no webhook object (the Settings session rows do: webhook.noRun and webhook.provider are read there, never through this tool). Owners and admins, with a person's API key (the chat scope; reading is enough); a member's key is refused (403) and an AI teammate's own key too (403 agent_route_refused). Adding a teammate stays in Settings > AI. Answers 404 ai_teammates_off while AI teammates are switched off and 402 plan_required when the workspace is not entitled; a workspace with more than 200 live teammates is refused to an API key (413 agent_list_over_ceiling; Settings > AI lists them all).", {}, async () => {
|
|
114
|
+
strictInput(server.tool("conduyt_list_ai_teammates", "List the workspace's live AI teammates (GET /api/v1/chat/agents; a removed teammate is not listed), oldest first: [{ id, handle, name, provider (claude_code, codex, grok, clawdbot, hermes_plugin = Hermes, a listener teammate like claude_code and codex), state (listening, replying, needs_attention (#1213: listening, nothing running, and a turn in the last 24 hours failed or timed out), away), connected (a connector teammate, grok or clawdbot: its connection is stored and live; any other: a listener runs now), connection (a connector teammate's not_connected, waiting_for_hello, listening or not_listening; null otherwise), knowledgeFolders (#1209: how many knowledge folders the teammate's RUNNING listeners reported, the sum over the listeners whose heartbeat beats now, 0 = none; a knowledge folder is a folder on the listener's computer the teammate reads on every turn, whoever asked, read-only, secrets-looking files excluded; it is chosen on that computer with \`conduyt agent listen\` (the start directory, --knowledge <folder> or --no-knowledge), never through Conduyt, and its path never leaves the computer), createdAt }]. Nothing secret is listed. Name a teammate to the connector tools (Grok Bot and OpenClaw) by its id or its @handle. The rows an API key reads carry no webhook object (the Settings session rows do: webhook.noRun and webhook.provider are read there, never through this tool). Owners and admins, with a person's API key (the chat scope; reading is enough); a member's key is refused (403) and an AI teammate's own key too (403 agent_route_refused). Adding a teammate stays in Settings > AI. Answers 404 ai_teammates_off while AI teammates are switched off and 402 plan_required when the workspace is not entitled; a workspace with more than 200 live teammates is refused to an API key (413 agent_list_over_ceiling; Settings > AI lists them all).", {}, async () => {
|
|
115
115
|
try {
|
|
116
116
|
const res = await client.get("/api/v1/chat/agents");
|
|
117
117
|
return connectResult(unwrap(res), []);
|
package/dist/tools/calls.js
CHANGED
|
@@ -114,7 +114,7 @@ export function registerCallTools(server, client) {
|
|
|
114
114
|
const result = await client.get(`/api/v1/calls?${params}`);
|
|
115
115
|
return formatResult(result);
|
|
116
116
|
});
|
|
117
|
-
server.tool("conduyt_search_dialer_history", "Search and filter the dialer's call log for QA (GET /api/v1/dialer/history, newest first, up to 200 per page): find the recorded calls to review by words, number, disposition, agent and dates. " + SEARCH_ANSWER + " mine=true limits it to the key's own member's calls; the response also carries `stats` { total, inbound, outbound, avgTalkSeconds } for the whole visible log.", {
|
|
117
|
+
server.tool("conduyt_search_dialer_history", "Search and filter the dialer's call log for QA (GET /api/v1/dialer/history, newest first, up to 200 per page): find the recorded calls to review by words, number, disposition, agent and dates. " + SEARCH_ANSWER + " mine=true limits it to the key's own member's calls; the response also carries `stats` { total, inbound, outbound, avgTalkSeconds } for the whole visible log. Each row carries `audioDiagnostics` (this tool only, not conduyt_search_dialer_calls): what the rep's softphone reported about the call's audio, oldest first, as rows of type warning { secondsIntoCall, label, durationSeconds, ended }, cleared { secondsIntoCall, label } or gap { dropped, firstDroppedAt, lastDroppedAt }; [] when nothing was reported. An audit of what was reported, never the call's current state.", {
|
|
118
118
|
...SEARCH_FILTERS,
|
|
119
119
|
mine: z.boolean().optional().describe("true = only the key's own member's calls"),
|
|
120
120
|
unmatched: z.boolean().optional().describe("true = only calls no contact is linked to (the unknown-caller prompt's not-matched calls; sent as unmatched=1)"),
|
package/dist/tools/invoices.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { formatResult } from "../client.js";
|
|
3
3
|
import { isPositiveAmount } from "./invoicing-checks.js";
|
|
4
|
+
import { strictInput } from "./strict.js";
|
|
4
5
|
// (parity25, conduyt-app batch25 #193 invoicing slice 1a-1) the typed answers the send routes give; a refusal is forwarded with its code, never retried
|
|
5
6
|
const SEND_CODES = "409 invoice_send_pending (an earlier send awaits the provider's confirmation; nothing was sent again, check the invoice later, do not send again), invoice_send_complained (the recipient marked an earlier send as spam), invoice_send_in_flight, invoice_not_sendable, no_contact; 503 gate_busy (nothing of this attempt exists; safe to try again shortly)";
|
|
6
7
|
const lineItem = z.object({
|
|
@@ -153,4 +154,19 @@ export function registerInvoiceTools(server, client) {
|
|
|
153
154
|
const result = await client.get(`/api/v1/invoices/summary?${params}`);
|
|
154
155
|
return formatResult(result);
|
|
155
156
|
});
|
|
157
|
+
// (parity38prep, app branch paylink193) the business's own invoice payment link. Conduyt never takes the payment and never marks an invoice paid from the link.
|
|
158
|
+
server.tool("conduyt_get_invoicing_settings", "The workspace's invoice payment link (GET /api/v1/settings/invoicing; settings:view): { data: { paymentLink, defaultButtonLabel, settingsRevision } }. paymentLink is the business's OWN payment page (its Stripe payment link, PayPal, Wise, an ACH page) as { url, label, instructions }, or null when none is set; invoices show a Pay button that opens it, and Conduyt never takes the money and never marks an invoice paid from it. label null means the button reads defaultButtonLabel (\"Pay invoice\"). settingsRevision is a string: pass it back as expectedSettingsRevision to conduyt_update_invoicing_settings. Read it right before a save.", {}, async () => formatResult(await client.get("/api/v1/settings/invoicing")));
|
|
159
|
+
strictInput(server.tool("conduyt_update_invoicing_settings", "Set or remove the workspace's invoice payment link (PATCH /api/v1/settings/invoicing; settings:edit, active billing). paymentLink REPLACES the whole link: { url, label?, instructions? }, where a label or instructions you leave out (or send null or empty for) is stored as none; paymentLink null REMOVES the link. url: an absolute https address with a real domain (at most 2000 characters; http, javascript:, data: and every other scheme, relative URLs, credentials, spaces, backslashes and control characters are refused, and so is one of Conduyt's own links). label: the Pay button's one-line text (at most 40 characters; empty or null = the default). instructions: plain text shown under the button, in the email and on the PDF (at most 300 characters, line breaks kept). expectedSettingsRevision is REQUIRED: the settingsRevision conduyt_get_invoicing_settings returned. Returns the saved { data: { paymentLink, defaultButtonLabel, settingsRevision } }. Refusals come back with the status, message and code and are never retried: 400 invalid_json, invalid_body, unknown_fields, payment_link_required, expected_settings_revision_required or invalid_settings_revision; 403 without settings:edit; 409 stale_settings_revision (another settings save landed since you read: nothing was saved, read again and review before saving); 413 body_too_large; 422 invalid_payment_link_url, invalid_payment_link_label, invalid_payment_link_instructions or invalid_payment_link (a field-level message to show the person); 503 payment_link_ownership_unverifiable (the app's own link hosts could not be checked right now: nothing was saved, retry the same call in a minute). Every successful save is audited.", {
|
|
160
|
+
paymentLink: z
|
|
161
|
+
.union([
|
|
162
|
+
z.object({
|
|
163
|
+
url: z.string().max(2000).describe("The payment page's absolute https address (required in the object)"),
|
|
164
|
+
label: z.string().max(40).nullable().optional().describe("The Pay button's one-line text; empty or null = \"Pay invoice\""),
|
|
165
|
+
instructions: z.string().max(300).nullable().optional().describe("Plain-text payment instructions; line breaks kept"),
|
|
166
|
+
}).strict(),
|
|
167
|
+
z.null(),
|
|
168
|
+
])
|
|
169
|
+
.describe("The link object, or null to REMOVE the link"),
|
|
170
|
+
expectedSettingsRevision: z.string().regex(/^\d{1,10}$/, "digits only: the settingsRevision conduyt_get_invoicing_settings returned").describe("The settingsRevision conduyt_get_invoicing_settings returned (a string of 1 to 10 digits, at most 2147483647); a save after another settings save landed is refused 409 stale_settings_revision"),
|
|
171
|
+
}, async ({ paymentLink, expectedSettingsRevision }) => formatResult(await client.patch("/api/v1/settings/invoicing", { paymentLink, expectedSettingsRevision }))));
|
|
156
172
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-11-
|
|
3
|
-
"toolCount":
|
|
4
|
-
"totalEndpoints":
|
|
2
|
+
"generatedAt": "2026-11-16T10:45:30.863Z",
|
|
3
|
+
"toolCount": 444,
|
|
4
|
+
"totalEndpoints": 1217,
|
|
5
5
|
"counts": {
|
|
6
|
-
"covered":
|
|
6
|
+
"covered": 393,
|
|
7
7
|
"excluded": 374,
|
|
8
8
|
"planned": 450,
|
|
9
9
|
"uncategorized": 0
|
|
@@ -551,6 +551,12 @@
|
|
|
551
551
|
"conduyt_ai_improve_email"
|
|
552
552
|
]
|
|
553
553
|
},
|
|
554
|
+
"POST /api/v1/ai/improve-sms": {
|
|
555
|
+
"status": "covered",
|
|
556
|
+
"tools": [
|
|
557
|
+
"conduyt_ai_improve_sms"
|
|
558
|
+
]
|
|
559
|
+
},
|
|
554
560
|
"GET /api/v1/ai/insights": {
|
|
555
561
|
"status": "planned",
|
|
556
562
|
"reason": "AI surfaces beyond chat/insights/tasks tools"
|
|
@@ -4802,6 +4808,18 @@
|
|
|
4802
4808
|
"status": "planned",
|
|
4803
4809
|
"reason": "account settings read/update surfaces"
|
|
4804
4810
|
},
|
|
4811
|
+
"GET /api/v1/settings/invoicing": {
|
|
4812
|
+
"status": "covered",
|
|
4813
|
+
"tools": [
|
|
4814
|
+
"conduyt_get_invoicing_settings"
|
|
4815
|
+
]
|
|
4816
|
+
},
|
|
4817
|
+
"PATCH /api/v1/settings/invoicing": {
|
|
4818
|
+
"status": "covered",
|
|
4819
|
+
"tools": [
|
|
4820
|
+
"conduyt_update_invoicing_settings"
|
|
4821
|
+
]
|
|
4822
|
+
},
|
|
4805
4823
|
"GET /api/v1/settings/lead-visibility": {
|
|
4806
4824
|
"status": "planned",
|
|
4807
4825
|
"reason": "account settings read/update surfaces"
|