dsh-ensp MCP Server
lizi600jin/dsh-ensp
[](https://agentrank-ai.com/tool/lizi600jin--dsh-ensp/?utm_source=badge&utm_medium=readme&utm_campaign=agentrank_badge) Automate Huawei eNSP labs: generate .topo files, start and stop devices, and push configuration one command at a time with per-command error reporting.
claude mcp add agentrank -- npx -y agentrank-mcp-server Overview
lizi600jin/dsh-ensp is a JavaScript tool licensed under GPL-3.0. Automate Huawei eNSP labs: generate .topo files, start and stop devices, and push configuration one command at a time with per-command error reporting. Topics: deepseek-harness, dsh-plugin, ensp, huawei, mcp, network-simulation, vrp.
Ranked #5892 out of 24838 indexed tools.
Ecosystem
Score Breakdown
306 stars → growing community
Last commit 16d ago → recently updated
No issues filed → no history to score
1 contributor → solo project
No dependents → no downstream usage
Weights: Freshness 20% · Issue Health 20% · Dependents 22% · Stars 10% · Contributors 8% · How we score →
How to Improve
Matched Queries
From the README
<p align="center">
</p>
<p align="center">
<strong>中文</strong> | <a href="README.en.md">English</a>
</p>
<p align="center">
<a href="https://www.npmjs.com/package/dsh-ensp"></a>
<a href="https://www.npmjs.com/package/dsh-ensp"></a>
<a href="https://github.com/lizi600jin/dsh-ensp/stargazers"></a>
<a href="LICENSE"></a>
</p>
# dsh-ensp
面向华为 eNSP 的自动化工具。生成拓扑、启动设备、按顺序下发配置,并在每条命令后核对结果。
提供三种调用方式,共用同一套核心:
- CLI:适合脚本化批量操作
- MCP Server:接入 Claude Desktop、Cursor 等客户端
- DeepSeek Harness 插件:以模型工具的形式在会话内使用
## 功能
### 生成拓扑
生成 eNSP 可直接打开并正常显示的 `.topo` 文件。支持内置场景,也可自定义设备与链路。
机型与接口布局定义在 `src/core/models.mjs`,覆盖 16 个机型。解析拓扑时,端口名优先取自设备自身声明的 `<interface>` 块;同一型号在加装扩展卡后端口排布可能不同,声明块是唯一可靠依据。
```js
import { twoPcLab, writeTopology } from 'dsh-ensp'
await writeTopology('lab.topo', twoPcLab({ vlan: 10 }))
```
```js
import { buildTopology, autoLayout } from 'dsh-ensp'
const topo = autoLayout(
buildTopology()
.add('R1', 'AR2220', { x: 180, y: 120 })
.add('R2', 'AR2220', { x: 460, Read full README on GitHub → Get the weekly AgentRank digest
Top movers, new tools, ecosystem insights — straight to your inbox.