conduyt-mcp 4.105.19 → 4.105.20
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/dist/register-all.js
CHANGED
|
@@ -3,6 +3,7 @@ import { registerDiscoveryTools } from "./tools/discovery.js";
|
|
|
3
3
|
import { registerContactTools } from "./tools/contacts.js";
|
|
4
4
|
import { registerDealTools } from "./tools/deals.js";
|
|
5
5
|
import { registerDealProfileTools } from "./tools/deal-profile.js";
|
|
6
|
+
import { registerEmailSignatureTools } from "./tools/email-signature.js";
|
|
6
7
|
import { registerTaskTools } from "./tools/tasks.js";
|
|
7
8
|
import { registerPipelineTools } from "./tools/pipelines.js";
|
|
8
9
|
import { registerActivityTools } from "./tools/activities.js";
|
|
@@ -69,6 +70,7 @@ export function registerAllTools(server, client) {
|
|
|
69
70
|
registerContactTools(server, client);
|
|
70
71
|
registerDealTools(server, client);
|
|
71
72
|
registerDealProfileTools(server, client);
|
|
73
|
+
registerEmailSignatureTools(server, client);
|
|
72
74
|
registerTaskTools(server, client);
|
|
73
75
|
registerPipelineTools(server, client);
|
|
74
76
|
registerActivityTools(server, client);
|
package/dist/tool-annotations.js
CHANGED
|
@@ -161,6 +161,9 @@ export const TOOL_ANNOTATIONS = {
|
|
|
161
161
|
conduyt_reveal_deal_profile_field: create("Reveal Deal Profile Field"), // a GET that appends the audit row deal_profile.reveal on every reveal of a stored value, so it is not read-only (Codex mcp359 policy)
|
|
162
162
|
conduyt_get_deal_profile_settings: ro("Get Deal Profile Settings"),
|
|
163
163
|
conduyt_set_deal_profile_settings: row("Set Deal Profile Settings", false, true, false), // PUT replaces the whole binding; not idempotent: every save appends settings_deal_profile_updated (Codex parity28-r1 P2)
|
|
164
|
+
// (parity29, #1300 part 2) the caller's own signature
|
|
165
|
+
conduyt_get_email_signature: ro("Get Email Signature"),
|
|
166
|
+
conduyt_set_email_signature: destroy("Set Email Signature"), // PUT replaces the saved signature (discarding the previous one); no audit row, the same input again leaves the same state
|
|
164
167
|
conduyt_remove_deal_profile_settings: row("Remove Deal Profile Settings", false, true, false), // PUT dealProfile null discards the stored binding; every call appends the audit row
|
|
165
168
|
conduyt_get_deal_partner_pushes: ro("Get Deal Partner Pushes"),
|
|
166
169
|
conduyt_preview_deal_partner_push: ro("Preview Deal Partner Push"),
|
|
@@ -357,6 +360,7 @@ export const TOOL_ANNOTATIONS = {
|
|
|
357
360
|
conduyt_update_deal_working_mode: update("Update Deal Working Mode"),
|
|
358
361
|
conduyt_update_lost_propagation: update("Update Lost Propagation Setting"),
|
|
359
362
|
conduyt_update_booking_creates_own_card: update("Update Booking Creates Own Card Setting"),
|
|
363
|
+
conduyt_update_document_upload_bell: create("Update Document Upload Bell Setting"), // (parity29, #1297) PATCH /settings: every save appends account_settings_changed even when the value is unchanged, so not idempotent (Codex parity29-r1 P2)
|
|
360
364
|
conduyt_update_disposition_status_map: update("Update Disposition Status Map"),
|
|
361
365
|
conduyt_get_agent_statuses: ro("Get Agent Statuses"),
|
|
362
366
|
conduyt_update_agent_statuses: update("Update Agent Statuses"),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { ConduytClient } from "../client.js";
|
|
3
|
+
/** (parity29, #1300 part 2) the caller's own email signature: GET and PUT /api/v1/me/email-signature. */
|
|
4
|
+
export declare const SIGNATURE_HTML_MAX_BYTES: number;
|
|
5
|
+
export declare function registerEmailSignatureTools(server: McpServer, client: ConduytClient): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { formatResult } from "../client.js";
|
|
3
|
+
import { strictInput } from "./strict.js";
|
|
4
|
+
/** (parity29, #1300 part 2) the caller's own email signature: GET and PUT /api/v1/me/email-signature. */
|
|
5
|
+
export const SIGNATURE_HTML_MAX_BYTES = 64 * 1024;
|
|
6
|
+
const SIGNATURE_CODES = "Errors: 413 signature_too_large (the request body is over about 392 KB, or the html over 64 KB), 422 invalid_signature (an unknown or invalid field, or html combined with designId, overrides or any options key other than compose), 422 empty_signature_html (nothing visible survives the sanitiser), 422 booking_page_not_yours, 404 not_a_member.";
|
|
7
|
+
const jsonObject = (what) => z.record(z.string(), z.unknown()).describe(what);
|
|
8
|
+
export function registerEmailSignatureTools(server, client) {
|
|
9
|
+
server.tool("conduyt_get_email_signature", "Read the calling user's own email signature (GET /api/v1/me/email-signature; a browser session or an API key with the emails scope acting as its user): { signature: { designId, mode, overrides, options, useInCompose, html, plain, renderError, updatedAt } } plus the context the editor previews with. mode is 'generator' (built from designId, overrides and options; html is rendered now from the live profile, workspace and booking-page sources) or 'html' (a signature pasted as HTML: html is the stored sanitised paste and designId reads 'classic', the design the generator editor starts from). An unsaved draft has html null.", {}, async () => formatResult(await client.get("/api/v1/me/email-signature")));
|
|
10
|
+
strictInput(server.tool("conduyt_set_email_signature", `REPLACE the calling user's own email signature (PUT /api/v1/me/email-signature; an API key needs the emails scope; a read-tier key is refused). Two modes, never mixed. HTML mode: send html, a finished signature of 64 KB at most (checked here first). The server sanitises it exactly like the generator's output: scripts, forms, event handlers and links that are not http(s), mailto or tel are removed (a literal # placeholder stays); data: URLs are dropped; external images are not loaded in the editor preview (tables, links, inline styles and an http(s) image stay in the saved html); at least one http(s) image or some visible text must survive. In HTML mode send only html and useInCompose, and options only with a compose key; html with designId, overrides or any other options key is refused (422 invalid_signature). Generator mode: designId (default classic; GET /api/v1/email-signature/designs lists them), overrides (only the fields you changed) and options (design and add-on choices). useInCompose: Compose appends the signature (the server default is true when omitted). The reply (and conduyt_get_email_signature) carries mode: 'html' or 'generator'; mode is read-only and is not an input. ${SIGNATURE_CODES}`, {
|
|
11
|
+
html: z
|
|
12
|
+
.string()
|
|
13
|
+
.refine((v) => Buffer.byteLength(v, "utf8") <= SIGNATURE_HTML_MAX_BYTES, { message: "html is over 64 KB; a signature is 64 KB at most" })
|
|
14
|
+
.optional()
|
|
15
|
+
.describe("Paste mode: a finished signature as HTML (64 KB at most), sanitised by the server like the generator's output; data: URLs are dropped and external images are not loaded in the editor preview"),
|
|
16
|
+
designId: z.string().max(40).optional().describe("Generator mode: one of the design ids (default classic)"),
|
|
17
|
+
overrides: jsonObject("Generator mode: only the fields you changed: name, title, company, dept, phone, mobile, web, addr, social {network: link}").optional(),
|
|
18
|
+
options: jsonObject("Design and add-on choices (generator mode: accent, font, fsize, ..., addons, compose {newEmails, replies}); in HTML mode only { compose: { newEmails, replies } } is accepted").optional(),
|
|
19
|
+
useInCompose: z.boolean().optional().describe("Compose appends the signature when true (the server default when omitted)"),
|
|
20
|
+
}, async (params) => {
|
|
21
|
+
const { html, designId, overrides, options } = params;
|
|
22
|
+
if (html !== undefined && (designId !== undefined || overrides !== undefined || Object.keys(options ?? {}).some((k) => k !== "compose"))) {
|
|
23
|
+
throw new Error("html cannot be combined with designId, overrides or design options; send either the generator fields or html (options may carry only compose)");
|
|
24
|
+
}
|
|
25
|
+
if (html === undefined && Object.values(params).every((v) => v === undefined)) {
|
|
26
|
+
throw new Error("Send html (paste mode), or at least one of designId, overrides, options, useInCompose (generator mode)");
|
|
27
|
+
}
|
|
28
|
+
return formatResult(await client.put("/api/v1/me/email-signature", params));
|
|
29
|
+
}));
|
|
30
|
+
}
|
package/dist/tools/lifecycle.js
CHANGED
|
@@ -107,6 +107,13 @@ export function registerLifecycleTools(server, client) {
|
|
|
107
107
|
: typeof raw.accountId === "string"
|
|
108
108
|
? { bookingCreatesOwnCard: false }
|
|
109
109
|
: { bookingCreatesOwnCard: null, bookingCreatesOwnCardNote: "not visible to this role (needs settings.view)" }),
|
|
110
|
+
// (#1297) the document-upload bell is ON unless the account turned it off: a stored boolean is shown as is, absent in a FULL
|
|
111
|
+
// snapshot (carries accountId) is true, absent in a REDUCED one (no settings.view) is null + note
|
|
112
|
+
...(typeof raw.documentUploadBell === "boolean"
|
|
113
|
+
? { documentUploadBell: raw.documentUploadBell }
|
|
114
|
+
: typeof raw.accountId === "string"
|
|
115
|
+
? { documentUploadBell: true }
|
|
116
|
+
: { documentUploadBell: null, documentUploadBellNote: "not visible to this role (needs settings.view)" }),
|
|
110
117
|
masterStatuses: {
|
|
111
118
|
defaults: DEFAULT_MASTER_STATUSES,
|
|
112
119
|
customs,
|
|
@@ -140,6 +147,9 @@ export function registerLifecycleTools(server, client) {
|
|
|
140
147
|
strictInput(server.tool("conduyt_update_booking_creates_own_card", "Set settings.bookingCreatesOwnCard (card ownership per lane, PATCH /api/v1/settings). true: a booking creates a NEW card in the intake-deals pipeline and stage (conduyt_update_intake_deals), owned by the booking's host, instead of using the contact's existing open card there. false (the default): the contact's existing open card is used. Read the current value with conduyt_get_lifecycle_settings (bookingCreatesOwnCard). Requires settings:edit; a stale settings revision is handed back as a conflict with the current settings.", {
|
|
141
148
|
enabled: z.boolean().describe("true = each booking creates its own card owned by the host; false = reuse the contact's open intake card (default)"),
|
|
142
149
|
}, async ({ enabled }) => patchGeneralSettings(client, { bookingCreatesOwnCard: enabled })));
|
|
150
|
+
strictInput(server.tool("conduyt_update_document_upload_bell", "Set settings.documentUploadBell (#1297, PATCH /api/v1/settings). true (the default): a file attached to a contact or a deal (by a teammate, an API key or the client on a booking page) rings the record owner's bell: the deal owner for a deal, the contact owner for a contact. false: no bell; the document.uploaded automation trigger still fires either way (automation config is free-form JSON). Read the current value with conduyt_get_lifecycle_settings (documentUploadBell). Requires settings:edit; a stale settings revision is handed back as a conflict with the current settings.", {
|
|
151
|
+
enabled: z.boolean().describe("true = ring the record owner's bell on every document upload (default); false = no bell"),
|
|
152
|
+
}, async ({ enabled }) => patchGeneralSettings(client, { documentUploadBell: enabled })));
|
|
143
153
|
server.tool("conduyt_update_disposition_status_map", "Set which lead status each call disposition sets when it is picked (by a rep after a call or by the AI auto-disposition): e.g. {\"not-interested\": \"lost\", \"sale-closed\": \"won\", \"interested\": \"working\"}. Keys are disposition values (built-ins like interested, not-interested, callback-requested, appointment-set, sale-closed, dnc-requested, voicemail, no-answer, wrong-number, or the account's custom outcomes); values are master statuses (open, won, lost, abandoned, disqualified, or the account's customs from conduyt_update_master_statuses). The map REPLACES the stored map (send the full map; {} clears every mapping); the rest of the account's disposition settings are untouched. An unknown disposition or status is a 422. A lead a deal has WON is never moved by an outcome; mapping to a terminal status (won/lost/abandoned/disqualified) closes the lead and stops its automations. Read the current map with conduyt_get_lifecycle_settings (dispositionStatusMap).", {
|
|
144
154
|
statusMap: z
|
|
145
155
|
.record(z.string().trim().min(1).max(40), z.string().trim().min(1).max(40))
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-11-
|
|
3
|
-
"toolCount":
|
|
2
|
+
"generatedAt": "2026-11-12T01:38:10.194Z",
|
|
3
|
+
"toolCount": 428,
|
|
4
4
|
"totalEndpoints": 1202,
|
|
5
5
|
"counts": {
|
|
6
|
-
"covered":
|
|
6
|
+
"covered": 378,
|
|
7
7
|
"excluded": 368,
|
|
8
|
-
"planned":
|
|
8
|
+
"planned": 456,
|
|
9
9
|
"uncategorized": 0
|
|
10
10
|
},
|
|
11
11
|
"matrix": {
|
|
@@ -3783,12 +3783,16 @@
|
|
|
3783
3783
|
"reason": "mailbox sync surfaces"
|
|
3784
3784
|
},
|
|
3785
3785
|
"GET /api/v1/me/email-signature": {
|
|
3786
|
-
"status": "
|
|
3787
|
-
"
|
|
3786
|
+
"status": "covered",
|
|
3787
|
+
"tools": [
|
|
3788
|
+
"conduyt_get_email_signature"
|
|
3789
|
+
]
|
|
3788
3790
|
},
|
|
3789
3791
|
"PUT /api/v1/me/email-signature": {
|
|
3790
|
-
"status": "
|
|
3791
|
-
"
|
|
3792
|
+
"status": "covered",
|
|
3793
|
+
"tools": [
|
|
3794
|
+
"conduyt_set_email_signature"
|
|
3795
|
+
]
|
|
3792
3796
|
},
|
|
3793
3797
|
"GET /api/v1/messages": {
|
|
3794
3798
|
"status": "covered",
|