mirror of
https://github.com/hansjone/netxops.git
synced 2026-10-09 09:13:15 +08:00
Ship the browser half so Settings → Plugins can configure apiUrl/lang/python and NETX_API_TOKEN without OS env vars. Co-authored-by: Cursor <cursoragent@cursor.com>
2.1 KiB
2.1 KiB
Install Netx Ops on DeepSeek Harness
Prerequisites
- DeepSeek Harness (
dsh) installed or a local checkout. - netx API reachable (default
http://127.0.0.1:8890). - Python 3.11+ on the same machine as
dsh, withnetx_mcpimportable:
pip install "git+https://github.com/hansjone/netx.git#subdirectory=packages/netx-mcp"
python -c "import netx_mcp; print('ok')"
You do not need OS environment variables for NETX_API_URL / NETX_API_TOKEN.
1) Install host bridge + Plugins settings card
dsh plugin --profile <name> add github:hansjone/netxops
# or from a checkout:
dsh plugin --profile <name> add /path/to/netxops
This mounts dsh-netxops (host + browser halves):
- Host: settings namespace
netxops, credentialNETX_API_TOKEN, spawnsmcp__netx__* - Browser: Settings → Plugins → Netx Ops card (API URL / lang / python + token)
Fill in the UI (recommended)
- Open
dsh web→ Settings → Plugins → Plugin configuration - Expand Netx Ops
- Paste API token (stored as credential
NETX_API_TOKEN, never in settings JSON) - Set API URL (e.g.
http://127.0.0.1:8890), optional lang / python command - Save — MCP remounts with the new values
Optional CLI for token only
powershell -File .\scripts\set-netx-token.ps1 -Token "nxt_…"
2) Install the agent preset (persona + skills)
git clone https://github.com/hansjone/netxops.git
cd netxops
powershell -File .\scripts\link-preset.ps1
Unix: ./scripts/link-preset.sh
Open dsh web, new session → preset Netx Ops.
Verify
- Settings → Plugins shows Netx Ops card; token badge becomes “Configured” after save.
- Tools include
mcp__netx__queryUmeAlarms(and siblings). - “Critical Top by host” / single
host_namealarm query work.
See TOOL_MAP.md.
Local debug (DeepSeekHarness checkout)
See examples/local-debug/README.md.
Rebuild the Plugins card after editing src/client/:
bun run bundle