conduyt-mcp 4.105.31 → 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 +2 -1
- package/dist/tool-annotations.js +2 -0
- package/dist/tools/invoices.js +16 -0
- package/package.json +1 -1
- package/scripts/coverage-matrix.json +16 -4
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 |
|
|
@@ -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) |
|
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"),
|
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
|
|
@@ -4808,6 +4808,18 @@
|
|
|
4808
4808
|
"status": "planned",
|
|
4809
4809
|
"reason": "account settings read/update surfaces"
|
|
4810
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
|
+
},
|
|
4811
4823
|
"GET /api/v1/settings/lead-visibility": {
|
|
4812
4824
|
"status": "planned",
|
|
4813
4825
|
"reason": "account settings read/update surfaces"
|