conduyt-mcp 4.105.34 → 4.105.36

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.
@@ -7,6 +7,7 @@ import { registerEmailSignatureTools } from "./tools/email-signature.js";
7
7
  import { registerTaskTools } from "./tools/tasks.js";
8
8
  import { registerPipelineTools } from "./tools/pipelines.js";
9
9
  import { registerActivityTools } from "./tools/activities.js";
10
+ import { registerContactTimelineTools } from "./tools/contact-timeline.js";
10
11
  import { registerAiTools } from "./tools/ai.js";
11
12
  import { registerAutomationTools } from "./tools/automations.js";
12
13
  import { registerSequenceTools } from "./tools/sequences.js";
@@ -74,6 +75,7 @@ export function registerAllTools(server, client) {
74
75
  registerTaskTools(server, client);
75
76
  registerPipelineTools(server, client);
76
77
  registerActivityTools(server, client);
78
+ registerContactTimelineTools(server, client);
77
79
  registerAiTools(server, client);
78
80
  registerAutomationTools(server, client);
79
81
  registerSequenceTools(server, client);
@@ -67,6 +67,7 @@ export const TOOL_ANNOTATIONS = {
67
67
  conduyt_reorder_stages: update("Reorder Stages"),
68
68
  conduyt_delete_stage: destroy("Delete Stage"),
69
69
  conduyt_list_activities: ro("List Activities"),
70
+ conduyt_get_contact_timeline: ro("Get Contact Timeline"),
70
71
  conduyt_export_activities_csv: row("Export Activities to CSV File", false, true, false), // writes a LOCAL file, so not read-only; destructive because overwrite: true replaces an existing regular file (MCP: destructiveHint false is additive-only); a repeat writes a new export, so not idempotent
71
72
  conduyt_create_activity: create("Create Activity"),
72
73
  conduyt_ai_insights: create("Query AI Insights"),
@@ -1,15 +1,23 @@
1
1
  import { z } from "zod";
2
2
  import { formatResult, formatToolError } from "../client.js";
3
3
  import { EXPORT_PART_TIMEOUT_MS, runActivityExport } from "./activity-export.js";
4
+ import { TIMELINE_TYPE_GROUPS } from "./contact-timeline.js";
4
5
  export function registerActivityTools(server, client) {
5
- server.tool("conduyt_list_activities", "List recent activities across the CRM — calls, emails, notes, meetings, deal changes, and system events.", {
6
+ server.tool("conduyt_list_activities", "List recent activities across the CRM — calls, emails, notes, meetings, deal changes, and system events. " +
7
+ "(dealviews53) The deal page's timeline views, the contact timeline's: view=activity (what people did: notes incl. the deal feed's note_created 'Note added', calls, tasks, appointments, deal created), view=history (what changed: stage changes, owner changes, field updates, tag changes), view=system (what the machine ran: workflows, partner syncs, everything not listed), view=all (every activity). " +
8
+ "group narrows to one type group of the view (the contact timeline's type): activity = emails | sms | calls | notes | tasks | deals | files | meetings | other_activity; history = stage_changes | owner_changes | field_updates | tag_changes; system = workflows | syncs | other_system. " +
9
+ "counts=1 (with deal_id or contact_id) adds meta.counts: the record's whole feed counted per view (activity, history, system, all) and per type group (types), whatever view, group, type, search or date range the list is narrowed by (your visibility still applies). " +
10
+ "400: an unknown view or group, a group outside the view, two different values of one, view / group together with type or search (a timeline page is narrowed by view and group only), counts without deal_id or contact_id.", {
6
11
  type: z.string().optional().describe("Filter by activity type (e.g. 'call', 'email', 'note', 'meeting', 'deal_stage_changed')"),
7
12
  contactId: z.string().optional().describe("Filter activities for a specific contact"),
8
13
  dealId: z.string().optional().describe("Filter activities for a specific deal"),
9
14
  search: z.string().optional().describe("Search activity titles/descriptions"),
10
15
  page: z.number().optional().describe("Page number (default 1)"),
11
16
  per_page: z.number().optional().describe("Results per page (default 25, max 100)"),
12
- }, async ({ type, contactId, dealId, search, page, per_page }) => {
17
+ view: z.enum(["activity", "history", "system", "all"]).optional().describe("Timeline view: activity | history | system | all (left out: every activity, as before)"),
18
+ group: z.enum(TIMELINE_TYPE_GROUPS).optional().describe("One type group of the view, e.g. notes, calls, stage_changes or workflows"),
19
+ counts: z.boolean().optional().describe("true: meta.counts per view and type group of the record's whole feed (needs dealId or contactId)"),
20
+ }, async ({ type, contactId, dealId, search, page, per_page, view, group, counts }) => {
13
21
  const params = new URLSearchParams();
14
22
  if (type)
15
23
  params.set("type", type);
@@ -23,6 +31,12 @@ export function registerActivityTools(server, client) {
23
31
  params.set("page", String(page));
24
32
  if (per_page)
25
33
  params.set("per_page", String(per_page));
34
+ if (view)
35
+ params.set("view", view);
36
+ if (group)
37
+ params.set("group", group);
38
+ if (counts)
39
+ params.set("counts", "1");
26
40
  const result = await client.get(`/api/v1/activities?${params}`);
27
41
  return formatResult(result);
28
42
  });
@@ -0,0 +1,5 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ import { ConduytClient } from "../client.js";
3
+ /** (timelineviews53) the type groups of GET /contacts/:id/timeline?type= (the app's lib/timeline-views.ts), by view */
4
+ export declare const TIMELINE_TYPE_GROUPS: readonly ["emails", "sms", "calls", "notes", "tasks", "deals", "files", "meetings", "other_activity", "stage_changes", "owner_changes", "field_updates", "tag_changes", "workflows", "syncs", "other_system"];
5
+ export declare function registerContactTimelineTools(server: McpServer, client: ConduytClient): void;
@@ -0,0 +1,35 @@
1
+ import { z } from "zod";
2
+ import { formatResult } from "../client.js";
3
+ /** (timelineviews53) the type groups of GET /contacts/:id/timeline?type= (the app's lib/timeline-views.ts), by view */
4
+ export const TIMELINE_TYPE_GROUPS = [
5
+ "emails", "sms", "calls", "notes", "tasks", "deals", "files", "meetings", "other_activity",
6
+ "stage_changes", "owner_changes", "field_updates", "tag_changes",
7
+ "workflows", "syncs", "other_system",
8
+ ];
9
+ export function registerContactTimelineTools(server, client) {
10
+ server.tool("conduyt_get_contact_timeline", "Read a contact's timeline (GET /contacts/{id}/timeline, contacts.view; each source further gated by its own module): every message, note, task, deal, file and activity on the contact, newest first, cursor-paged. " +
11
+ "Views: view=activity (what people did with the client: calls, texts, e-mails including ones an automation sent, notes, meetings, tasks, files, deals), view=history (what changed on the record: stage changes, owner changes incl. owner_changed with metadata fromUserName / toUserName, field updates, tag changes), view=system (what the machine ran: workflows with metadata.systemStatus, partner syncs, everything else), view=all (Everything, the default: every entry). " +
12
+ "type narrows to one type group of the view: activity = emails | sms | calls | notes | tasks | deals | files | meetings | other_activity; history = stage_changes | owner_changes | field_updates | tag_changes; system = workflows | syncs | other_system; view=all takes any of them. An unknown view or type, a type outside the view, or two different values of one parameter answers 400. " +
13
+ "Each row carries view and group. The answer's summary.counts gives the whole timeline's count per view (activity, history, system, all) and per type group (types), whatever the filter; summary.total / meta.total are the filter's. " +
14
+ "A text or e-mail an automation sent carries metadata.sentByAutomation { automationId, automationName, executionId } (messages sent before this existed carry none). " +
15
+ "The answer's summary.relationship gives the Relationship figures over every entry (counted, interactions, firstAt, lastAt, channels). " +
16
+ "Pass meta.nextCursor as cursor for the next page WITH THE SAME contact, view and type. The cursor is OPAQUE and signed (never build or edit one): reused under another view or type it answers 400 code cursor_filter_mismatch; a tampered, truncated or unknown cursor, or another contact's, answers 400 code cursor_invalid (start again without a cursor); a cursor from before views pages view all only.", {
17
+ contactId: z.string().uuid().describe("The contact (UUID)"),
18
+ view: z.enum(["activity", "history", "system", "all"]).optional().describe("activity | history | system | all (default all: every entry)"),
19
+ type: z.enum(TIMELINE_TYPE_GROUPS).optional().describe("One type group of the view, e.g. stage_changes or workflows"),
20
+ limit: z.number().int().min(1).max(100).optional().describe("Rows per page (default 50, max 100)"),
21
+ cursor: z.string().optional().describe("meta.nextCursor of the previous page of the SAME contact, view and type, passed unchanged (opaque, signed: another view or type 400 cursor_filter_mismatch, anything else 400 cursor_invalid)"),
22
+ }, async ({ contactId, view, type, limit, cursor }) => {
23
+ const params = new URLSearchParams();
24
+ if (view)
25
+ params.set("view", view);
26
+ if (type)
27
+ params.set("type", type);
28
+ if (limit)
29
+ params.set("limit", String(limit));
30
+ if (cursor)
31
+ params.set("cursor", cursor);
32
+ // one literal path (the coverage matrix reads the tool's endpoint from it); an empty query is harmless
33
+ return formatResult(await client.get(`/api/v1/contacts/${contactId}/timeline?${params}`));
34
+ });
35
+ }
@@ -1,5 +1,5 @@
1
1
  /** (people45 parity r6, Codex people45-parity-r5) THE record rule, per record object (never per route): every record-returning tool cites it */
2
- export declare const RECORD_USERS_RULE = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each id in the record's own non-Secure user fields that resolves, {} when none does. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers. A deal field that mirrors a contact or company user field shows the stored member id only, with no name: for a non-Secure source, read the name from the source record; a Secure source is masked and has no name anywhere.";
2
+ export declare const RECORD_USERS_RULE = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each user id its customFields answer in a non-Secure user field (on a deal, also in a field that mirrors a non-Secure contact or company user field) that resolves to a current or former member of the workspace (a removed member keeps their name), and {} when no answered id resolves; a masked Secure value is never named. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers.";
3
3
  export declare const USER_FIELD_READ_DOC: string;
4
4
  export declare const USER_FIELD_WRITE_DOC = " A USER custom field (fieldType user) takes a user id of the workspace (null clears); an id outside the workspace is 422 user_not_in_account. An owner change (assignedTo) also stamps the new owner's ROLE field when the workspace's settings.dealProfile.roleStamping maps their group (each rule's mode decides: first = never replaced once set, latest = the newest owner of the group wins; never blanked; a role key set in the same request is kept as sent).";
5
5
  export declare const USER_NOTE = " USER fields (fieldType user): the value is a user id of the workspace (record writes refuse an id outside it: 422 user_not_in_account; the inbound webhooks and the import also accept an exact \"First Last\" or the user's e-mail); a user field takes no options (422). Changing a TEXT field into a user field (PATCH fieldType user, a DEAL field only; confirmDependencies true to accept the references that read it as text, else 409 field_type_change_dependencies_unconfirmed; 422 field_type_change_refused) is a signed-in owner / admin action in the app only: an API key is refused 403 field_type_change_forbidden, so there is no input for it on these tools. A user value is a lowercase member id of the workspace (an empty array is refused); the type change is allowed on DEAL fields only (422 on a contact or company field). Automation steps update_contact_field, math_operation, ai_compose_email and update_deal_field refuse a non-member with 422 user_not_in_account. A deal create can answer 422 \"The custom fields changed while saving\" when a field's type changed meanwhile: re-read the definitions and retry.";
@@ -8,5 +8,5 @@ export declare const USER_FIELD_RECORD_WRITE_DOC = " A USER custom field (fieldT
8
8
  export declare const LIST_USERS_DOC: string;
9
9
  export declare const EVENT_USERS_DOC = " In a deal.*, contact.* or company.* event body, a record whose non-Secure user fields name a member carries customFieldUsers ({ userId: name }) beside its stored ids; the key is absent when nothing resolves, and a body that would pass the size limit with the names is sent with the ids only.";
10
10
  export declare const WEBHOOK_NAME_TAG_DOC = " In a webhook action body, {{deal.custom_name.<key>}} renders the NAME of the member a non-Secure deal user field holds ({{deal.custom.<key>}} stays the stored user id; empty when the value names no member).";
11
- export declare const REPLY_USERS_DOC = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each id in the record's own non-Secure user fields that resolves, {} when none does. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers. A deal field that mirrors a contact or company user field shows the stored member id only, with no name: for a non-Secure source, read the name from the source record; a Secure source is masked and has no name anywhere.";
11
+ export declare const REPLY_USERS_DOC = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each user id its customFields answer in a non-Secure user field (on a deal, also in a field that mirrors a non-Secure contact or company user field) that resolves to a current or former member of the workspace (a removed member keeps their name), and {} when no answered id resolves; a masked Secure value is never named. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers.";
12
12
  export declare const ANSWER_USERS_DOC = " Deal / contact / company records inside the answer carry customFieldUsers ({ userId: name }) for their non-Secure user fields that name a member, beside the stored ids (absent when nothing resolves).";
@@ -1,5 +1,5 @@
1
1
  /** (people45 parity r6, Codex people45-parity-r5) THE record rule, per record object (never per route): every record-returning tool cites it */
2
- export const RECORD_USERS_RULE = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each id in the record's own non-Secure user fields that resolves, {} when none does. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers. A deal field that mirrors a contact or company user field shows the stored member id only, with no name: for a non-Secure source, read the name from the source record; a Secure source is masked and has no name anywhere.";
2
+ export const RECORD_USERS_RULE = " Each contact, deal or company record returned with its customFields also carries customFieldUsers: { userId: display name } for each user id its customFields answer in a non-Secure user field (on a deal, also in a field that mirrors a non-Secure contact or company user field) that resolves to a current or former member of the workspace (a removed member keeps their name), and {} when no answered id resolves; a masked Secure value is never named. A reply with no record, or a record marked _degraded (its read could not be completed), carries no customFieldUsers.";
3
3
  // (userfield1303, batch32 #1303) USER custom fields and the card role stamp, named once for the record get / update tools and the definition tools
4
4
  export const USER_FIELD_READ_DOC = " User fields (#1303): a custom field of fieldType user holds a user id of the workspace." + RECORD_USERS_RULE;
5
5
  export const USER_FIELD_WRITE_DOC = " A USER custom field (fieldType user) takes a user id of the workspace (null clears); an id outside the workspace is 422 user_not_in_account. An owner change (assignedTo) also stamps the new owner's ROLE field when the workspace's settings.dealProfile.roleStamping maps their group (each rule's mode decides: first = never replaced once set, latest = the newest owner of the group wins; never blanked; a role key set in the same request is kept as sent).";
@@ -9,7 +9,8 @@ function unwrap(response) {
9
9
  }
10
10
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
11
11
  export function registerWorkflowSandboxTools(server, client) {
12
- server.tool("conduyt_workflow_validate", "Validate a workflow graph WITHOUT saving it. Returns errors and warnings so you can fix issues before creating or publishing. Always call this before conduyt_workflow_promote. An action config key the action does not read, or an unregistered action type, comes back as an error with code `unknown_action_config_key` / `unknown_action_type` and a \"Did you mean\" suggestion." + WEBHOOK_NAME_TAG_DOC, {
12
+ server.tool("conduyt_workflow_validate", "Validate a workflow graph WITHOUT saving it. Returns errors and warnings so you can fix issues before creating or publishing. Always call this before conduyt_workflow_promote. An action config key the action does not read, or an unregistered action type, comes back as an error with code `unknown_action_config_key` / `unknown_action_type` and a \"Did you mean\" suggestion. When the graph is an edit of a saved automation, pass its automationId: a rule tightened after that automation went live (an If/Else on contact.doNotContact, a trigger node's own cancelOnStatusChange, a step's success compared with the text \"true\" / \"false\") is then a WARNING for the instance already in its published graph (same step, same condition) and an error anywhere new, exactly as save and publish judge it." + WEBHOOK_NAME_TAG_DOC, {
13
+ automationId: z.string().regex(UUID_RE, "automationId must be a valid UUID").optional().describe("The saved automation this graph is an edit of (UUID). Its published graph, read by the server, decides which instances of a tightened rule are already live. Omit for a new workflow."),
13
14
  triggerEvent: z.string().describe("Trigger event (e.g. 'contact.created', 'deal.stage_changed', 'tag.added', 'scheduled')"),
14
15
  graph: z.object({
15
16
  nodes: z.array(z.object({
@@ -18,8 +19,9 @@ export function registerWorkflowSandboxTools(server, client) {
18
19
  }).passthrough()).describe("Array of graph nodes"),
19
20
  startNodeId: z.string().describe("ID of the trigger/start node"),
20
21
  }).describe("The workflow graph to validate"),
21
- }, async ({ triggerEvent, graph }) => {
22
+ }, async ({ automationId, triggerEvent, graph }) => {
22
23
  const result = await client.post("/api/v1/automations/validate", {
24
+ ...(automationId !== undefined ? { automationId } : {}),
23
25
  triggerEvent,
24
26
  graph,
25
27
  });
@@ -72,7 +74,9 @@ export function registerWorkflowSandboxTools(server, client) {
72
74
  error: "Automation has no graph or trigger event defined. Save a draft first.",
73
75
  });
74
76
  }
77
+ // (app pubgrandfather55) the automation is named, so the server judges this draft against ITS stored published graph, as publish does
75
78
  const rawValidation = await client.post("/api/v1/automations/validate", {
79
+ automationId,
76
80
  triggerEvent,
77
81
  graph,
78
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "conduyt-mcp",
3
- "version": "4.105.34",
3
+ "version": "4.105.36",
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",
@@ -644,6 +644,16 @@
644
644
  "match": "PUT /api/v1/me/email-signature",
645
645
  "status": "planned",
646
646
  "reason": "arrived with the app main merge before f132ed6f0, outside the unknown-caller feature; a typed tool is wanted but not built (4.90.0)"
647
+ },
648
+ {
649
+ "match": "GET /api/v1/lead-rings",
650
+ "status": "planned",
651
+ "reason": "the softphone's open-ring list (shotgun50, live before batch54), callable with an API key in principle (it filters by apiKeyMayReadDeals); a typed tool is wanted but not built; recorded by parity54 so the coverage gate has a decision"
652
+ },
653
+ {
654
+ "match": "POST /api/v1/lead-rings/:id/answer",
655
+ "status": "excluded",
656
+ "reason": "a person's softphone only by design (shotgun50): the route refuses an API key (a ring rings a person, not a key), so a tool could only ever answer an error"
647
657
  }
648
658
  ]
649
659
  }
@@ -1,11 +1,11 @@
1
1
  {
2
- "generatedAt": "2026-11-17T23:34:46.984Z",
3
- "toolCount": 445,
4
- "totalEndpoints": 1217,
2
+ "generatedAt": "2026-11-21T22:18:47.327Z",
3
+ "toolCount": 446,
4
+ "totalEndpoints": 1222,
5
5
  "counts": {
6
- "covered": 394,
7
- "excluded": 374,
8
- "planned": 449,
6
+ "covered": 395,
7
+ "excluded": 376,
8
+ "planned": 451,
9
9
  "uncategorized": 0
10
10
  },
11
11
  "matrix": {
@@ -1919,8 +1919,10 @@
1919
1919
  "reason": "contact subroutes beyond the core CRUD/search tools"
1920
1920
  },
1921
1921
  "GET /api/v1/contacts/:id/timeline": {
1922
- "status": "planned",
1923
- "reason": "contact subroutes beyond the core CRUD/search tools"
1922
+ "status": "covered",
1923
+ "tools": [
1924
+ "conduyt_get_contact_timeline"
1925
+ ]
1924
1926
  },
1925
1927
  "POST /api/v1/contacts/ai-import": {
1926
1928
  "status": "covered",
@@ -2098,6 +2100,10 @@
2098
2100
  "status": "excluded",
2099
2101
  "reason": "CRON_SECRET-gated infrastructure jobs; never key-callable"
2100
2102
  },
2103
+ "GET /api/v1/cron/delancey-nightly": {
2104
+ "status": "excluded",
2105
+ "reason": "CRON_SECRET-gated infrastructure jobs; never key-callable"
2106
+ },
2101
2107
  "GET /api/v1/cron/deliver-report-subscriptions": {
2102
2108
  "status": "excluded",
2103
2109
  "reason": "CRON_SECRET-gated infrastructure jobs; never key-callable"
@@ -2575,6 +2581,14 @@
2575
2581
  "conduyt_resolve_custom_field_options"
2576
2582
  ]
2577
2583
  },
2584
+ "GET /api/v1/custom-fields/cleanup-jobs": {
2585
+ "status": "planned",
2586
+ "reason": "custom field admin beyond read"
2587
+ },
2588
+ "POST /api/v1/custom-fields/cleanup-jobs/:jobId/retry": {
2589
+ "status": "planned",
2590
+ "reason": "custom field admin beyond read"
2591
+ },
2578
2592
  "GET /api/v1/dashboard": {
2579
2593
  "status": "covered",
2580
2594
  "tools": [
@@ -3801,6 +3815,14 @@
3801
3815
  "status": "planned",
3802
3816
  "reason": "lead pool claim surfaces"
3803
3817
  },
3818
+ "GET /api/v1/lead-rings": {
3819
+ "status": "planned",
3820
+ "reason": "the softphone's open-ring list (shotgun50, live before batch54), callable with an API key in principle (it filters by apiKeyMayReadDeals); a typed tool is wanted but not built; recorded by parity54 so the coverage gate has a decision"
3821
+ },
3822
+ "POST /api/v1/lead-rings/:id/answer": {
3823
+ "status": "excluded",
3824
+ "reason": "a person's softphone only by design (shotgun50): the route refuses an API key (a ring rings a person, not a key), so a tool could only ever answer an error"
3825
+ },
3804
3826
  "GET /api/v1/lead-routing": {
3805
3827
  "status": "planned",
3806
3828
  "reason": "lead routing rule management"