mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 05:10:45 +08:00
Host publishes connection phases over Connection RPC; the card polls and badges Connected / Reconnecting / Auth failed so operators need not curl logs. Co-authored-by: Cursor <cursoragent@cursor.com>
2.6 KiB
2.6 KiB
Install Netx Ops on DeepSeek Harness
What dsh plugin add gives you
One install wires all of:
| Piece | How you use it |
|---|---|
| Host tools | Ops-preset-scoped netx__* → netx REST (Bearer token); other presets do not see them |
| Plugins card | Settings → Plugins → Netx Ops (URL / lang / token) |
| Agent preset + skills | Settings → Agent presets → Custom → Netx Ops (copied into ~/.dsh/.agent-presets on first boot) |
You do not run link-preset.ps1 for normal use. That script is only a manual fallback.
Still required outside the npm package
- netx API reachable (default
http://127.0.0.1:8890) — the data plane. - API token with scopes matching the tools you use (
alarms:read,ne:read,ne:exec,sql:query, …).
No local Python / netx_mcp install is required for DSH. (OpenClaw and other MCP hosts can still use python -m netx_mcp separately.)
Install
dsh plugin --profile web add github:hansjone/netxops
# or from DeepSeekHarness source:
# pnpm dsh plugin --profile web add github:hansjone/netxops
dsh web # or: pnpm dsh web
- Settings → Plugins → Netx Ops → API URL (+ token if the field is enabled).
Token fallback:scripts/set-netx-token.ps1/.sh.
Optional: enable 关键告警推送 so this DSH dialsws(s)://<apiUrl>/v1/integrations/dsh-alarm/wsand follows a sticky session when netx matches a key alert. The card header shows live WSS status (Connected/Reconnecting/Auth failed). - Restart or open Settings → Agent presets → Custom → Netx Ops should appear after the host plugin has activated once.
- New session → preset Netx Ops → ask e.g. Critical Top / single-host alarms.
Key-alarm push
- netx (fixed IP) hosts the subscribe hub and fans out matched key alerts.
- netxops (each DSH) reuses the same URL/token, connects outbound, and delivers into a DSH session.
- Live status is exposed on the Plugins card via Connection RPC (
/netxops→alarm-push.status); no curl required for day-to-day checks. - WhatsApp /
dsh-imis not required for this path.
Verify
- Plugins card Netx Ops visible.
- With key-alarm push on: card badge shows Connected (or reconnecting / auth failed with detail).
- Agent presets → Custom → Netx Ops.
- Tools include
netx__queryUmeAlarms.
See TOOL_MAP.md.
Path / local checkout (developers)
dsh plugin --profile web add D:\path\to\netxops
powershell -File .\scripts\link-dsh-peers.ps1 # only for path/link: installs