tyc-cli 0.2.1 → 0.2.3
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/CHANGELOG.md +1 -1
- package/README.md +4 -4
- package/dist/catalog.json +4 -36
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
## 📖 项目简介
|
|
13
13
|
|
|
14
14
|
`tyc-cli` 是天眼查 MCP Server 的官方命令行客户端。通过 MCP 协议(JSON-RPC 2.0 over
|
|
15
|
-
Streamable HTTP)调用天眼查
|
|
15
|
+
Streamable HTTP)调用天眼查 163 个业务语义聚合工具,覆盖企业工商、知产、司法风险、
|
|
16
16
|
董监高等全维度商业数据。
|
|
17
17
|
|
|
18
18
|
**核心特点**:
|
|
@@ -22,7 +22,7 @@ Streamable HTTP)调用天眼查 164 个业务语义聚合工具,覆盖企业
|
|
|
22
22
|
- 🔌 **即插即用**:默认连接官方 MCP 端点 `https://ai-mcp.tianyancha.com/mcp`;
|
|
23
23
|
支持 `--url` 指向私有部署
|
|
24
24
|
- 🔄 **Session 复用**:`Mcp-Session-Id` 本地缓存 24 小时,后续调用零 initialize 开销
|
|
25
|
-
- 🎯 **6 大业务分类 /
|
|
25
|
+
- 🎯 **6 大业务分类 / 163 个工具**:企业基础信息 · 风险合规 · 知识产权 · 经营与公示 · 历史信息 · 董监高
|
|
26
26
|
- 🤖 **AI Agent 友好**:tyc 英文 key 透传 / 时间戳格式化 / `_summary / _empty / _warnings` 元数据
|
|
27
27
|
|
|
28
28
|
---
|
|
@@ -41,7 +41,7 @@ Streamable HTTP)调用天眼查 164 个业务语义聚合工具,覆盖企业
|
|
|
41
41
|
npm install -g tyc-cli
|
|
42
42
|
|
|
43
43
|
# 或源码安装
|
|
44
|
-
git clone https://github.com/
|
|
44
|
+
git clone https://github.com/tyc-tech/tyc-cli.git
|
|
45
45
|
cd tyc-cli
|
|
46
46
|
npm install && npm run build && npm link
|
|
47
47
|
```
|
|
@@ -298,7 +298,7 @@ tyc-cli/
|
|
|
298
298
|
| 职责 | 命令树 · 参数透传 · 格式化输出 | 多源聚合 · 时间戳格式化 · 元数据注入 · Authorization 透传至 OpenAPI |
|
|
299
299
|
| 运维 | 用户本地安装 | 官方托管 `ai-mcp.tianyancha.com`,或用户自建 |
|
|
300
300
|
|
|
301
|
-
CLI 和 MCP Server 共享同一
|
|
301
|
+
CLI 和 MCP Server 共享同一 163 工具清单;工具元数据从打包内的 `catalog.json`
|
|
302
302
|
读取,保证命令树冷启动零网络开销。
|
|
303
303
|
|
|
304
304
|
---
|
package/dist/catalog.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{
|
|
6
6
|
"group": "company",
|
|
7
7
|
"name_zh": "企业基础信息",
|
|
8
|
-
"tool_count":
|
|
8
|
+
"tool_count": 49
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"group": "risk",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
{
|
|
26
26
|
"group": "history",
|
|
27
27
|
"name_zh": "历史信息",
|
|
28
|
-
"tool_count":
|
|
28
|
+
"tool_count": 17
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"group": "executive",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"layer": "L2",
|
|
47
|
-
"count":
|
|
47
|
+
"count": 57
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"layer": "L3",
|
|
51
|
-
"count":
|
|
51
|
+
"count": 98
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"tools": [
|
|
@@ -741,22 +741,6 @@
|
|
|
741
741
|
}
|
|
742
742
|
]
|
|
743
743
|
},
|
|
744
|
-
{
|
|
745
|
-
"name": "get_tax_invoice_info",
|
|
746
|
-
"group": "company",
|
|
747
|
-
"layer": "L2",
|
|
748
|
-
"cliMethod": "tax-invoice-info",
|
|
749
|
-
"categoryNameZh": "企业基础信息",
|
|
750
|
-
"description": "查询企业税号开票信息,包括纳税人识别号、企业类型、地址、联系电话、开户行、开户行账号,适用于财务开票场景。",
|
|
751
|
-
"params": [
|
|
752
|
-
{
|
|
753
|
-
"name": "searchKey",
|
|
754
|
-
"type": "string",
|
|
755
|
-
"required": true,
|
|
756
|
-
"description": "企业名称 或 统一社会信用代码"
|
|
757
|
-
}
|
|
758
|
-
]
|
|
759
|
-
},
|
|
760
744
|
{
|
|
761
745
|
"name": "search_companies",
|
|
762
746
|
"group": "company",
|
|
@@ -1320,22 +1304,6 @@
|
|
|
1320
1304
|
}
|
|
1321
1305
|
]
|
|
1322
1306
|
},
|
|
1323
|
-
{
|
|
1324
|
-
"name": "get_historical_environmental_penalty",
|
|
1325
|
-
"group": "history",
|
|
1326
|
-
"layer": "L3",
|
|
1327
|
-
"cliMethod": "historical-environmental-penalty",
|
|
1328
|
-
"categoryNameZh": "历史信息",
|
|
1329
|
-
"description": "查询企业历史环保行政处罚记录(从历史行政处罚中按违法类型含环保/环境筛选),包括处罚结果、处罚金额及处罚机关。",
|
|
1330
|
-
"params": [
|
|
1331
|
-
{
|
|
1332
|
-
"name": "searchKey",
|
|
1333
|
-
"type": "string",
|
|
1334
|
-
"required": true,
|
|
1335
|
-
"description": "企业名称 或 统一社会信用代码"
|
|
1336
|
-
}
|
|
1337
|
-
]
|
|
1338
|
-
},
|
|
1339
1307
|
{
|
|
1340
1308
|
"name": "get_historical_equity_freeze",
|
|
1341
1309
|
"group": "history",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tyc-cli",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "天眼查 MCP CLI —
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"description": "天眼查 MCP CLI — 163 个业务语义聚合工具 · 命令行直达企业数据 · 通过 MCP Server 调用",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"tyc": "./dist/index.js"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"author": "tyc-cli contributors",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"type": "module",
|
|
36
|
-
"homepage": "https://github.com/
|
|
36
|
+
"homepage": "https://github.com/tyc-tech/tyc-cli#readme",
|
|
37
37
|
"repository": {
|
|
38
38
|
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/
|
|
39
|
+
"url": "git+https://github.com/tyc-tech/tyc-cli.git"
|
|
40
40
|
},
|
|
41
41
|
"bugs": {
|
|
42
|
-
"url": "https://github.com/
|
|
42
|
+
"url": "https://github.com/tyc-tech/tyc-cli/issues"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist/",
|