@anychat-ai/mcp 0.88.1 → 0.89.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
CHANGED
|
@@ -49,7 +49,7 @@ Flags: `--profile core|full` picks the tool set (default `full`, see [Profiles](
|
|
|
49
49
|
|
|
50
50
|
## Tools
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
232 tools, a 1:1 projection of the [Agent API](https://docs.anychat.ai/reference/agent-api/) grouped as the reference is (orient → Definition → Capabilities → Channels → People → Outreach → Campaigns → Tests → Personas → Emulator → Activity → Org → Docs). `npx -y @anychat-ai/mcp tools` prints the live table.
|
|
53
53
|
|
|
54
54
|
Every tool carries MCP annotations: `read` tools are `readOnlyHint`; `write` tools change configuration; `destructive` tools (deletes, outreach sends to real people, provisioning requests, imports over an existing agent, secret rotation) are `destructiveHint` so your host asks before running them.
|
|
55
55
|
|
|
@@ -57,7 +57,7 @@ Every tool carries MCP annotations: `read` tools are `readOnlyHint`; `write` too
|
|
|
57
57
|
|
|
58
58
|
Every tool definition (name, description, input schema) is sent to the model on every call, so a big table has a real per-turn cost. Two profiles trade breadth for weight:
|
|
59
59
|
|
|
60
|
-
- **`full`** (default) — all
|
|
60
|
+
- **`full`** (default) — all 232 tools.
|
|
61
61
|
- **`core`** — 84 tools, the everyday set: `whoami`; agents (list / get / create / update / export / import, apply template, catalogs); the whole Definition (identity, personality, standing instructions, guardrails, rules, goals, playbooks, message templates, `lint_agent`); the media library (list / add / update / delete); tool bindings (list / upsert); scheduling config; People field definitions; Things (read); Facts (read / replace); business info (read / replace); channels (list / get / request / bind, early access, launch); people (list / get / update, list segments); Outreach (list / get / create / update, preview an opener, send it to one person) and sending settings; personas (list / create / reset, send a sandbox turn); emulator links (list / create); conversations / messages / logs / activity; org; docs. About half the tokens of `full`.
|
|
62
62
|
|
|
63
63
|
Pick one with `--profile core` on the CLI or `createServer({ profile: 'core' })` in code; the `Profile` column below shows which set each tool belongs to, and `npx -y @anychat-ai/mcp tools --profile core` lists just that set. Nothing else changes: `full` stays the default, and the `core` set only ever grows — a tool leaves it only when the route behind it is retired.
|
|
@@ -151,6 +151,21 @@ Pick one with `--profile core` on the CLI or `createServer({ profile: 'core' })`
|
|
|
151
151
|
| `get_fact_usage` | read | `agents:read` | full | Get Fact usage |
|
|
152
152
|
| `get_business_info` | read | `agents:read` | core | Get business info |
|
|
153
153
|
| `replace_business_info` | write | `agents:write` | core | Replace business info |
|
|
154
|
+
| `list_business_profiles` | read | `knowledge:read` | full | List business profiles |
|
|
155
|
+
| `get_business_profile` | read | `knowledge:read` | full | Get business profile |
|
|
156
|
+
| `create_business_profile` | write | `knowledge:write` | full | Create business profile |
|
|
157
|
+
| `update_business_profile` | write | `knowledge:write` | full | Rename business profile |
|
|
158
|
+
| `delete_business_profile` | destructive | `knowledge:write` | full | Delete business profile |
|
|
159
|
+
| `add_business_profile_source` | write | `knowledge:write` | full | Add business profile website |
|
|
160
|
+
| `remove_business_profile_source` | destructive | `knowledge:write` | full | Remove business profile source |
|
|
161
|
+
| `set_business_profile_override` | write | `knowledge:write` | full | Set business profile field |
|
|
162
|
+
| `clear_business_profile_override` | write | `knowledge:write` | full | Clear business profile field |
|
|
163
|
+
| `sync_business_profile` | write | `knowledge:write` | full | Check business profile now |
|
|
164
|
+
| `list_business_profile_runs` | read | `knowledge:read` | full | List business profile checks |
|
|
165
|
+
| `get_business_profile_run` | read | `knowledge:read` | full | Get business profile check |
|
|
166
|
+
| `list_agent_business_profiles` | read | `agents:read` | full | List agent business profiles |
|
|
167
|
+
| `link_agent_business_profile` | write | `agents:write` | full | Link agent to business profile |
|
|
168
|
+
| `unlink_agent_business_profile` | write | `agents:write` | full | Unlink agent from business profile |
|
|
154
169
|
| `list_knowledge_sources` | read | `knowledge:read` | full | List knowledge Sources |
|
|
155
170
|
| `get_knowledge_source` | read | `knowledge:read` | full | Get one knowledge Source |
|
|
156
171
|
| `get_knowledge_source_content` | read | `knowledge:read` | full | Get a knowledge Source content |
|
|
@@ -297,7 +312,7 @@ The tool table is a 1:1 projection of the [Agent API reference](https://docs.any
|
|
|
297
312
|
- **Undocumented** — tool routes the reference doesn't list. Warning only.
|
|
298
313
|
- **Stale allowlist** — entries that no longer match anything. Warning from the script; the test suite fails on them.
|
|
299
314
|
|
|
300
|
-
`--file <path>` checks a local copy of the reference, `--json` prints the report as JSON.
|
|
315
|
+
`--file <path>` checks a local copy of the reference, `--json` prints the report as JSON. A nightly workflow runs it against docs.anychat.ai and opens (or refreshes) an issue titled "Contract drift: documented /v1 routes without MCP tools" when it fails.
|
|
301
316
|
|
|
302
317
|
## Programmatic use
|
|
303
318
|
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Business Profiles — one business location's facts, read from its website and
|
|
3
|
+
* kept apart from any one agent. Owner edits are overrides that survive later
|
|
4
|
+
* checks, and a linked agent's business info follows the profile.
|
|
5
|
+
*/
|
|
6
|
+
export declare const businessProfileTools: import("../tool").AnyTool[];
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.businessProfileTools = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const tool_1 = require("../tool");
|
|
6
|
+
const profilePath = (id = '', sub = '') => `/business-profiles${id ? `/${encodeURIComponent(id)}` : ''}${sub}`;
|
|
7
|
+
const agentProfilesPath = (agentId, id = '') => `/agents/${encodeURIComponent(agentId)}/business-profiles${id ? `/${encodeURIComponent(id)}` : ''}`;
|
|
8
|
+
const profileId = zod_1.z.string().describe('The business profile id');
|
|
9
|
+
const agentId = zod_1.z.string().describe('The agent id');
|
|
10
|
+
/**
|
|
11
|
+
* Business Profiles — one business location's facts, read from its website and
|
|
12
|
+
* kept apart from any one agent. Owner edits are overrides that survive later
|
|
13
|
+
* checks, and a linked agent's business info follows the profile.
|
|
14
|
+
*/
|
|
15
|
+
exports.businessProfileTools = [
|
|
16
|
+
(0, tool_1.defineTool)({
|
|
17
|
+
name: 'list_business_profiles',
|
|
18
|
+
title: 'List business profiles',
|
|
19
|
+
description: "List the org's business profiles, most recently updated first. Filter with health ('healthy' | 'attention' | 'failing') and updatedSince to monitor a fleet: each profile carries health.attention[] and completeness. Maps to GET /v1/orgs/{org}/business-profiles.",
|
|
20
|
+
kind: 'read',
|
|
21
|
+
scope: 'knowledge:read',
|
|
22
|
+
roleFloor: 'viewer',
|
|
23
|
+
input: {
|
|
24
|
+
health: zod_1.z.enum(['healthy', 'attention', 'failing']).optional(),
|
|
25
|
+
updatedSince: zod_1.z.string().optional().describe('ISO-8601'),
|
|
26
|
+
limit: zod_1.z.number().int().min(1).max(500).optional(),
|
|
27
|
+
},
|
|
28
|
+
run: async ({ client }, query) => client.get(await client.orgPath(profilePath()), query),
|
|
29
|
+
}),
|
|
30
|
+
(0, tool_1.defineTool)({
|
|
31
|
+
name: 'get_business_profile',
|
|
32
|
+
title: 'Get business profile',
|
|
33
|
+
description: "Read one profile: the facts in use (document), each field's origin ('operator' | 'jsonld' | 'inferred'), when a source last confirmed it, any conflicts, what's missing, and its health. Have an owner review 'inferred' values. Maps to GET /v1/orgs/{org}/business-profiles/{id}.",
|
|
34
|
+
kind: 'read',
|
|
35
|
+
scope: 'knowledge:read',
|
|
36
|
+
roleFloor: 'viewer',
|
|
37
|
+
input: { profileId },
|
|
38
|
+
run: async ({ client }, { profileId }) => client.get(await client.orgPath(profilePath(profileId))),
|
|
39
|
+
}),
|
|
40
|
+
(0, tool_1.defineTool)({
|
|
41
|
+
name: 'create_business_profile',
|
|
42
|
+
title: 'Create business profile',
|
|
43
|
+
description: 'Create a profile for one business location. With a website, this starts a first check that begins within about a minute: follow it with get_business_profile_run. Returns { profile, run }. Maps to POST /v1/orgs/{org}/business-profiles.',
|
|
44
|
+
kind: 'write',
|
|
45
|
+
scope: 'knowledge:write',
|
|
46
|
+
roleFloor: 'editor',
|
|
47
|
+
input: {
|
|
48
|
+
label: zod_1.z
|
|
49
|
+
.string()
|
|
50
|
+
.describe('A name for this location, e.g. "Dana\'s Salon, Westdale"'),
|
|
51
|
+
websiteUrl: zod_1.z.string().url().optional().describe('The business website to read'),
|
|
52
|
+
},
|
|
53
|
+
run: async ({ client }, { label, websiteUrl }) => client.post(await client.orgPath(profilePath()), {
|
|
54
|
+
label,
|
|
55
|
+
...(websiteUrl ? { sources: [{ kind: 'website', url: websiteUrl }] } : {}),
|
|
56
|
+
}),
|
|
57
|
+
}),
|
|
58
|
+
(0, tool_1.defineTool)({
|
|
59
|
+
name: 'update_business_profile',
|
|
60
|
+
title: 'Rename business profile',
|
|
61
|
+
description: "Change a profile's label. Maps to PATCH /v1/orgs/{org}/business-profiles/{id}.",
|
|
62
|
+
kind: 'write',
|
|
63
|
+
scope: 'knowledge:write',
|
|
64
|
+
roleFloor: 'editor',
|
|
65
|
+
input: { profileId, label: zod_1.z.string() },
|
|
66
|
+
run: async ({ client }, { profileId, label }) => client.patch(await client.orgPath(profilePath(profileId)), { label }),
|
|
67
|
+
}),
|
|
68
|
+
(0, tool_1.defineTool)({
|
|
69
|
+
name: 'delete_business_profile',
|
|
70
|
+
title: 'Delete business profile',
|
|
71
|
+
description: 'Delete a profile and its run history. Linked agents keep their current business info and become unlinked. Maps to DELETE /v1/orgs/{org}/business-profiles/{id}.',
|
|
72
|
+
kind: 'destructive',
|
|
73
|
+
scope: 'knowledge:write',
|
|
74
|
+
roleFloor: 'editor',
|
|
75
|
+
input: { profileId },
|
|
76
|
+
run: async ({ client }, { profileId }) => client.delete(await client.orgPath(profilePath(profileId))),
|
|
77
|
+
}),
|
|
78
|
+
(0, tool_1.defineTool)({
|
|
79
|
+
name: 'add_business_profile_source',
|
|
80
|
+
title: 'Add business profile website',
|
|
81
|
+
description: 'Add a website to a profile that has none, and start a check. A profile has one source for now. Maps to POST /v1/orgs/{org}/business-profiles/{id}/sources.',
|
|
82
|
+
kind: 'write',
|
|
83
|
+
scope: 'knowledge:write',
|
|
84
|
+
roleFloor: 'editor',
|
|
85
|
+
input: { profileId, url: zod_1.z.string().url() },
|
|
86
|
+
run: async ({ client }, { profileId, url }) => client.post(await client.orgPath(profilePath(profileId, '/sources')), {
|
|
87
|
+
kind: 'website',
|
|
88
|
+
url,
|
|
89
|
+
}),
|
|
90
|
+
}),
|
|
91
|
+
(0, tool_1.defineTool)({
|
|
92
|
+
name: 'remove_business_profile_source',
|
|
93
|
+
title: 'Remove business profile source',
|
|
94
|
+
description: 'Remove a source and what it stated. Owner overrides stay. Maps to DELETE /v1/orgs/{org}/business-profiles/{id}/sources/{sourceId}.',
|
|
95
|
+
kind: 'destructive',
|
|
96
|
+
scope: 'knowledge:write',
|
|
97
|
+
roleFloor: 'editor',
|
|
98
|
+
input: { profileId, sourceId: zod_1.z.string() },
|
|
99
|
+
run: async ({ client }, { profileId, sourceId }) => client.delete(await client.orgPath(profilePath(profileId, `/sources/${encodeURIComponent(sourceId)}`))),
|
|
100
|
+
}),
|
|
101
|
+
(0, tool_1.defineTool)({
|
|
102
|
+
name: 'set_business_profile_override',
|
|
103
|
+
title: 'Set business profile field',
|
|
104
|
+
description: "Set an owner's value for one field (name, businessType, description, url, telephone, email, address, timezone, hours, specialHours, amenities, priceRange, cuisine, menuUrl, sameAs), in the shape get_business_info uses. It survives every later check; a source that disagrees shows as a conflict. Maps to PUT /v1/orgs/{org}/business-profiles/{id}/overrides/{field}.",
|
|
105
|
+
kind: 'write',
|
|
106
|
+
scope: 'knowledge:write',
|
|
107
|
+
roleFloor: 'editor',
|
|
108
|
+
input: { profileId, field: zod_1.z.string(), value: zod_1.z.unknown() },
|
|
109
|
+
run: async ({ client }, { profileId, field, value }) => client.put(await client.orgPath(profilePath(profileId, `/overrides/${encodeURIComponent(field)}`)), { value }),
|
|
110
|
+
}),
|
|
111
|
+
(0, tool_1.defineTool)({
|
|
112
|
+
name: 'clear_business_profile_override',
|
|
113
|
+
title: 'Clear business profile field',
|
|
114
|
+
description: "Remove an owner's value, so the field returns to what its source states. Maps to DELETE /v1/orgs/{org}/business-profiles/{id}/overrides/{field}.",
|
|
115
|
+
kind: 'write',
|
|
116
|
+
scope: 'knowledge:write',
|
|
117
|
+
roleFloor: 'editor',
|
|
118
|
+
input: { profileId, field: zod_1.z.string() },
|
|
119
|
+
run: async ({ client }, { profileId, field }) => client.delete(await client.orgPath(profilePath(profileId, `/overrides/${encodeURIComponent(field)}`))),
|
|
120
|
+
}),
|
|
121
|
+
(0, tool_1.defineTool)({
|
|
122
|
+
name: 'sync_business_profile',
|
|
123
|
+
title: 'Check business profile now',
|
|
124
|
+
description: 'Start a check of the website. It begins within about a minute; follow it with get_business_profile_run. Limited to one every five minutes per profile. Maps to POST /v1/orgs/{org}/business-profiles/{id}/_sync.',
|
|
125
|
+
kind: 'write',
|
|
126
|
+
scope: 'knowledge:write',
|
|
127
|
+
roleFloor: 'editor',
|
|
128
|
+
input: { profileId },
|
|
129
|
+
run: async ({ client }, { profileId }) => client.post(await client.orgPath(profilePath(profileId, '/_sync')), {}),
|
|
130
|
+
}),
|
|
131
|
+
(0, tool_1.defineTool)({
|
|
132
|
+
name: 'list_business_profile_runs',
|
|
133
|
+
title: 'List business profile checks',
|
|
134
|
+
description: 'The most recent checks of a profile, newest first. Maps to GET /v1/orgs/{org}/business-profiles/{id}/runs.',
|
|
135
|
+
kind: 'read',
|
|
136
|
+
scope: 'knowledge:read',
|
|
137
|
+
roleFloor: 'viewer',
|
|
138
|
+
input: { profileId },
|
|
139
|
+
run: async ({ client }, { profileId }) => client.get(await client.orgPath(profilePath(profileId, '/runs'))),
|
|
140
|
+
}),
|
|
141
|
+
(0, tool_1.defineTool)({
|
|
142
|
+
name: 'get_business_profile_run',
|
|
143
|
+
title: 'Get business profile check',
|
|
144
|
+
description: "One check: state, outcome ('complete' | 'partial' | 'empty' | 'blocked' | 'unreachable' | 'failed'), a plain-language reason, progress, and a report of what was found, missing and skipped. Maps to GET /v1/orgs/{org}/business-profiles/{id}/runs/{runId}.",
|
|
145
|
+
kind: 'read',
|
|
146
|
+
scope: 'knowledge:read',
|
|
147
|
+
roleFloor: 'viewer',
|
|
148
|
+
input: { profileId, runId: zod_1.z.string() },
|
|
149
|
+
run: async ({ client }, { profileId, runId }) => client.get(await client.orgPath(profilePath(profileId, `/runs/${encodeURIComponent(runId)}`))),
|
|
150
|
+
}),
|
|
151
|
+
(0, tool_1.defineTool)({
|
|
152
|
+
name: 'list_agent_business_profiles',
|
|
153
|
+
title: 'List agent business profiles',
|
|
154
|
+
description: 'The profile an agent is linked to, if any. Maps to GET /v1/orgs/{org}/agents/{agent}/business-profiles.',
|
|
155
|
+
kind: 'read',
|
|
156
|
+
scope: 'agents:read',
|
|
157
|
+
roleFloor: 'viewer',
|
|
158
|
+
input: { agentId },
|
|
159
|
+
run: async ({ client }, { agentId }) => client.get(await client.orgPath(agentProfilesPath(agentId))),
|
|
160
|
+
}),
|
|
161
|
+
(0, tool_1.defineTool)({
|
|
162
|
+
name: 'link_agent_business_profile',
|
|
163
|
+
title: 'Link agent to business profile',
|
|
164
|
+
description: "Make the agent's business info follow a profile. For a profile's first agent, what it already held becomes overrides (listed in `adopted`), so nothing it tells customers changes. Unless bootstrap is false, its empty identity, Things and FAQs fill from the crawl and its knowledge is seeded. Maps to POST /v1/orgs/{org}/agents/{agent}/business-profiles.",
|
|
165
|
+
kind: 'write',
|
|
166
|
+
scope: 'agents:write',
|
|
167
|
+
roleFloor: 'editor',
|
|
168
|
+
input: { agentId, profileId, bootstrap: zod_1.z.boolean().optional() },
|
|
169
|
+
run: async ({ client }, { agentId, profileId, bootstrap }) => client.post(await client.orgPath(agentProfilesPath(agentId)), {
|
|
170
|
+
id: profileId,
|
|
171
|
+
...(bootstrap === undefined ? {} : { bootstrap }),
|
|
172
|
+
}),
|
|
173
|
+
}),
|
|
174
|
+
(0, tool_1.defineTool)({
|
|
175
|
+
name: 'unlink_agent_business_profile',
|
|
176
|
+
title: 'Unlink agent from business profile',
|
|
177
|
+
description: 'Stop the agent following a profile. It keeps its current business info. Maps to DELETE /v1/orgs/{org}/agents/{agent}/business-profiles/{id}.',
|
|
178
|
+
kind: 'write',
|
|
179
|
+
scope: 'agents:write',
|
|
180
|
+
roleFloor: 'editor',
|
|
181
|
+
input: { agentId, profileId },
|
|
182
|
+
run: async ({ client }, { agentId, profileId }) => client.delete(await client.orgPath(agentProfilesPath(agentId, profileId))),
|
|
183
|
+
}),
|
|
184
|
+
];
|
|
185
|
+
//# sourceMappingURL=businessProfiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"businessProfiles.js","sourceRoot":"","sources":["../../src/tools/businessProfiles.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,kCAAqC;AAErC,MAAM,WAAW,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE,EAAU,EAAE,CAChD,qBAAqB,EAAE,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC;AACtE,MAAM,iBAAiB,GAAG,CAAC,OAAe,EAAE,EAAE,GAAG,EAAE,EAAU,EAAE,CAC7D,WAAW,kBAAkB,CAAC,OAAO,CAAC,qBACpC,EAAE,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,CAAC;AAEL,MAAM,SAAS,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,OAAO,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;AAEpD;;;;GAIG;AACU,QAAA,oBAAoB,GAAG;IAClC,IAAA,iBAAU,EAAC;QACT,IAAI,EAAE,wBAAwB;QAC9B,KAAK,EAAE,wBAAwB;QAC/B,WAAW,EACT,sQAAsQ;QACxQ,IAAI,EAAE,MAAM;QACZ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B,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAC7B,GAAG,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAChD,MAAM,CAAC,MAAM,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;KAC7E,CAAC;CACH,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.toolsForProfile = toolsForProfile;
|
|
|
5
5
|
const activity_1 = require("./activity");
|
|
6
6
|
const ajo_1 = require("./ajo");
|
|
7
7
|
const agents_1 = require("./agents");
|
|
8
|
+
const businessProfiles_1 = require("./businessProfiles");
|
|
8
9
|
const campaigns_1 = require("./campaigns");
|
|
9
10
|
const capabilities_1 = require("./capabilities");
|
|
10
11
|
const channels_1 = require("./channels");
|
|
@@ -31,6 +32,7 @@ exports.allTools = [
|
|
|
31
32
|
...goals_1.goalTools,
|
|
32
33
|
...media_1.mediaTools,
|
|
33
34
|
...capabilities_1.capabilityTools,
|
|
35
|
+
...businessProfiles_1.businessProfileTools,
|
|
34
36
|
...channels_1.channelTools,
|
|
35
37
|
...people_1.peopleTools,
|
|
36
38
|
...outreach_1.outreachTools,
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":";;;AAsDA,0CAKC;AA1DD,yCAA2C;AAC3C,+BAAiC;AACjC,qCAAsC;AACtC,yDAA0D;AAC1D,2CAA4C;AAC5C,iDAAiD;AACjD,yCAA0C;AAC1C,6CAA+C;AAC/C,iCAAmC;AACnC,yCAA2C;AAC3C,mCAAoC;AACpC,yCAA0C;AAC1C,mCAAoC;AACpC,mCAAqC;AACrC,6BAA+B;AAC/B,+BAAiC;AACjC,yCAA2C;AAC3C,qCAAuC;AAEvC;;;;GAIG;AACU,QAAA,QAAQ,GAAc;IACjC,GAAG,YAAO;IACV,GAAG,mBAAU;IACb,GAAG,4BAAe;IAClB,GAAG,iBAAS;IACZ,GAAG,kBAAU;IACb,GAAG,8BAAe;IAClB,GAAG,uCAAoB;IACvB,GAAG,uBAAY;IACf,GAAG,oBAAW;IACd,GAAG,wBAAa;IAChB,GAAG,cAAQ;IACX,GAAG,yBAAa;IAChB,GAAG,iBAAS;IACZ,GAAG,uBAAY;IACf,GAAG,wBAAa;IAChB,GAAG,wBAAa;IAChB,GAAG,cAAQ;IACX,GAAG,gBAAS;CACb,CAAC;AAEW,QAAA,WAAW,GAAiC,IAAI,GAAG,CAC9D,gBAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,CAC/B,CAAC;AAEF;;;GAGG;AACH,SAAgB,eAAe,CAC7B,OAAoB,EACpB,QAA4B,gBAAQ;IAEpC,OAAO,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC;AACnF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anychat-ai/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.89.0",
|
|
4
4
|
"description": "Anychat MCP server — drive your Anychat workspace (agents, playbooks, channels, people, outreach) from Claude Code, Claude Desktop, Cursor, or any MCP host.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anychat",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"build": "rm -rf dist && tsc -p tsconfig.json",
|
|
43
|
-
"prepublishOnly": "npm run
|
|
43
|
+
"prepublishOnly": "npm run check",
|
|
44
44
|
"start": "node dist/bin.js",
|
|
45
45
|
"dev": "ts-node src/bin.ts",
|
|
46
46
|
"lint": "eslint . --ext .ts",
|
|
@@ -59,22 +59,25 @@
|
|
|
59
59
|
"zod": "^4.4.3"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@eslint/eslintrc": "^3.3.
|
|
63
|
-
"@eslint/js": "^9.
|
|
62
|
+
"@eslint/eslintrc": "^3.3.7",
|
|
63
|
+
"@eslint/js": "^9.39.5",
|
|
64
64
|
"@types/chai": "^4.3.20",
|
|
65
65
|
"@types/mocha": "^10.0.10",
|
|
66
|
-
"@types/node": "^
|
|
67
|
-
"@
|
|
68
|
-
"@typescript-eslint/
|
|
69
|
-
"@typescript-eslint/parser": "^8.26.0",
|
|
66
|
+
"@types/node": "^24.19.2",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.72.1",
|
|
68
|
+
"@typescript-eslint/parser": "^8.72.1",
|
|
70
69
|
"chai": "^4.5.0",
|
|
71
|
-
"eslint": "^9.
|
|
72
|
-
"eslint-config-prettier": "^
|
|
73
|
-
"globals": "^
|
|
74
|
-
"mocha": "^11.
|
|
75
|
-
"prettier": "^3.
|
|
76
|
-
"sinon": "^19.0.2",
|
|
70
|
+
"eslint": "^9.39.5",
|
|
71
|
+
"eslint-config-prettier": "^10.1.1",
|
|
72
|
+
"globals": "^17.13.0",
|
|
73
|
+
"mocha": "^11.8.0",
|
|
74
|
+
"prettier": "^3.9.10",
|
|
77
75
|
"ts-node": "^10.9.2",
|
|
78
|
-
"typescript": "^5.
|
|
76
|
+
"typescript": "^5.9.3"
|
|
77
|
+
},
|
|
78
|
+
"anychat": {
|
|
79
|
+
"affectedBy": [
|
|
80
|
+
"apps/docs"
|
|
81
|
+
]
|
|
79
82
|
}
|
|
80
83
|
}
|