MCP: add bizMonitor server, align ops/topology tools, harden CLI exec

- New packages/netx-bizmonitor-mcp: 8 read-only cutover/biz-state tools
  mirroring the netxops bizMonitor group.
- Align netx-mcp (15) and netx-topology-mcp (16) with backend HTTP
  contracts; surface partial batch failures as tool errors.
- CLI hard gate: single-line show/display only; exec job IDs, path
  containment, owner and ne:exec checks.
- Cisco IOSv collection: stable prompt/echo handling over CR.
- Remove legacy netx_api/mcp and mcp_server.py; add mcp.all.json;
  sync skills and docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
oliver 2026-10-16 18:52:05 +08:00
parent d8da7acb7d
commit 9085cac742
63 changed files with 3251 additions and 1092 deletions

View file

@ -73,6 +73,7 @@ class NeExecJobTests(unittest.TestCase):
ack = start_ne_exec_job(
kind="exec",
arguments={"ne_id": "abc", "commands": ["show version"]},
owner_user_id="test-owner",
runner=lambda: {"ok": True, "output": "hi"},
)
self.assertTrue(ack.get("ok"))
@ -80,7 +81,7 @@ class NeExecJobTests(unittest.TestCase):
self.assertTrue(jid)
done = None
for _ in range(50):
polled = get_ne_exec_job(jid)
polled = get_ne_exec_job(jid, user_id="test-owner")
if polled.get("terminal"):
done = polled
break