@opencxd/ascend-doc-mcp 0.0.1-alpha-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/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@opencxd/ascend-doc-mcp",
3
+ "version": "0.0.1-alpha-1",
4
+ "description": "MCP server for Huawei Ascend community documentation",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "ka-community-mcp": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "presets",
13
+ "configs"
14
+ ],
15
+ "scripts": {
16
+ "build": "vite build",
17
+ "dev": "tsx --watch src/index.ts",
18
+ "dev:http": "tsx --watch src/index.ts --transport=http",
19
+ "start:http": "node dist/index.js --transport=http",
20
+ "test": "vitest run",
21
+ "test:unit": "vitest run --exclude '**/integration/**'",
22
+ "test:ui": "vitest --ui"
23
+ },
24
+ "engines": {
25
+ "node": ">=18"
26
+ },
27
+ "dependencies": {
28
+ "@hono/node-server": "^1.19.14",
29
+ "@modelcontextprotocol/sdk": "^1.29.0",
30
+ "express": "^5.2.1",
31
+ "turndown": "^7.2.4",
32
+ "zod": "^4.4.3"
33
+ },
34
+ "devDependencies": {
35
+ "@types/express": "^5.0.3",
36
+ "@types/node": "^24.13.0",
37
+ "@types/turndown": "^5.0.6",
38
+ "@vitest/coverage-v8": "^4.1.8",
39
+ "@vitest/ui": "^4.1.8",
40
+ "tsx": "^4.22.4",
41
+ "typescript": "^5.9.3",
42
+ "vite": "^8.0.16",
43
+ "vitest": "^4.1.8"
44
+ }
45
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "products": [
3
+ { "id": "CANNCommunityEdition", "name": "CANN社区版", "aliases": ["CANN", "cann-community", "CANN社区", "canncommunityedition", "CANN社区版", "cann社区版", "CANN 社区版"] },
4
+ { "id": "CANNCommercialEdition", "name": "CANN商用版", "aliases": ["CANN商用", "cann-commercial", "CANN商用版", "cann商用版"] },
5
+ { "id": "MindIE", "name": "MindIE", "aliases": ["mindie", "MindIE LLM"] },
6
+ { "id": "MindSpore", "name": "MindSpore", "aliases": ["mindspore", "MindSpore 昇思"] },
7
+ { "id": "AscendExtensionForPyTorch", "name": "Ascend Extension for PyTorch", "aliases": ["pytorch", "PyTorch", "Ascend PyTorch", "torch"], "docpath": "Pytorch" },
8
+ { "id": "AscendExtensionForTensorFlowCommercialEdition", "name": "TensorFlow商用版", "aliases": ["TensorFlow商用", "tensorflow-commercial", "tf商用"], "docpath": "TensorFlowCommercial" },
9
+ { "id": "AscendExtensionForTensorFlowCommunityEdition", "name": "TensorFlow社区版", "aliases": ["TensorFlow社区", "tensorflow-community", "tf社区"], "docpath": "TensorFlowCommunity" },
10
+ { "id": "MindSpeed", "name": "MindSpeed", "aliases": ["mindspeed", "MindSpeed迁移开发"] },
11
+ { "id": "MindEdge", "name": "MindEdge", "aliases": ["mindedge", "MindEdge边缘推理", "边缘推理"] },
12
+ { "id": "MindSDK", "name": "MindSDK", "aliases": ["mindsdk", "MindSDK推理SDK", "mindxsdk", "Vision SDK", "vision sdk", "visionsdk"] },
13
+ { "id": "Atlas200IDKA2DeveloperKit", "name": "Atlas 200I DK A2 开发者套件", "aliases": ["Atlas200IDKA2", "Atlas 200I DK A2", "Atlas DK", "开发者套件"] },
14
+ { "id": "Atlas200IA2AcceleratorModule", "name": "Atlas 200I A2 加速模块", "aliases": ["Atlas200IA2", "Atlas 200I A2", "加速模块"] },
15
+ { "id": "Atlas300IDuo", "name": "Atlas 300I Duo 推理卡", "aliases": ["Atlas300IDuo", "Atlas 300I Duo", "300I Duo", "推理卡"] },
16
+ { "id": "Atlas300IPro", "name": "Atlas 300I Pro 推理卡", "aliases": ["Atlas300IPro", "Atlas 300I Pro", "300I Pro"] },
17
+ { "id": "Atlas300VPro", "name": "Atlas 300V Pro 视频解析卡", "aliases": ["Atlas300VPro", "Atlas 300V Pro", "视频解析卡"] },
18
+ { "id": "Atlas500A2", "name": "Atlas 500 A2 智能小站", "aliases": ["Atlas500A2", "Atlas 500 A2", "智能小站"] },
19
+ { "id": "Atlas800TA2", "name": "Atlas 800T A2 训练服务器", "aliases": ["Atlas800TA2", "Atlas 800T A2", "训练服务器"] },
20
+ { "id": "Atlas800IA2", "name": "Atlas 800I A2 推理服务器", "aliases": ["Atlas800IA2", "Atlas 800I A2", "推理服务器"] }
21
+ ]
22
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "samples": [
3
+ { "name": "CANN 算子开发样例", "product": "CANN", "topic": "算子开发", "link": "https://gitee.com/ascend/samples/tree/master/operator" },
4
+ { "name": "CANN 模型转换样例", "product": "CANN", "topic": "模型转换", "link": "https://gitee.com/ascend/samples/tree/master/convert" },
5
+ { "name": "CANN 推理样例", "product": "CANN", "topic": "推理", "link": "https://gitee.com/ascend/samples/tree/master/inference" },
6
+ { "name": "CANN 训练样例", "product": "CANN", "topic": "训练", "link": "https://gitee.com/ascend/samples/tree/master/train" },
7
+ { "name": "MindIE 推理部署样例", "product": "MindIE", "topic": "推理", "link": "https://gitee.com/ascend/MindIE/tree/master/samples" },
8
+ { "name": "MindSpore 昇思样例", "product": "MindSpore", "topic": "训练", "link": "https://gitee.com/mindspore/mindspore/tree/master/examples" },
9
+ { "name": "Ascend PyTorch 样例", "product": "PyTorch", "topic": "推理", "link": "https://gitee.com/ascend/pytorch/tree/master/samples" },
10
+ { "name": "CANN 应用开发样例", "product": "CANN", "topic": "应用开发", "link": "https://gitee.com/ascend/samples/tree/master/application" },
11
+ { "name": "CANN 图优化样例", "product": "CANN", "topic": "图优化", "link": "https://gitee.com/ascend/samples/tree/master/graph_optimization" },
12
+ { "name": "Ascend Samples 全量仓库", "product": "", "topic": "", "link": "https://gitee.com/ascend/samples" }
13
+ ]
14
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "products": [
3
+ { "id": "kunpengai", "name": "鲲鹏AI", "aliases": ["kunpengai", "鲲鹏AI", "鲲鹏 ai"] },
4
+ { "id": "BoostKit", "name": "BoostKit", "aliases": ["boostkit", "BoostKit加速库", "鲲鹏BoostKit", "鲲鹏加速库"] },
5
+ { "id": "kunpengdevps", "name": "鲲鹏开发套件DevKit", "aliases": ["devkit", "鲲鹏DevKit", "DevKit开发套件", "鲲鹏开发套件", "kunpengdevps", "鲲鹏开发平台", "毕昇编译器", "bisheng", "毕昇JDK", "毕昇", "同辕开发", "一码多芯", "kunpengsameorigin", "原生开发", "nativedevp", "kunpengsamearch"] },
6
+ { "id": "omniruntime", "name": "OmniRuntime", "aliases": ["omniruntime", "OmniRuntime全向运行时", "全向运行时"] },
7
+ { "id": "kunpengdbs", "name": "鲲鹏数据库", "aliases": ["kunpengdbs", "鲲鹏数据库", "鲲鹏DB"] },
8
+ { "id": "flexda", "name": "Data Acceleration Kit FlexDA编程框架", "aliases": ["flexda", "FlexDA", "数据加速", "DPAK", "鲲鹏数据加速"] },
9
+ { "id": "knet", "name": "K-NET网络加速套件", "aliases": ["knet", "K-NET", "鲲鹏网络加速", "网络加速套件"] },
10
+ { "id": "kunpengrag", "name": "鲲鹏RAG一体化解决方案", "aliases": ["kunpengrag", "鲲鹏RAG", "RAG方案"] },
11
+ { "id": "kunpengbds", "name": "鲲鹏大数据", "aliases": ["kunpengbds", "鲲鹏大数据", "鲲鹏BoostKit大数据"] },
12
+ { "id": "kunpengcps", "name": "鲲鹏云手机", "aliases": ["kunpengcps", "鲲鹏云手机", "云手机"] },
13
+ { "id": "kunpengcctrustzone", "name": "鲲鹏机密计算", "aliases": ["kunpengcctrustzone", "鲲鹏机密计算", "机密计算", "TrustZone"] },
14
+ { "id": "kunpenghpcs", "name": "鲲鹏HPC", "aliases": ["kunpenghpcs", "kunpenghpc", "鲲鹏HPC", "鲲鹏高性能计算", "HPC行业应用", "WRF移植"] },
15
+ { "id": "hpcKit", "name": "HPCKit", "aliases": ["hpckit", "HPCKit", "鲲鹏HPCKit", "高性能计算套件", "KML", "鲲鹏数学库"] },
16
+ { "id": "kunpenghcc", "name": "鲲鹏应用迁移", "aliases": ["kunpenghcc", "鲲鹏应用迁移", "应用迁移"] }
17
+ ]
18
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "samples": [
3
+ { "name": "鲲鹏迁移指南样例", "product": "BoostKit", "topic": "迁移", "link": "https://www.hikunpeng.com/developer/migration" },
4
+ { "name": "鲲鹏性能调优样例", "product": "kunpengdevps", "topic": "调优", "link": "https://www.hikunpeng.com/developer/tuning" },
5
+ { "name": "鲲鹏 BoostKit 加速库样例", "product": "BoostKit", "topic": "加速库", "link": "https://www.hikunpeng.com/developer/boostkit" },
6
+ { "name": "鲲鹏 DevKit 开发套件样例", "product": "kunpengdevps", "topic": "开发", "link": "https://www.hikunpeng.com/developer/devkit" }
7
+ ]
8
+ }