@trustpager/mcp-server 1.0.0 → 1.1.1
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/index.d.ts +1 -1
- package/dist/index.js +3 -103
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +57 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +152 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/activities.d.ts.map +1 -1
- package/dist/tools/activities.js +18 -5
- package/dist/tools/activities.js.map +1 -1
- package/dist/tools/ai.js +5 -5
- package/dist/tools/ai.js.map +1 -1
- package/dist/tools/automations.d.ts.map +1 -1
- package/dist/tools/automations.js +130 -12
- package/dist/tools/automations.js.map +1 -1
- package/dist/tools/communications.d.ts.map +1 -1
- package/dist/tools/communications.js +279 -8
- package/dist/tools/communications.js.map +1 -1
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +89 -8
- package/dist/tools/contacts.js.map +1 -1
- package/dist/tools/crm-templates.d.ts +7 -0
- package/dist/tools/crm-templates.d.ts.map +1 -0
- package/dist/tools/crm-templates.js +102 -0
- package/dist/tools/crm-templates.js.map +1 -0
- package/dist/tools/customers.d.ts.map +1 -1
- package/dist/tools/customers.js +43 -9
- package/dist/tools/customers.js.map +1 -1
- package/dist/tools/deals.d.ts.map +1 -1
- package/dist/tools/deals.js +101 -14
- package/dist/tools/deals.js.map +1 -1
- package/dist/tools/documents.d.ts.map +1 -1
- package/dist/tools/documents.js +78 -9
- package/dist/tools/documents.js.map +1 -1
- package/dist/tools/event-queues.d.ts +7 -0
- package/dist/tools/event-queues.d.ts.map +1 -0
- package/dist/tools/event-queues.js +142 -0
- package/dist/tools/event-queues.js.map +1 -0
- package/dist/tools/files.d.ts +7 -0
- package/dist/tools/files.d.ts.map +1 -0
- package/dist/tools/files.js +182 -0
- package/dist/tools/files.js.map +1 -0
- package/dist/tools/forms.d.ts.map +1 -1
- package/dist/tools/forms.js +74 -9
- package/dist/tools/forms.js.map +1 -1
- package/dist/tools/notepads.d.ts +7 -0
- package/dist/tools/notepads.d.ts.map +1 -0
- package/dist/tools/notepads.js +119 -0
- package/dist/tools/notepads.js.map +1 -0
- package/dist/tools/order-forms.d.ts +7 -0
- package/dist/tools/order-forms.d.ts.map +1 -0
- package/dist/tools/order-forms.js +127 -0
- package/dist/tools/order-forms.js.map +1 -0
- package/dist/tools/pipelines.js +6 -6
- package/dist/tools/pipelines.js.map +1 -1
- package/dist/tools/platform.d.ts.map +1 -1
- package/dist/tools/platform.js +45 -12
- package/dist/tools/platform.js.map +1 -1
- package/dist/tools/products.js +5 -5
- package/dist/tools/products.js.map +1 -1
- package/dist/tools/supplier-products.d.ts +7 -0
- package/dist/tools/supplier-products.d.ts.map +1 -0
- package/dist/tools/supplier-products.js +119 -0
- package/dist/tools/supplier-products.js.map +1 -0
- package/dist/tools/tasks.d.ts.map +1 -1
- package/dist/tools/tasks.js +19 -6
- package/dist/tools/tasks.js.map +1 -1
- package/dist/tools/text-agents.d.ts +7 -0
- package/dist/tools/text-agents.d.ts.map +1 -0
- package/dist/tools/text-agents.js +90 -0
- package/dist/tools/text-agents.js.map +1 -0
- package/dist/tools/transcripts.d.ts +7 -0
- package/dist/tools/transcripts.d.ts.map +1 -0
- package/dist/tools/transcripts.js +83 -0
- package/dist/tools/transcripts.js.map +1 -0
- package/dist/tools/webhooks.d.ts +7 -0
- package/dist/tools/webhooks.d.ts.map +1 -0
- package/dist/tools/webhooks.js +237 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/dist/tools/work-orders.d.ts +7 -0
- package/dist/tools/work-orders.d.ts.map +1 -0
- package/dist/tools/work-orders.js +99 -0
- package/dist/tools/work-orders.js.map +1 -0
- package/package.json +3 -2
package/dist/tools/tasks.js
CHANGED
|
@@ -2,7 +2,7 @@ import { apiRequest, formatResponse, buildQuery, generateIdempotencyKey } from '
|
|
|
2
2
|
export const taskTools = [
|
|
3
3
|
{
|
|
4
4
|
name: 'list_tasks',
|
|
5
|
-
description: 'List tasks with
|
|
5
|
+
description: 'List all tasks — browse, view, show, or get all tasks with filters for deal, contact, priority, status, and due date. Use this to see all tasks, check overdue items, or find tasks for a deal.',
|
|
6
6
|
inputSchema: {
|
|
7
7
|
type: 'object',
|
|
8
8
|
properties: {
|
|
@@ -18,9 +18,20 @@ export const taskTools = [
|
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
},
|
|
21
|
+
{
|
|
22
|
+
name: 'get_task',
|
|
23
|
+
description: 'Get a single task by ID with full details including title, description, status, priority, due date, assigned user, and linked deal/contact/customer.',
|
|
24
|
+
inputSchema: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
id: { type: 'string', description: 'Task UUID' },
|
|
28
|
+
},
|
|
29
|
+
required: ['id'],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
21
32
|
{
|
|
22
33
|
name: 'create_task',
|
|
23
|
-
description: 'Create a new task.',
|
|
34
|
+
description: 'Create a new task or to-do item. Set title, description, priority (low/medium/high/urgent), due date, category, and link to a deal, contact, or customer.',
|
|
24
35
|
inputSchema: {
|
|
25
36
|
type: 'object',
|
|
26
37
|
properties: {
|
|
@@ -40,7 +51,7 @@ export const taskTools = [
|
|
|
40
51
|
},
|
|
41
52
|
{
|
|
42
53
|
name: 'update_task',
|
|
43
|
-
description: 'Update an existing task. Only include fields you want to change.',
|
|
54
|
+
description: 'Update an existing task. Only include fields you want to change. Can modify title, description, status, priority, due date, category, assignment, and linked entities.',
|
|
44
55
|
inputSchema: {
|
|
45
56
|
type: 'object',
|
|
46
57
|
properties: {
|
|
@@ -61,7 +72,7 @@ export const taskTools = [
|
|
|
61
72
|
},
|
|
62
73
|
{
|
|
63
74
|
name: 'delete_task',
|
|
64
|
-
description: 'Permanently delete a task.',
|
|
75
|
+
description: 'Permanently delete a task. This action cannot be undone.',
|
|
65
76
|
inputSchema: {
|
|
66
77
|
type: 'object',
|
|
67
78
|
properties: { id: { type: 'string', description: 'Task UUID' } },
|
|
@@ -70,7 +81,7 @@ export const taskTools = [
|
|
|
70
81
|
},
|
|
71
82
|
{
|
|
72
83
|
name: 'complete_task',
|
|
73
|
-
description: 'Mark a task as completed.',
|
|
84
|
+
description: 'Mark a task as completed — sets status to "completed" and records the completion timestamp. Use this to close out a to-do item.',
|
|
74
85
|
inputSchema: {
|
|
75
86
|
type: 'object',
|
|
76
87
|
properties: { id: { type: 'string', description: 'Task UUID' } },
|
|
@@ -79,7 +90,7 @@ export const taskTools = [
|
|
|
79
90
|
},
|
|
80
91
|
{
|
|
81
92
|
name: 'list_task_categories',
|
|
82
|
-
description: 'List all available task categories.',
|
|
93
|
+
description: 'List all available task categories — get the defined category options for organising and filtering tasks.',
|
|
83
94
|
inputSchema: {
|
|
84
95
|
type: 'object',
|
|
85
96
|
properties: {},
|
|
@@ -103,6 +114,8 @@ export async function handleTaskTool(name, args) {
|
|
|
103
114
|
});
|
|
104
115
|
return formatResponse(await apiRequest('GET', `/tasks${query}`));
|
|
105
116
|
}
|
|
117
|
+
case 'get_task':
|
|
118
|
+
return formatResponse(await apiRequest('GET', `/tasks/${args.id}`));
|
|
106
119
|
case 'create_task': {
|
|
107
120
|
const { id: _, ...body } = args;
|
|
108
121
|
return formatResponse(await apiRequest('POST', '/tasks', body, generateIdempotencyKey()));
|
package/dist/tools/tasks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/tools/tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAExG,MAAM,CAAC,MAAM,SAAS,GAAW;IAC/B;QACE,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"tasks.js","sourceRoot":"","sources":["../../src/tools/tasks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,cAAc,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,CAAC,CAAC;QACzE,CAAC;QACD,KAAK,aAAa,CAAC,CAAC,CAAC;YACnB,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,QAAQ,EAAE,UAAU,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACzE,CAAC;QACD,KAAK,eAAe,CAAC,CAAC,CAAC;YACrB,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,OAAO,EAAE,UAAU,IAAI,CAAC,EAAE,EAAE,EAAE;gBACnE,MAAM,EAAE,WAAW;gBACnB,YAAY,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;aACvC,CAAC,CAAC,CAAC;QACN,CAAC;QACD,KAAK,sBAAsB,CAAC,CAAC,CAAC;YAC5B,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC;QACtE,CAAC;QACD;YACE,OAAO,EAAE,IAAI,EAAE,sBAAsB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACjE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
export declare const textAgentTools: Tool[];
|
|
3
|
+
export declare function handleTextAgentTool(name: string, args: Record<string, unknown>): Promise<{
|
|
4
|
+
text: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=text-agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-agents.d.ts","sourceRoot":"","sources":["../../src/tools/text-agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D,eAAO,MAAM,cAAc,EAAE,IAAI,EA6DhC,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GAyBpF"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { apiRequest, formatResponse, buildQuery, generateIdempotencyKey } from '../utils/api-client.js';
|
|
2
|
+
export const textAgentTools = [
|
|
3
|
+
{
|
|
4
|
+
name: 'list_text_agents',
|
|
5
|
+
description: 'List all text agents — browse, view, show, or get all AI text agent configurations. Use this to see text agents, SMS bots, or chat agents.',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
limit: { type: 'number', description: 'Items per page (default 25, max 100)' },
|
|
10
|
+
after: { type: 'string', description: 'Cursor: get items after this ID' },
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'create_text_agent',
|
|
16
|
+
description: 'Create a new text agent with a name and optional knowledgebase.',
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: 'object',
|
|
19
|
+
properties: {
|
|
20
|
+
name: { type: 'string', description: 'Text agent name (required)' },
|
|
21
|
+
enabled: { type: 'boolean', description: 'Whether the agent is enabled' },
|
|
22
|
+
knowledgebase: { type: 'string', description: 'Knowledgebase content for the agent' },
|
|
23
|
+
},
|
|
24
|
+
required: ['name'],
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'update_text_agent',
|
|
29
|
+
description: 'Update an existing text agent. Only include fields you want to change.',
|
|
30
|
+
inputSchema: {
|
|
31
|
+
type: 'object',
|
|
32
|
+
properties: {
|
|
33
|
+
id: { type: 'string', description: 'Text agent UUID' },
|
|
34
|
+
name: { type: 'string', description: 'Agent name' },
|
|
35
|
+
enabled: { type: 'boolean', description: 'Whether the agent is enabled' },
|
|
36
|
+
knowledgebase: { type: 'string', description: 'Knowledgebase content' },
|
|
37
|
+
},
|
|
38
|
+
required: ['id'],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'delete_text_agent',
|
|
43
|
+
description: 'Permanently delete a text agent. This action cannot be undone.',
|
|
44
|
+
inputSchema: {
|
|
45
|
+
type: 'object',
|
|
46
|
+
properties: { id: { type: 'string', description: 'Text agent UUID' } },
|
|
47
|
+
required: ['id'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
name: 'list_text_agent_responses',
|
|
52
|
+
description: 'List text agent responses — view AI conversation responses for a specific text agent including model used, tokens, and cost.',
|
|
53
|
+
inputSchema: {
|
|
54
|
+
type: 'object',
|
|
55
|
+
properties: {
|
|
56
|
+
id: { type: 'string', description: 'Text agent UUID (required)' },
|
|
57
|
+
limit: { type: 'number', description: 'Items per page (default 25, max 100)' },
|
|
58
|
+
after: { type: 'string', description: 'Cursor: get items after this ID' },
|
|
59
|
+
},
|
|
60
|
+
required: ['id'],
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
export async function handleTextAgentTool(name, args) {
|
|
65
|
+
switch (name) {
|
|
66
|
+
case 'list_text_agents': {
|
|
67
|
+
const { limit, after } = args;
|
|
68
|
+
const query = buildQuery({ limit: limit, after: after });
|
|
69
|
+
return formatResponse(await apiRequest('GET', `/text-agents${query}`));
|
|
70
|
+
}
|
|
71
|
+
case 'create_text_agent': {
|
|
72
|
+
const { id: _, ...body } = args;
|
|
73
|
+
return formatResponse(await apiRequest('POST', '/text-agents', body, generateIdempotencyKey()));
|
|
74
|
+
}
|
|
75
|
+
case 'update_text_agent': {
|
|
76
|
+
const { id, ...body } = args;
|
|
77
|
+
return formatResponse(await apiRequest('PATCH', `/text-agents/${id}`, body));
|
|
78
|
+
}
|
|
79
|
+
case 'delete_text_agent':
|
|
80
|
+
return formatResponse(await apiRequest('DELETE', `/text-agents/${args.id}`));
|
|
81
|
+
case 'list_text_agent_responses': {
|
|
82
|
+
const { id, limit, after } = args;
|
|
83
|
+
const query = buildQuery({ limit: limit, after: after });
|
|
84
|
+
return formatResponse(await apiRequest('GET', `/text-agents/${id}/responses${query}`));
|
|
85
|
+
}
|
|
86
|
+
default:
|
|
87
|
+
return { text: `Unknown text agent tool: ${name}`, isError: true };
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=text-agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-agents.js","sourceRoot":"","sources":["../../src/tools/text-agents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAExG,MAAM,CAAC,MAAM,cAAc,GAAW;IACpC;QACE,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,4IAA4I;QACzJ,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;gBAC9E,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iCAAiC,EAAE;aAC1E;SACF;KACF;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,iEAAiE;QAC9E,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,4BAA4B,EAAE;gBACnE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,8BAA8B,EAAE;gBACzE,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,qCAAqC,EAAE;aACtF;YACD,QAAQ,EAAE,CAAC,MAAM,CAAC;SACnB;KACF;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,wEAAwE;QACrF,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,iBAAi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
export declare const transcriptTools: Tool[];
|
|
3
|
+
export declare function handleTranscriptTool(name: string, args: Record<string, unknown>): Promise<{
|
|
4
|
+
text: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=transcripts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcripts.d.ts","sourceRoot":"","sources":["../../src/tools/transcripts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D,eAAO,MAAM,eAAe,EAAE,IAAI,EAoDjC,CAAC;AAEF,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CA2BnI"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { apiRequest, formatResponse, buildQuery } from '../utils/api-client.js';
|
|
2
|
+
export const transcriptTools = [
|
|
3
|
+
{
|
|
4
|
+
name: 'list_transcripts',
|
|
5
|
+
description: 'List all transcripts — browse, view, or get call recordings and meeting transcripts. Filter by type (call, meeting), source, or date range. Use this to find transcripts, recordings, or conversation history.',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
type: { type: 'string', description: 'Filter by type (call, meeting)' },
|
|
10
|
+
source: { type: 'string', description: 'Filter by source (retell, zoom, manual, etc.)' },
|
|
11
|
+
occurred_after: { type: 'string', description: 'Filter: occurred after this ISO date' },
|
|
12
|
+
occurred_before: { type: 'string', description: 'Filter: occurred before this ISO date' },
|
|
13
|
+
limit: { type: 'number', description: 'Items per page (default 25, max 100)' },
|
|
14
|
+
after: { type: 'string', description: 'Cursor: get items after this ID' },
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'get_transcript',
|
|
20
|
+
description: 'Get a single transcript by ID with full text content, participants, duration, and recording URL.',
|
|
21
|
+
inputSchema: {
|
|
22
|
+
type: 'object',
|
|
23
|
+
properties: {
|
|
24
|
+
id: { type: 'string', description: 'Transcript UUID' },
|
|
25
|
+
},
|
|
26
|
+
required: ['id'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'list_coaching_results',
|
|
31
|
+
description: 'List all AI coaching results — call analysis scores, strengths, improvements, and coaching summaries generated from transcripts.',
|
|
32
|
+
inputSchema: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
framework: { type: 'string', description: 'Filter by coaching framework' },
|
|
36
|
+
source_type: { type: 'string', description: 'Filter by source type' },
|
|
37
|
+
team_member_id: { type: 'string', description: 'Filter by team member UUID' },
|
|
38
|
+
limit: { type: 'number', description: 'Items per page (default 25, max 100)' },
|
|
39
|
+
after: { type: 'string', description: 'Cursor: get items after this ID' },
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'get_coaching_result',
|
|
45
|
+
description: 'Get a single AI coaching result by ID with scores, strengths, improvements, and coaching summary.',
|
|
46
|
+
inputSchema: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
id: { type: 'string', description: 'Coaching result UUID' },
|
|
50
|
+
},
|
|
51
|
+
required: ['id'],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
];
|
|
55
|
+
export async function handleTranscriptTool(name, args) {
|
|
56
|
+
switch (name) {
|
|
57
|
+
case 'list_transcripts': {
|
|
58
|
+
const { type, source, occurred_after, occurred_before, limit, after } = args;
|
|
59
|
+
const query = buildQuery({
|
|
60
|
+
type: type, source: source,
|
|
61
|
+
occurred_after: occurred_after, occurred_before: occurred_before,
|
|
62
|
+
limit: limit, after: after,
|
|
63
|
+
});
|
|
64
|
+
return formatResponse(await apiRequest('GET', `/transcripts${query}`));
|
|
65
|
+
}
|
|
66
|
+
case 'get_transcript':
|
|
67
|
+
return formatResponse(await apiRequest('GET', `/transcripts/${args.id}`));
|
|
68
|
+
case 'list_coaching_results': {
|
|
69
|
+
const { framework, source_type, team_member_id, limit, after } = args;
|
|
70
|
+
const query = buildQuery({
|
|
71
|
+
framework: framework, source_type: source_type,
|
|
72
|
+
team_member_id: team_member_id,
|
|
73
|
+
limit: limit, after: after,
|
|
74
|
+
});
|
|
75
|
+
return formatResponse(await apiRequest('GET', `/coaching-results${query}`));
|
|
76
|
+
}
|
|
77
|
+
case 'get_coaching_result':
|
|
78
|
+
return formatResponse(await apiRequest('GET', `/coaching-results/${args.id}`));
|
|
79
|
+
default:
|
|
80
|
+
return { text: `Unknown transcript tool: ${name}`, isError: true };
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=transcripts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcripts.js","sourceRoot":"","sources":["../../src/tools/transcripts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEhF,MAAM,CAAC,MAAM,eAAe,GAAW;IACrC;QACE,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,gNAAgN;QAC7N,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBACvE,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+CAA+C,EAAE;gBACxF,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sCAAsC,EAAE;gBACvF,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE;gBACzF,K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AE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACvE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
export declare const webhookTools: Tool[];
|
|
3
|
+
export declare function handleWebhookTool(name: string, args: Record<string, unknown>): Promise<{
|
|
4
|
+
text: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D,eAAO,MAAM,YAAY,EAAE,IAAI,EA6L9B,CAAC;AAEF,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GA4ClF"}
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { apiRequest, formatResponse, generateIdempotencyKey } from '../utils/api-client.js';
|
|
2
|
+
export const webhookTools = [
|
|
3
|
+
{
|
|
4
|
+
name: 'list_outgoing_webhooks',
|
|
5
|
+
description: 'List all outgoing webhooks — browse, view, or get all HTTP callbacks, external notifications, and webhook endpoints configured to send data out to external services.',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {},
|
|
9
|
+
},
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
name: 'get_outgoing_webhook',
|
|
13
|
+
description: 'Get a single outgoing webhook by ID with full details including URL, trigger events, headers, body template, and enabled status.',
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
id: { type: 'string', description: 'Outgoing webhook UUID' },
|
|
18
|
+
},
|
|
19
|
+
required: ['id'],
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'create_outgoing_webhook',
|
|
24
|
+
description: 'Create a new outgoing webhook — send HTTP callbacks to external services when events occur. Configure trigger events, custom headers, and body templates.',
|
|
25
|
+
inputSchema: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
name: { type: 'string', description: 'Webhook name (required)' },
|
|
29
|
+
url: { type: 'string', description: 'Webhook destination URL (required)' },
|
|
30
|
+
enabled: { type: 'boolean', description: 'Whether the webhook is enabled' },
|
|
31
|
+
trigger_events: {
|
|
32
|
+
type: 'array',
|
|
33
|
+
items: { type: 'string' },
|
|
34
|
+
description: 'List of events that trigger this webhook',
|
|
35
|
+
},
|
|
36
|
+
headers: { type: 'object', description: 'Custom HTTP headers to include' },
|
|
37
|
+
body_template: { type: 'object', description: 'Custom body template (JSON)' },
|
|
38
|
+
website_id: { type: 'string', description: 'Link to a website UUID' },
|
|
39
|
+
},
|
|
40
|
+
required: ['name', 'url'],
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'update_outgoing_webhook',
|
|
45
|
+
description: 'Update an outgoing webhook. Only include fields you want to change. Can modify URL, trigger events, headers, body template, and enabled status.',
|
|
46
|
+
inputSchema: {
|
|
47
|
+
type: 'object',
|
|
48
|
+
properties: {
|
|
49
|
+
id: { type: 'string', description: 'Outgoing webhook UUID' },
|
|
50
|
+
name: { type: 'string' },
|
|
51
|
+
url: { type: 'string' },
|
|
52
|
+
enabled: { type: 'boolean' },
|
|
53
|
+
trigger_events: { type: 'array', items: { type: 'string' } },
|
|
54
|
+
headers: { type: 'object' },
|
|
55
|
+
body_template: { type: 'object' },
|
|
56
|
+
website_id: { type: 'string' },
|
|
57
|
+
},
|
|
58
|
+
required: ['id'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'delete_outgoing_webhook',
|
|
63
|
+
description: 'Permanently delete an outgoing webhook. It will no longer send HTTP callbacks. This action cannot be undone.',
|
|
64
|
+
inputSchema: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
id: { type: 'string', description: 'Outgoing webhook UUID' },
|
|
68
|
+
},
|
|
69
|
+
required: ['id'],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'get_outgoing_webhook_logs',
|
|
74
|
+
description: 'Get delivery history for an outgoing webhook — view success/failure logs, HTTP status codes, response bodies, and timestamps for each delivery attempt.',
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: 'object',
|
|
77
|
+
properties: {
|
|
78
|
+
id: { type: 'string', description: 'Outgoing webhook UUID' },
|
|
79
|
+
},
|
|
80
|
+
required: ['id'],
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'test_outgoing_webhook',
|
|
85
|
+
description: 'Send a test payload to the outgoing webhook URL — verify the endpoint is reachable and correctly processing data before enabling it for production.',
|
|
86
|
+
inputSchema: {
|
|
87
|
+
type: 'object',
|
|
88
|
+
properties: {
|
|
89
|
+
id: { type: 'string', description: 'Outgoing webhook UUID' },
|
|
90
|
+
},
|
|
91
|
+
required: ['id'],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
name: 'list_incoming_webhooks',
|
|
96
|
+
description: 'List all incoming webhooks — browse, view, or get all endpoints configured to receive data from external services, third-party platforms, and integrations.',
|
|
97
|
+
inputSchema: {
|
|
98
|
+
type: 'object',
|
|
99
|
+
properties: {},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'get_incoming_webhook',
|
|
104
|
+
description: 'Get a single incoming webhook by ID with full details including service type, config, webhook URL, and CRM pipeline routing.',
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
id: { type: 'string', description: 'Incoming webhook UUID' },
|
|
109
|
+
},
|
|
110
|
+
required: ['id'],
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'create_incoming_webhook',
|
|
115
|
+
description: 'Create a new incoming webhook — receive data from external services and route leads to a CRM pipeline. Configure service type, name, and pipeline routing.',
|
|
116
|
+
inputSchema: {
|
|
117
|
+
type: 'object',
|
|
118
|
+
properties: {
|
|
119
|
+
service_type: { type: 'string', description: 'Service type (required)' },
|
|
120
|
+
service_name: { type: 'string', description: 'Service display name (required)' },
|
|
121
|
+
config_data: { type: 'object', description: 'Webhook configuration data (JSON)' },
|
|
122
|
+
crm_pipeline_id: { type: 'string', description: 'CRM pipeline UUID for lead routing' },
|
|
123
|
+
crm_initial_stage_id: { type: 'string', description: 'Initial pipeline stage UUID' },
|
|
124
|
+
},
|
|
125
|
+
required: ['service_type', 'service_name'],
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: 'update_incoming_webhook',
|
|
130
|
+
description: 'Update an incoming webhook. Only include fields you want to change. Can modify service type, name, config, and CRM pipeline routing.',
|
|
131
|
+
inputSchema: {
|
|
132
|
+
type: 'object',
|
|
133
|
+
properties: {
|
|
134
|
+
id: { type: 'string', description: 'Incoming webhook UUID' },
|
|
135
|
+
service_type: { type: 'string' },
|
|
136
|
+
service_name: { type: 'string' },
|
|
137
|
+
config_data: { type: 'object' },
|
|
138
|
+
crm_pipeline_id: { type: 'string' },
|
|
139
|
+
crm_initial_stage_id: { type: 'string' },
|
|
140
|
+
},
|
|
141
|
+
required: ['id'],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'delete_incoming_webhook',
|
|
146
|
+
description: 'Permanently delete an incoming webhook. External services will no longer be able to send data to this endpoint. This action cannot be undone.',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
id: { type: 'string', description: 'Incoming webhook UUID' },
|
|
151
|
+
},
|
|
152
|
+
required: ['id'],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'create_webhook_subscription',
|
|
157
|
+
description: 'Subscribe to real-time CRM events via webhook — get notified when deals, contacts, or other entities change. Events: deal.created, deal.won, deal.lost, contact.created, contact.updated, and more.',
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
properties: {
|
|
161
|
+
url: { type: 'string', description: 'Callback URL (required)' },
|
|
162
|
+
events: {
|
|
163
|
+
type: 'array',
|
|
164
|
+
items: { type: 'string' },
|
|
165
|
+
description: 'List of event types to subscribe to (required)',
|
|
166
|
+
},
|
|
167
|
+
secret: { type: 'string', description: 'Shared secret for HMAC signature verification (required)' },
|
|
168
|
+
},
|
|
169
|
+
required: ['url', 'events', 'secret'],
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: 'list_webhook_subscriptions',
|
|
174
|
+
description: 'List all webhook subscriptions — browse, view, or get all real-time event subscriptions and their callback URLs.',
|
|
175
|
+
inputSchema: {
|
|
176
|
+
type: 'object',
|
|
177
|
+
properties: {},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'delete_webhook_subscription',
|
|
182
|
+
description: 'Permanently delete a webhook subscription — stop receiving real-time event notifications at the callback URL. This action cannot be undone.',
|
|
183
|
+
inputSchema: {
|
|
184
|
+
type: 'object',
|
|
185
|
+
properties: {
|
|
186
|
+
id: { type: 'string', description: 'Webhook subscription UUID' },
|
|
187
|
+
},
|
|
188
|
+
required: ['id'],
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
];
|
|
192
|
+
export async function handleWebhookTool(name, args) {
|
|
193
|
+
switch (name) {
|
|
194
|
+
case 'list_outgoing_webhooks':
|
|
195
|
+
return formatResponse(await apiRequest('GET', '/webhooks/outgoing'));
|
|
196
|
+
case 'get_outgoing_webhook':
|
|
197
|
+
return formatResponse(await apiRequest('GET', `/webhooks/outgoing/${args.id}`));
|
|
198
|
+
case 'create_outgoing_webhook': {
|
|
199
|
+
const { id: _, ...body } = args;
|
|
200
|
+
return formatResponse(await apiRequest('POST', '/webhooks/outgoing', body, generateIdempotencyKey()));
|
|
201
|
+
}
|
|
202
|
+
case 'update_outgoing_webhook': {
|
|
203
|
+
const { id, ...body } = args;
|
|
204
|
+
return formatResponse(await apiRequest('PATCH', `/webhooks/outgoing/${id}`, body));
|
|
205
|
+
}
|
|
206
|
+
case 'delete_outgoing_webhook':
|
|
207
|
+
return formatResponse(await apiRequest('DELETE', `/webhooks/outgoing/${args.id}`));
|
|
208
|
+
case 'get_outgoing_webhook_logs':
|
|
209
|
+
return formatResponse(await apiRequest('GET', `/webhooks/outgoing/${args.id}/logs`));
|
|
210
|
+
case 'test_outgoing_webhook':
|
|
211
|
+
return formatResponse(await apiRequest('POST', `/webhooks/outgoing/${args.id}/test`, undefined, generateIdempotencyKey()));
|
|
212
|
+
case 'list_incoming_webhooks':
|
|
213
|
+
return formatResponse(await apiRequest('GET', '/webhooks/incoming'));
|
|
214
|
+
case 'get_incoming_webhook':
|
|
215
|
+
return formatResponse(await apiRequest('GET', `/webhooks/incoming/${args.id}`));
|
|
216
|
+
case 'create_incoming_webhook': {
|
|
217
|
+
const { id: _, ...body } = args;
|
|
218
|
+
return formatResponse(await apiRequest('POST', '/webhooks/incoming', body, generateIdempotencyKey()));
|
|
219
|
+
}
|
|
220
|
+
case 'update_incoming_webhook': {
|
|
221
|
+
const { id, ...body } = args;
|
|
222
|
+
return formatResponse(await apiRequest('PATCH', `/webhooks/incoming/${id}`, body));
|
|
223
|
+
}
|
|
224
|
+
case 'delete_incoming_webhook':
|
|
225
|
+
return formatResponse(await apiRequest('DELETE', `/webhooks/incoming/${args.id}`));
|
|
226
|
+
case 'create_webhook_subscription': {
|
|
227
|
+
return formatResponse(await apiRequest('POST', '/webhooks/subscribe', args, generateIdempotencyKey()));
|
|
228
|
+
}
|
|
229
|
+
case 'list_webhook_subscriptions':
|
|
230
|
+
return formatResponse(await apiRequest('GET', '/webhooks/subscriptions'));
|
|
231
|
+
case 'delete_webhook_subscription':
|
|
232
|
+
return formatResponse(await apiRequest('DELETE', `/webhooks/subscriptions/${args.id}`));
|
|
233
|
+
default:
|
|
234
|
+
return { text: `Unknown webhook tool: ${name}`, isError: true };
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
//# sourceMappingURL=webhooks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAc,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAExG,MAAM,CAAC,MAAM,YAAY,GAAW;IAClC;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,uKAAuK;QACpL,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE,EAAE;SACf;KACF;IACD;QACE,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EAAE,kIAAkI;QAC/I,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE;aAC7D;YACD,QAAQ,EAAE,CAAC,IAAI,CAAC;SACjB;KACF;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,WAAW,EAAE,2JAA2J;QACxK,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yBAAyB,EAAE;gBAChE,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,oCAAoC,EAAE;gBAC1E,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,gCAAgC,EAAE;gBAC3E,cAAc,EAAE;oBACd,IA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C,MAAM,UAAU,CAAC,OAAO,EAAE,sBAAsB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC;QACD,KAAK,yBAAyB;YAC5B,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,QAAQ,EAAE,sBAAsB,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QACrF,KAAK,6BAA6B,CAAC,CAAC,CAAC;YACnC,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,MAAM,EAAE,qBAAqB,EAAE,IAAI,EAAE,sBAAsB,EAAE,CAAC,CAAC,CAAC;QACzG,CAAC;QACD,KAAK,4BAA4B;YAC/B,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,KAAK,EAAE,yBAAyB,CAAC,CAAC,CAAC;QAC5E,KAAK,6BAA6B;YAChC,OAAO,cAAc,CAAC,MAAM,UAAU,CAAC,QAAQ,EAAE,2BAA2B,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;QAC1F;YACE,OAAO,EAAE,IAAI,EAAE,yBAAyB,IAAI,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IACpE,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
export declare const workOrderTools: Tool[];
|
|
3
|
+
export declare function handleWorkOrderTool(name: string, args: Record<string, unknown>): Promise<{
|
|
4
|
+
text: string;
|
|
5
|
+
isError: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=work-orders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"work-orders.d.ts","sourceRoot":"","sources":["../../src/tools/work-orders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AAG1D,eAAO,MAAM,cAAc,EAAE,IAAI,EAiEhC,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;GA8BpF"}
|