netxops/examples/local-debug/README.md
oliver fd1a86ec2f Add Netx Ops Plugins settings card for URL and token.
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>
2026-09-04 22:16:14 +08:00

1.1 KiB

Local debug against DeepSeekHarness

cd D:\project\chatgpt\netxops
powershell -File .\scripts\link-preset.ps1
powershell -File .\scripts\set-netx-token.ps1 -Token (Get-Content D:\project\chatgpt\netx\data\auth\mcp_token -Raw).Trim()

From DeepSeekHarness (source):

cd D:\project\DeepSeekHarness
pnpm dsh plugin --profile web add D:\project\chatgpt\netxops
# or one-shot overlay:
pnpm dsh web --patch D:\project\chatgpt\netxops\examples\local-debug\patch.cordis.yml

B. What the debug patch does

patch.cordis.yml:

  1. Ensures agent-presets can see D:/project/chatgpt/netxops/presets
  2. Inserts host plugin dsh-netxops via absolute path to src/index.ts (no npm link required)

Adjust paths if your checkout differs.

C. Verify

  1. Settings → Plugins → Netx Ops card shows URL / token fields (after bun run bundle if you edited src/client/)
  2. New session → preset Netx Ops
  3. Tools include mcp__netx__aggregateUmeAlarms
  4. Ask Critical Top / single host alarms