
NetsCLI
io.github.fstubnerv0.3.4更新於 Oct 4, 2026
Network scanner for AI agents: discover hosts, scan TCP and UDP ports, query DNS and mDNS.
概覽
讓助理在本機探索主機、掃描 TCP/UDP 連接埠、查詢 DNS 與 mDNS,並檢視網路裝置。
- 功能
- NetsCLI 以 MCP 工具的形式提供網路掃描能力給代理程式。預設有九個工具:discover、scan、ping、DNS、ARP、inspect、sweep、interfaces 與 mDNS;封包擷取版本會再多四個。它可以找出本機子網中的主機、檢查特定連接埠是否開啟、解析 DNS 記錄,並查詢附帶廠商資訊的 ARP 項目。同一套核心也以命令列、終端機介面與桌面應用程式形式發布。
- 適用情境
- 適合讓助理回答本機網路相關問題,例如剛加入的是哪一台裝置、某主機的連接埠是否開啟,而不必呼叫外部指令再解析給人看的輸出。適用於桌上型電腦上的家庭實驗室與區域網路排查。
- 執行需求
- 以 npm 套件 netscli 透過 stdio 在本機執行,使用 serve 參數啟動;安裝可用 Rust 工具鏈或平台套件管理員(Homebrew、winget、cargo)。僅支援桌面端,無法在網頁中執行。未宣告帳號或 API 金鑰。環境變數 NETSCLI_MCP_ALLOW_PUBLIC_TARGETS 控制是否允許掃描自身網路以外的目標。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 NetsCLI,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
A network scanner written in Rust. CLI, terminal UI, desktop app, and MCP server. One library behind all four.
Why this exists
The terminal UI came first. I wanted to understand how the newer TUIs work, the ones coding agents like Claude Code have put real effort into. Autocomplete, command history, in-place progress, and a UI that does not take over the terminal, so scrollback and copying text keep working. Building one seemed like the way to learn it, and a network scanner gave it something to do.
The MCP server came next. I thought it would be interesting to let an agent work with a network that way. Ask which device just joined, or whether port 22 is open on some host, instead of shelling out to another tool and parsing output that was written for a person to read.
Then the CLI, for programmatic use. A script or a cron job wants one command and JSON back, not an interactive session.
The desktop app came last. Some people would rather have a GUI than a terminal, and honestly I sometimes prefer it myself over running the commands locally.
Three of them are the same binary. netscli <command> is the CLI, netscli
on its own opens the terminal UI, and netscli serve starts the MCP server.
The desktop app is a separate download over the same core.
Screenshots
Install
Desktop installers for Windows, macOS and Linux are attached to every release.
Scoop, the AUR, the one-line install scripts, packet-capture builds and signature verification are all covered in the install guide.
Usage
Every non-interactive command takes --json or --yaml, so results pipe
straight into jq, and the ones that return a list also take --csv and
--md.
Run netscli with no arguments for the terminal UI: slash commands with
autocomplete, command history, scrollback and /export.
Full command reference: CLI · TUI · desktop app
MCP server
Nine tools by default: discover, scan, ping, DNS, ARP, inspect, sweep, interfaces and mDNS. Packet-capture builds add four more. Details and the full schemas are in the MCP guide.
Documentation
Contributing
Issues and pull requests are welcome. Building from source, the desktop app dev loop, packet-capture builds and the repository layout are all in CONTRIBUTING.md.
License
MIT
來源:README.md,提交 7a84ca7
工具
0版本歷史
1- v0.3.4最新Oct 4, 2026


