@talqing/mcp 0.8.0 → 0.8.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/LICENSE +1 -1
- package/README.md +5 -13
- package/SKILL.md +0 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/tools.json +22 -36
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -33,19 +33,11 @@ ready-to-paste command for each client — the snippets below are what it shows.
|
|
|
33
33
|
The token authenticates as you, acts with your current role, and reaches only
|
|
34
34
|
your workspace.
|
|
35
35
|
|
|
36
|
-
**`TALQING_BASE_URL` names a region** — `https://api.in.talqing.com`,
|
|
37
|
-
`https://api.us.talqing.com` — and everything this server can reach belongs to
|
|
38
|
-
that one: an agent, its calls, its phone numbers and its credit balance are all
|
|
39
|
-
the region's. One token reaches every region — it names your workspace, not a
|
|
40
|
-
place — so working in another region is the same token and a different base URL.
|
|
41
|
-
The dashboard's snippet always carries the region you are currently looking at;
|
|
42
|
-
switch region there and copy it again.
|
|
43
|
-
|
|
44
36
|
**Claude Code**
|
|
45
37
|
|
|
46
38
|
```bash
|
|
47
39
|
claude mcp add talqing \
|
|
48
|
-
-e TALQING_BASE_URL=https://api.
|
|
40
|
+
-e TALQING_BASE_URL=https://api.talqing.com \
|
|
49
41
|
-e TALQING_API_KEY=tq_your_token \
|
|
50
42
|
-- npx -y @talqing/mcp
|
|
51
43
|
```
|
|
@@ -54,7 +46,7 @@ claude mcp add talqing \
|
|
|
54
46
|
|
|
55
47
|
```bash
|
|
56
48
|
codex mcp add talqing \
|
|
57
|
-
--env TALQING_BASE_URL=https://api.
|
|
49
|
+
--env TALQING_BASE_URL=https://api.talqing.com \
|
|
58
50
|
--env TALQING_API_KEY=tq_your_token \
|
|
59
51
|
-- npx -y @talqing/mcp
|
|
60
52
|
```
|
|
@@ -66,7 +58,7 @@ codex mcp add talqing \
|
|
|
66
58
|
[mcp_servers.talqing]
|
|
67
59
|
command = "npx"
|
|
68
60
|
args = ["-y", "@talqing/mcp"]
|
|
69
|
-
env = { TALQING_BASE_URL = "https://api.
|
|
61
|
+
env = { TALQING_BASE_URL = "https://api.talqing.com", TALQING_API_KEY = "tq_your_token" }
|
|
70
62
|
```
|
|
71
63
|
|
|
72
64
|
**Any other MCP client** — a stdio server, configured the usual way:
|
|
@@ -78,7 +70,7 @@ env = { TALQING_BASE_URL = "https://api.in.talqing.com", TALQING_API_KEY = "tq_y
|
|
|
78
70
|
"command": "npx",
|
|
79
71
|
"args": ["-y", "@talqing/mcp"],
|
|
80
72
|
"env": {
|
|
81
|
-
"TALQING_BASE_URL": "https://api.
|
|
73
|
+
"TALQING_BASE_URL": "https://api.talqing.com",
|
|
82
74
|
"TALQING_API_KEY": "tq_your_token"
|
|
83
75
|
}
|
|
84
76
|
}
|
|
@@ -134,7 +126,7 @@ cd mcp && npm install && npm run build
|
|
|
134
126
|
"command": "node",
|
|
135
127
|
"args": ["/absolute/path/to/talqing/mcp/dist/index.js"],
|
|
136
128
|
"env": {
|
|
137
|
-
"TALQING_BASE_URL": "https://api.
|
|
129
|
+
"TALQING_BASE_URL": "https://api.talqing.com",
|
|
138
130
|
"TALQING_API_KEY": "tq_your_token"
|
|
139
131
|
}
|
|
140
132
|
}
|
package/SKILL.md
CHANGED
|
@@ -27,12 +27,6 @@ request body under `body`. Every operation acts as the signed-in user, inside
|
|
|
27
27
|
their workspace only, with their role's permissions. Managing who is in the
|
|
28
28
|
workspace is the one thing that stays in the dashboard.
|
|
29
29
|
|
|
30
|
-
**Everything here belongs to one region.** A workspace exists in every region and
|
|
31
|
-
its resources do not: an agent, its calls, its phone numbers and its credit
|
|
32
|
-
balance all live in the region whose API you are pointed at. One token reaches
|
|
33
|
-
every region — it names the workspace, not a place — so working in another one is
|
|
34
|
-
the same token and a different base URL.
|
|
35
|
-
|
|
36
30
|
## What an agent is
|
|
37
31
|
|
|
38
32
|
An agent is a single object, `config`, plus what you attach to it:
|
package/dist/index.js
CHANGED
|
@@ -28,7 +28,7 @@ function required(name, hint) {
|
|
|
28
28
|
throw new Error(`${name} is not set — ${hint}`);
|
|
29
29
|
return value;
|
|
30
30
|
}
|
|
31
|
-
const BASE_URL = required("TALQING_BASE_URL", "set it to
|
|
31
|
+
const BASE_URL = required("TALQING_BASE_URL", "set it to the Talqing API URL, e.g. https://api.talqing.com").replace(/\/+$/, "");
|
|
32
32
|
const API_KEY = required("TALQING_API_KEY", "create a personal access token in the dashboard under Organization → API Tokens");
|
|
33
33
|
const { tools: functions } = JSON.parse(readPackageFile("tools.json"));
|
|
34
34
|
const byName = new Map(functions.map((fn) => [fn.name, fn]));
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GAGvB,MAAM,oCAAoC,CAAC;AAc5C,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AAEzE,SAAS,eAAe,CAAC,IAAY;IACnC,OAAO,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,kFAAkF;AAClF,SAAS,QAAQ,CAAC,IAAY,EAAE,IAAY;IAC1C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,C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AE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,QAAQ,CAAC,UAAU,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3F,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC,EAAE,CAAC;AAC7D,CAAC;AAED,MAAM,MAAM,GAAG,IAAI,MAAM,CACvB,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,EACrC,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,YAAY,EAAE,YAAY,EAAE,EAAE,CAC9D,CAAC;AAEF,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;IAC5D,KAAK,EAAE,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;CAC/B,CAAC,CAAC,CAAC;AAEJ,MAAM,CAAC,iBAAiB,CAAC,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAChE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,CAA4B,CAAC,CACvF,CAAC;AAEF,MAAM,MAAM,CAAC,OAAO,CAAC,IAAI,oBAAoB,EAAE,CAAC,CAAC"}
|
package/package.json
CHANGED
package/tools.json
CHANGED
|
@@ -1080,6 +1080,20 @@
|
|
|
1080
1080
|
"read_only": false,
|
|
1081
1081
|
"role": "write"
|
|
1082
1082
|
},
|
|
1083
|
+
{
|
|
1084
|
+
"description": "Remove rows that were never dialled. Not reversible; a dialled row is refused in `rejected`.",
|
|
1085
|
+
"method": "POST",
|
|
1086
|
+
"name": "delete_call_batch_recipients",
|
|
1087
|
+
"parameters": {
|
|
1088
|
+
"additionalProperties": true,
|
|
1089
|
+
"description": "Arguments not inlined: call describe_function('delete_call_batch_recipients').",
|
|
1090
|
+
"properties": {},
|
|
1091
|
+
"type": "object"
|
|
1092
|
+
},
|
|
1093
|
+
"path": "/v1/calls/batches/{batch_id}/recipients/delete",
|
|
1094
|
+
"read_only": false,
|
|
1095
|
+
"role": "write"
|
|
1096
|
+
},
|
|
1083
1097
|
{
|
|
1084
1098
|
"description": "Stop placing new calls; calls in progress run to their end.",
|
|
1085
1099
|
"method": "POST",
|
|
@@ -1277,30 +1291,16 @@
|
|
|
1277
1291
|
"role": "write"
|
|
1278
1292
|
},
|
|
1279
1293
|
{
|
|
1280
|
-
"description": "
|
|
1281
|
-
"method": "POST",
|
|
1282
|
-
"name": "skip_email_batch_recipients",
|
|
1283
|
-
"parameters": {
|
|
1284
|
-
"additionalProperties": true,
|
|
1285
|
-
"description": "Arguments not inlined: call describe_function('skip_email_batch_recipients').",
|
|
1286
|
-
"properties": {},
|
|
1287
|
-
"type": "object"
|
|
1288
|
-
},
|
|
1289
|
-
"path": "/v1/email/batches/{batch_id}/skip",
|
|
1290
|
-
"read_only": false,
|
|
1291
|
-
"role": "write"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
"description": "Put skipped rows back. `selection: \"all_eligible\"` means every row a person skipped; an `unfillable` row is restored by filling in its cell instead.",
|
|
1294
|
+
"description": "Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.",
|
|
1295
1295
|
"method": "POST",
|
|
1296
|
-
"name": "
|
|
1296
|
+
"name": "delete_email_batch_recipients",
|
|
1297
1297
|
"parameters": {
|
|
1298
1298
|
"additionalProperties": true,
|
|
1299
|
-
"description": "Arguments not inlined: call describe_function('
|
|
1299
|
+
"description": "Arguments not inlined: call describe_function('delete_email_batch_recipients').",
|
|
1300
1300
|
"properties": {},
|
|
1301
1301
|
"type": "object"
|
|
1302
1302
|
},
|
|
1303
|
-
"path": "/v1/email/batches/{batch_id}/
|
|
1303
|
+
"path": "/v1/email/batches/{batch_id}/recipients/delete",
|
|
1304
1304
|
"read_only": false,
|
|
1305
1305
|
"role": "write"
|
|
1306
1306
|
},
|
|
@@ -1557,30 +1557,16 @@
|
|
|
1557
1557
|
"role": "write"
|
|
1558
1558
|
},
|
|
1559
1559
|
{
|
|
1560
|
-
"description": "
|
|
1561
|
-
"method": "POST",
|
|
1562
|
-
"name": "skip_whatsapp_batch_recipients",
|
|
1563
|
-
"parameters": {
|
|
1564
|
-
"additionalProperties": true,
|
|
1565
|
-
"description": "Arguments not inlined: call describe_function('skip_whatsapp_batch_recipients').",
|
|
1566
|
-
"properties": {},
|
|
1567
|
-
"type": "object"
|
|
1568
|
-
},
|
|
1569
|
-
"path": "/v1/whatsapp/batches/{batch_id}/recipients/skip",
|
|
1570
|
-
"read_only": false,
|
|
1571
|
-
"role": "write"
|
|
1572
|
-
},
|
|
1573
|
-
{
|
|
1574
|
-
"description": "Put rows a person skipped back. A row skipped for its cells returns when they are fixed.",
|
|
1560
|
+
"description": "Remove rows that were never sent. Not reversible; a sent row is refused in `rejected`.",
|
|
1575
1561
|
"method": "POST",
|
|
1576
|
-
"name": "
|
|
1562
|
+
"name": "delete_whatsapp_batch_recipients",
|
|
1577
1563
|
"parameters": {
|
|
1578
1564
|
"additionalProperties": true,
|
|
1579
|
-
"description": "Arguments not inlined: call describe_function('
|
|
1565
|
+
"description": "Arguments not inlined: call describe_function('delete_whatsapp_batch_recipients').",
|
|
1580
1566
|
"properties": {},
|
|
1581
1567
|
"type": "object"
|
|
1582
1568
|
},
|
|
1583
|
-
"path": "/v1/whatsapp/batches/{batch_id}/recipients/
|
|
1569
|
+
"path": "/v1/whatsapp/batches/{batch_id}/recipients/delete",
|
|
1584
1570
|
"read_only": false,
|
|
1585
1571
|
"role": "write"
|
|
1586
1572
|
},
|