@besales/mcp 0.25.0 → 0.31.0
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 +26 -3
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +22 -0
- package/dist/cli.js.map +1 -1
- package/dist/instructions/server-instructions.d.ts +1 -1
- package/dist/instructions/server-instructions.js +6 -0
- package/dist/instructions/server-instructions.js.map +1 -1
- package/dist/resources/docs/agent-behavior.md +3 -1
- package/dist/resources/docs/pipeline-builder.md +6 -2
- package/dist/resources/registry.js +1 -0
- package/dist/resources/registry.js.map +1 -1
- package/dist/resources/workflows/audit-dialogues.md +89 -0
- package/dist/resources/workflows/compare-models.md +1 -1
- package/dist/schemas/mcp-tools.json +4260 -873
- package/dist/skills/besales-dialogue-audit/SKILL.md +27 -0
- package/dist/skills/install-skill.d.ts +7 -0
- package/dist/skills/install-skill.js +33 -0
- package/dist/skills/install-skill.js.map +1 -0
- package/dist/tools/definitions/broadcast-analytics.d.ts +26 -0
- package/dist/tools/definitions/broadcast-analytics.js +89 -0
- package/dist/tools/definitions/broadcast-analytics.js.map +1 -0
- package/dist/tools/definitions/crm-platform.d.ts +1 -0
- package/dist/tools/definitions/crm-platform.js +5 -0
- package/dist/tools/definitions/crm-platform.js.map +1 -1
- package/dist/tools/definitions/dialogue-export.d.ts +3 -0
- package/dist/tools/definitions/dialogue-export.js +27 -2
- package/dist/tools/definitions/dialogue-export.js.map +1 -1
- package/dist/tools/definitions/model-comparison.js +1 -1
- package/dist/tools/definitions/platform-setup.d.ts +36 -1
- package/dist/tools/definitions/platform-setup.js +130 -0
- package/dist/tools/definitions/platform-setup.js.map +1 -1
- package/dist/tools/definitions/shared.d.ts +10 -4
- package/dist/tools/definitions/shared.js +22 -5
- package/dist/tools/definitions/shared.js.map +1 -1
- package/dist/tools/definitions.d.ts +65 -1
- package/dist/tools/definitions.js +2 -0
- package/dist/tools/definitions.js.map +1 -1
- package/docs/host-setup.md +4 -4
- package/package.json +2 -2
|
@@ -228,17 +228,26 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
228
228
|
deal_id?: string | undefined;
|
|
229
229
|
transport?: string | undefined;
|
|
230
230
|
dialog_id?: string | undefined;
|
|
231
|
+
lead_last_active_at?: string | undefined;
|
|
232
|
+
segment_entered_at?: string | undefined;
|
|
231
233
|
}[];
|
|
232
234
|
workspace_id?: string | undefined;
|
|
233
235
|
launch_type?: "status" | "board" | "group" | undefined;
|
|
234
236
|
funnel?: string | undefined;
|
|
235
237
|
segment?: string | undefined;
|
|
238
|
+
cohort_label?: string | undefined;
|
|
239
|
+
message_variant?: string | undefined;
|
|
240
|
+
found_count?: number | undefined;
|
|
241
|
+
product_code?: string | undefined;
|
|
242
|
+
product_name?: string | undefined;
|
|
236
243
|
deal_fields?: Record<string, string | number | boolean | null> | undefined;
|
|
237
244
|
pipeline_id?: number | undefined;
|
|
238
245
|
status_id?: number | undefined;
|
|
239
246
|
group_id?: number | undefined;
|
|
240
247
|
confirm?: boolean | undefined;
|
|
241
248
|
check_messenger_presence?: boolean | undefined;
|
|
249
|
+
dedup_window_days?: number | undefined;
|
|
250
|
+
dedup_scope?: "any" | "same_funnel" | undefined;
|
|
242
251
|
preflight?: {
|
|
243
252
|
enabled?: boolean | undefined;
|
|
244
253
|
product_title?: string | undefined;
|
|
@@ -249,6 +258,26 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
249
258
|
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
250
259
|
job_id: string;
|
|
251
260
|
workspace_id?: string | undefined;
|
|
261
|
+
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
262
|
+
platform_id: string;
|
|
263
|
+
workspace_id?: string | undefined;
|
|
264
|
+
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
265
|
+
platform_id: string;
|
|
266
|
+
template_guid: string;
|
|
267
|
+
contacts: {
|
|
268
|
+
phone: string;
|
|
269
|
+
name?: string | undefined;
|
|
270
|
+
}[];
|
|
271
|
+
workspace_id?: string | undefined;
|
|
272
|
+
template_values?: string[] | undefined;
|
|
273
|
+
funnel?: string | undefined;
|
|
274
|
+
segment?: string | undefined;
|
|
275
|
+
product_code?: string | undefined;
|
|
276
|
+
product_name?: string | undefined;
|
|
277
|
+
cohort_label?: string | undefined;
|
|
278
|
+
confirm?: boolean | undefined;
|
|
279
|
+
explicit_confirmation?: true | undefined;
|
|
280
|
+
confirmation_reason?: string | undefined;
|
|
252
281
|
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
253
282
|
platform_id: string;
|
|
254
283
|
name: string;
|
|
@@ -512,7 +541,8 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
512
541
|
} | undefined;
|
|
513
542
|
privacy?: {
|
|
514
543
|
anonymization_enabled?: boolean | undefined;
|
|
515
|
-
|
|
544
|
+
contact_name_personalization_mode?: "OFF" | "SHADOW" | "ENABLED" | undefined;
|
|
545
|
+
anonymization_disabled_types?: ("PHONE" | "EMAIL" | "INN" | "PASSPORT" | "CARD" | "DATE_OF_BIRTH" | "ACCOUNT" | "SNILS" | "OGRN" | "OGRNIP" | "SOCIAL_ID")[] | undefined;
|
|
516
546
|
} | undefined;
|
|
517
547
|
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
518
548
|
platform_id: string;
|
|
@@ -632,6 +662,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
632
662
|
bot_code?: string | null | undefined;
|
|
633
663
|
bot_name?: string | undefined;
|
|
634
664
|
open_line_id?: string | null | undefined;
|
|
665
|
+
ignore_crm_stage_gate?: boolean | undefined;
|
|
635
666
|
} | undefined;
|
|
636
667
|
getcourse_settings?: {
|
|
637
668
|
account_domain?: string | null | undefined;
|
|
@@ -651,6 +682,10 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
651
682
|
target_department_id?: number | null | undefined;
|
|
652
683
|
delivery_check_enabled?: boolean | undefined;
|
|
653
684
|
delivery_field_map?: Record<"Site" | "Email" | "SMS" | "Telegram" | "Facebook" | "VK" | "Chatium" | "WhatsApp" | "Viber" | "MAX", string> | undefined;
|
|
685
|
+
manual_mute_enabled?: boolean | undefined;
|
|
686
|
+
manual_mute_field_id?: string | null | undefined;
|
|
687
|
+
manual_mute_value?: string | null | undefined;
|
|
688
|
+
manual_mute_active_value?: string | null | undefined;
|
|
654
689
|
} | undefined;
|
|
655
690
|
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
656
691
|
audit_log_id: string;
|
|
@@ -1013,6 +1048,7 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
1013
1048
|
sort?: number | undefined;
|
|
1014
1049
|
color?: string | undefined;
|
|
1015
1050
|
status_types?: string[] | undefined;
|
|
1051
|
+
is_system_managed?: boolean | undefined;
|
|
1016
1052
|
is_editable?: boolean | undefined;
|
|
1017
1053
|
is_bot_active?: boolean | undefined;
|
|
1018
1054
|
is_operator_available?: boolean | undefined;
|
|
@@ -1195,6 +1231,9 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
1195
1231
|
lead_status?: string[] | undefined;
|
|
1196
1232
|
deactivate_reason?: string[] | undefined;
|
|
1197
1233
|
work_log_event?: ("FAILED" | "START" | "IN_PROCESS" | "FINISH_WIN" | "FINISH_LOST" | "OPERATOR_TAKEOVER" | "FINISH_AUTO")[] | undefined;
|
|
1234
|
+
action_type?: string[] | undefined;
|
|
1235
|
+
action_success?: boolean | undefined;
|
|
1236
|
+
action_execution_mode?: "test" | "production" | undefined;
|
|
1198
1237
|
ai_enabled?: boolean | undefined;
|
|
1199
1238
|
followups_enabled?: boolean | undefined;
|
|
1200
1239
|
has_messages?: boolean | undefined;
|
|
@@ -1205,4 +1244,29 @@ export declare const toolDefinitions: (import("./definitions/shared.js").ToolDef
|
|
|
1205
1244
|
workspace_id?: string | undefined;
|
|
1206
1245
|
limit?: number | undefined;
|
|
1207
1246
|
cursor?: string | undefined;
|
|
1247
|
+
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
1248
|
+
view: "cohort" | "period";
|
|
1249
|
+
mode: "all" | "days" | "range";
|
|
1250
|
+
workspace_id?: string | undefined;
|
|
1251
|
+
days?: number | undefined;
|
|
1252
|
+
from?: string | undefined;
|
|
1253
|
+
to?: string | undefined;
|
|
1254
|
+
platform_id?: string | undefined;
|
|
1255
|
+
funnel?: string | undefined;
|
|
1256
|
+
funnel_mode?: "none" | undefined;
|
|
1257
|
+
segment?: string | undefined;
|
|
1258
|
+
product?: string | undefined;
|
|
1259
|
+
product_mode?: "none" | undefined;
|
|
1260
|
+
}> | import("./definitions/shared.js").ToolDefinition<{
|
|
1261
|
+
mode: "all" | "days" | "range";
|
|
1262
|
+
workspace_id?: string | undefined;
|
|
1263
|
+
days?: number | undefined;
|
|
1264
|
+
from?: string | undefined;
|
|
1265
|
+
to?: string | undefined;
|
|
1266
|
+
platform_id?: string | undefined;
|
|
1267
|
+
funnel?: string | undefined;
|
|
1268
|
+
funnel_mode?: "none" | undefined;
|
|
1269
|
+
segment?: string | undefined;
|
|
1270
|
+
product?: string | undefined;
|
|
1271
|
+
product_mode?: "none" | undefined;
|
|
1208
1272
|
}>)[];
|
|
@@ -7,6 +7,7 @@ import { sessionTools } from './definitions/session.js';
|
|
|
7
7
|
import { modelComparisonTools } from './definitions/model-comparison.js';
|
|
8
8
|
import { externalApiChannelTools } from './definitions/external-api-channels.js';
|
|
9
9
|
import { dialogueExportTools } from './definitions/dialogue-export.js';
|
|
10
|
+
import { broadcastAnalyticsTools } from './definitions/broadcast-analytics.js';
|
|
10
11
|
export const toolDefinitions = [
|
|
11
12
|
...agentDesignTools,
|
|
12
13
|
...platformSetupTools,
|
|
@@ -17,5 +18,6 @@ export const toolDefinitions = [
|
|
|
17
18
|
...modelComparisonTools,
|
|
18
19
|
...externalApiChannelTools,
|
|
19
20
|
...dialogueExportTools,
|
|
21
|
+
...broadcastAnalyticsTools,
|
|
20
22
|
];
|
|
21
23
|
//# sourceMappingURL=definitions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAE/E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,gBAAgB;IACnB,GAAG,kBAAkB;IACrB,GAAG,cAAc;IACjB,GAAG,gBAAgB;IACnB,GAAG,eAAe;IAClB,GAAG,YAAY;IACf,GAAG,oBAAoB;IACvB,GAAG,uBAAuB;IAC1B,GAAG,mBAAmB;IACtB,GAAG,uBAAuB;CAC3B,CAAC"}
|
package/docs/host-setup.md
CHANGED
|
@@ -124,8 +124,8 @@ BESALES_API_BASE_URL=http://localhost:3000/api/v2 \
|
|
|
124
124
|
|
|
125
125
|
Expected:
|
|
126
126
|
|
|
127
|
-
-
|
|
128
|
-
-
|
|
127
|
+
- 145 tools are listed.
|
|
128
|
+
- 31 resources are listed.
|
|
129
129
|
- `besales://concepts/external-execution` opens.
|
|
130
130
|
- A direct tool, for example `besales_icp_create`, reaches `ai-aniomaly`.
|
|
131
131
|
- An external pair returns instructions and accepts submit.
|
|
@@ -243,7 +243,7 @@ session may need an app/session restart before new tools appear.
|
|
|
243
243
|
Codex App can defer MCP tool schemas until the model searches for them. This is
|
|
244
244
|
host behavior, not a `besales-mcp` server problem: `codex mcp list/get besales`
|
|
245
245
|
and MCP Inspector `tools/list` are still the source checks for whether the
|
|
246
|
-
server is installed and exposing all
|
|
246
|
+
server is installed and exposing all 145 tools.
|
|
247
247
|
|
|
248
248
|
User-facing prompts must stay natural. Users should ask for the business action,
|
|
249
249
|
for example:
|
|
@@ -264,7 +264,7 @@ Use this matrix for local validation before staging/prod checks.
|
|
|
264
264
|
|
|
265
265
|
| Host | Config check | Protocol check | Direct tool | External pair |
|
|
266
266
|
|---|---|---|---|---|
|
|
267
|
-
| MCP Inspector | command launches |
|
|
267
|
+
| MCP Inspector | command launches | 145 tools / 31 resources | `besales_icp_create` | instructions -> submit |
|
|
268
268
|
| Claude Desktop | config JSON has `besales` | server connected | `besales_icp_create` | instructions -> submit |
|
|
269
269
|
| Claude Code | `claude mcp list` has `besales` | `/mcp` connected | `besales_icp_create` | instructions -> submit |
|
|
270
270
|
| Codex CLI | `codex mcp list` has `besales` | new session sees tools | `besales_icp_create` | instructions -> submit |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@besales/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "Model Context Protocol server for Animaly / Besales",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/be-sales/mcp#readme",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"besales-mcp": "bin/besales-mcp.js"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
|
-
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc && mkdir -p dist/schemas dist/resources/concepts dist/resources/workflows dist/resources/docs && cp src/schemas/mcp-tools.json dist/schemas/mcp-tools.json && cp src/resources/concepts/*.md dist/resources/concepts/ && cp src/resources/workflows/*.md dist/resources/workflows/ && cp src/resources/docs/*.md dist/resources/docs/",
|
|
46
|
+
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc && mkdir -p dist/schemas dist/resources/concepts dist/resources/workflows dist/resources/docs dist/skills/besales-dialogue-audit && cp src/schemas/mcp-tools.json dist/schemas/mcp-tools.json && cp src/resources/concepts/*.md dist/resources/concepts/ && cp src/resources/workflows/*.md dist/resources/workflows/ && cp src/resources/docs/*.md dist/resources/docs/ && cp src/skills/besales-dialogue-audit/SKILL.md dist/skills/besales-dialogue-audit/SKILL.md",
|
|
47
47
|
"start": "node bin/besales-mcp.js",
|
|
48
48
|
"dev:mock": "node scripts/mock-api-server.js",
|
|
49
49
|
"dev:mock:seed": "node scripts/mock-credentials.js seed",
|