Call netx REST from native netx__* tools.

Drop the local python -m netx_mcp / mcp-client path so terminal users only need API URL + token.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-04 23:38:24 +08:00
parent 5179eb74b1
commit ed219842d3
22 changed files with 1431 additions and 179 deletions

View file

@ -1,8 +1,8 @@
# Netx MCP tool map (v1)
# Netx Ops tool map
Tools are registered by `@deepseek-ai/dsh-mcp-client` with `serverName: netx`.
Tools are registered by the host plugin (`dsh-netxops`) via `@deepseek-ai/dsh-tools`.
Model-facing name: `mcp__netx__<tool>`.
Model-facing name: `netx__<tool>`.
| Tool | Role |
|------|------|
@ -21,8 +21,8 @@ Model-facing name: `mcp__netx__<tool>`.
| `execManagedNe` | Read-only CLI (batch-first) |
| `listCliTargets` | CLI target index (managed + ume) |
stdio entry: `python -m netx_mcp` → HTTP `NETX_API_URL`.
Execution: browser/`fetch` from the DSH host → HTTP `apiUrl` + Bearer `NETX_API_TOKEN`.
Upstream package: [netx `packages/netx-mcp`](https://github.com/hansjone/netx/tree/main/packages/netx-mcp).
Handler/paths mirror [netx `packages/netx-mcp`](https://github.com/hansjone/netx/tree/main/packages/netx-mcp) (`http_tools.py` / `http_client.py`).
**Out of v1:** `netx-topology` MCP / topology canvas skills.