conduyt-mcp 4.105.23 → 4.105.24

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.
@@ -25,7 +25,7 @@ export function registerBulkTools(server, client) {
25
25
  const result = await client.post("/api/v1/contacts/ai-import", { contacts, options });
26
26
  return formatResult(result);
27
27
  });
28
- server.tool("conduyt_export_contacts", "Export contacts as JSON with filtering. Returns all matching contacts with tags and custom fields. min_score that is not an integer 0..2147483647 is 400 invalid_min_score { message, param, accepted } (GET /contacts, /contacts/count and /contacts/export).", {
28
+ server.tool("conduyt_export_contacts", "Export contacts as JSON with filtering. Returns all matching contacts with tags and custom fields. The API judges the query names first (batch33): a name the export does not read is 400 unknown_query_param { message, unknown[], accepted[], didYouMean } (it used to be ignored and every contact exported) and two different values of format or of a single-value filter 400 query_param_conflict { message, param }, both before the numeric code; this tool sends only accepted names. min_score that is not an integer 0..2147483647 is 400 invalid_min_score { message, param, accepted } (GET /contacts, /contacts/count and /contacts/export).", {
29
29
  format: z.enum(["json"]).optional().describe("Export format (use 'json' for MCP)"),
30
30
  search: z.string().optional().describe("Search filter"),
31
31
  tag: z.string().optional().describe("Filter by tag name"),
@@ -64,7 +64,7 @@ export function registerBulkTools(server, client) {
64
64
  });
65
65
  return formatResult(result);
66
66
  });
67
- server.tool("conduyt_export_deals", "Export deals as JSON with filtering by status, pipeline, or search term. The deal value bounds are judged too: value_min / minValue and value_max / maxValue that are non-numeric or outside the deal value column range (-9999999999.99..9999999999.99) are 400 invalid_value_min / invalid_value_max { message, param, accepted } (absent or empty = no filter; an alias spelling answers the same code with the sent spelling in param).", {
67
+ server.tool("conduyt_export_deals", "Export deals as JSON with filtering by status, pipeline, or search term. The API judges the query names first (batch33): a name the export does not read is 400 unknown_query_param { message, unknown[], accepted[], didYouMean } (it used to be ignored and the whole book exported) and two different values of format, search, status, pipeline, value_min / minValue, value_max / maxValue, needsAction or stale 400 query_param_conflict { message, param }, both before the numeric codes; this tool sends only accepted names. The deal value bounds are judged too: value_min / minValue and value_max / maxValue that are non-numeric or outside the deal value column range (-9999999999.99..9999999999.99) are 400 invalid_value_min / invalid_value_max { message, param, accepted } (absent or empty = no filter; an alias spelling answers the same code with the sent spelling in param).", {
68
68
  search: z.string().optional().describe("Search deal titles"),
69
69
  status: z.string().optional().describe("Filter by status (open, won, lost)"),
70
70
  pipeline: z.string().optional().describe("Filter by pipeline UUID"),
@@ -164,7 +164,7 @@ export function registerContactTools(server, client) {
164
164
  const result = await client.get(`/api/v1/contacts?${params}`);
165
165
  return formatResult(result);
166
166
  });
167
- server.tool("conduyt_count_contacts", "Count the contacts a list filter matches (GET /contacts/count): the exact total when conduyt_list_contacts answers `meta.total: null` with `meta.total_deferred: true`. Takes the SHARED subset of conduyt_list_contacts filters (no page, per_page or sort, and NOT dealContextOwners / dealContextStages / dealContextStatuses, which exist only on the list): with a deal-context filter the exact total is not available here (dropping it counts a broader set), so page the list with has_more instead. Answers `{ total, age_ms?, total_capped?, pending?, timed_out? }`: a cached list (the unfiltered list, or a Smart View alone) answers its cached exact count while under a minute old (`age_ms`), else recounts; `total: null` with `pending: true` = another request is recounting and nothing is cached yet, ask again in a few seconds; `total: null` with `timed_out: true` = the count could not finish within 30 s (narrow the filter); a `search` counts up to 10,000 (`total_capped: true` = more match). Use the total as `expectedTotal` for conduyt_bulk_delete_contacts_matching or conduyt_create_batch_operation." + " " + FORMULA_FILTER_NOTE + " " + TIMEZONE_FILTER_NOTE + " min_score that is not an integer 0..2147483647 is 400 invalid_min_score { message, param, accepted } (GET /contacts, /contacts/count and /contacts/export).", contactFilterShape, async (filter) => {
167
+ server.tool("conduyt_count_contacts", "Count the contacts a list filter matches (GET /contacts/count): the exact total when conduyt_list_contacts answers `meta.total: null` with `meta.total_deferred: true`. Takes the SHARED subset of conduyt_list_contacts filters (no page, per_page or sort, and NOT dealContextOwners / dealContextStages / dealContextStatuses, which exist only on the list): with a deal-context filter the exact total is not available here (dropping it counts a broader set), so page the list with has_more instead. Answers `{ total, age_ms?, total_capped?, pending?, timed_out? }`: a cached list (the unfiltered list, or a Smart View alone) answers its cached exact count while under a minute old (`age_ms`), else recounts; `total: null` with `pending: true` = another request is recounting and nothing is cached yet, ask again in a few seconds; `total: null` with `timed_out: true` = the count could not finish within 30 s (narrow the filter); a `search` counts up to 10,000 (`total_capped: true` = more match). Use the total as `expectedTotal` for conduyt_bulk_delete_contacts_matching or conduyt_create_batch_operation." + " " + FORMULA_FILTER_NOTE + " " + TIMEZONE_FILTER_NOTE + " The API judges the query names first (batch33): a name the count does not read (page, per_page, limit, sort, order, include, deal_context_*) is 400 unknown_query_param { message, unknown[], accepted[], didYouMean } and two different values of a single-value filter 400 query_param_conflict { message, param }, both before the numeric code; this tool sends only accepted names. min_score that is not an integer 0..2147483647 is 400 invalid_min_score { message, param, accepted } (GET /contacts, /contacts/count and /contacts/export).", contactFilterShape, async (filter) => {
168
168
  const params = contactFilterParams(filter);
169
169
  const result = await client.get(`/api/v1/contacts/count?${params}`);
170
170
  return formatResult(result);
@@ -66,7 +66,7 @@ export function registerCustomFieldTools(server, client) {
66
66
  const result = await client.patch(`/api/v1/custom-fields/${id}`, updates);
67
67
  return formatResult(result);
68
68
  });
69
- server.tool("conduyt_delete_custom_field", "Delete a custom field definition. Removes the field from all entities. A field a formula computes from cannot be deleted: 409 deletion_blocked (the formula named in blockers). A contact / company field mirrored on deals cannot be deleted: 409 mirror_source_in_use { mirrors } (delete the deal mirrors first; deleting a mirror deletes only the placement, never the contact's value). A Secure field cannot be deleted: 409 secure_field_delete_refused (turn Secure off first with conduyt_update_custom_field isSecure false + confirmUnsecure true, then delete)." + " " + DELANCEY_ID_NOTE, {
69
+ server.tool("conduyt_delete_custom_field", "Delete a custom field definition. Removes the field from all entities. A field a formula computes from cannot be deleted: 409 deletion_blocked (the formula named in blockers). A contact / company field mirrored on deals cannot be deleted: 409 mirror_source_in_use { mirrors } (delete the deal mirrors first; deleting a mirror deletes only the placement, never the contact's value). A Secure field cannot be deleted: 409 secure_field_delete_refused (turn Secure off first with conduyt_update_custom_field isSecure false + confirmUnsecure true, then delete). A BDA-sized field can take longer than the server's impact budget to read: DELETE answers 503 custom_field_impact_timeout with Retry-After 5 (nothing was deleted: the transaction rolled back and no lock is held), a RETRYABLE answer: wait the Retry-After seconds and call this tool again (this tool does not replay a delete itself); if it keeps answering 503 after a few tries, stop and report the code. GET /api/v1/custom-fields/{id}/impact (the Settings delete preview) answers the same 503 (\"Impact preview timed out, the delete still works.\"). The 409 with counts is unchanged." + " " + DELANCEY_ID_NOTE, {
70
70
  id: z.string().describe("Custom field UUID"),
71
71
  }, async ({ id }) => {
72
72
  const result = await client.del(`/api/v1/custom-fields/${id}`);
@@ -148,7 +148,7 @@ export function registerDealTools(server, client) {
148
148
  const result = await client.get(`/api/v1/deals?${params}`);
149
149
  return formatResult(result);
150
150
  }));
151
- strictInput(server.tool("conduyt_pipeline_health", "Pipeline health for one pipeline (or every visible active pipeline) over its OPEN deals (GET /api/v1/deals/inspection): { totalOpenDeals, atRiskValue (total value of the High-value idle deals), checks[] (key, label, severity, color, rule, count, value; the six checks high_value_idle, stale, unassigned, needs_action, missing_close_date, missing_contact, ordered by money at risk), deals, summary (count per check), labels (label per check) }. With check, deals is that check's page { check, offset, items, hasMore, nextCursor, total } (highest value first, each item with its issues); without it deals is null. Page with cursor (the previous nextCursor, passed back UNCHANGED) or offset; never both. For the board's other filters (stage, assignee, saved view) use conduyt_list_deals with health_summary=true. " + HEALTH_ERRORS, {
151
+ strictInput(server.tool("conduyt_pipeline_health", "Pipeline health for one pipeline (or every visible active pipeline) over its OPEN deals (GET /api/v1/deals/inspection): { totalOpenDeals, atRiskValue (total value of the High-value idle deals), checks[] (key, label, severity, color, rule, count, value; the six checks high_value_idle, stale, unassigned, needs_action, missing_close_date, missing_contact, ordered by money at risk), deals, summary (count per check), labels (label per check) }. With check, deals is that check's page { check, offset, items, hasMore, nextCursor, total } (highest value first, each item with its issues); without it deals is null. Page with cursor (the previous nextCursor, passed back UNCHANGED) or offset; never both. For the board's other filters (stage, assignee, saved view) use conduyt_list_deals with health_summary=true. A query name the route does not read is 400 unknown_query_param { message, unknown[], accepted[] (pipeline, check, limit, offset, cursor), didYouMean } (batch33; there is no query_param_conflict here: a param given twice keeps its own refusal, health_filter_conflict for pipeline, health_cursor_* for cursor, a message for check, limit and offset); this tool sends only those five names. " + HEALTH_ERRORS, {
152
152
  pipeline: z.string().optional().describe("Pipeline UUID; omit for every visible active pipeline."),
153
153
  check: healthCheckSchema.optional().describe("Adds `deals` for that check."),
154
154
  limit: z.number().int().min(1).max(100).optional().describe("With check: deals per page, 1-100 (default 5)."),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt-mcp",
3
- "version": "4.105.23",
3
+ "version": "4.105.24",
4
4
  "mcpName": "com.conduyt/mcp",
5
5
  "description": "MCP server for Conduyt CRM — expose CRM operations as AI-accessible tools",
6
6
  "type": "module",