mirror of
https://github.com/hansjone/netx.git
synced 2026-10-18 23:23:21 +08:00
feat(mcp): publish ops skills via /mcp resources, prompts and getNetxSkill
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
42d5f9c5a7
commit
166d2289c3
11 changed files with 1057 additions and 25 deletions
|
|
@ -515,7 +515,7 @@ def test_neighborhood_returns_links_not_ports() -> None:
|
|||
|
||||
def test_topology_group_lists_sixteen_tools() -> None:
|
||||
tools = tools_for_request(None, frozenset({"topology"}))
|
||||
assert len(tools) == 16
|
||||
assert len(tools) == 17 # 16 topology + getNetxSkill
|
||||
names = {t["name"] for t in tools}
|
||||
assert "suggestSinkHubs" in names
|
||||
assert "classifyTopologyFabricNodes" in names
|
||||
|
|
@ -527,9 +527,11 @@ def test_topology_group_lists_sixteen_tools() -> None:
|
|||
assert "layoutTopologyView" in names
|
||||
assert "sinkTopologyDualUnits" in names
|
||||
assert "copyTopologyViewNodes" in names
|
||||
assert "getNetxSkill" in names
|
||||
read_only = tools_for_request(frozenset({"ne:read"}), frozenset({"topology"}))
|
||||
read_names = {t["name"] for t in read_only}
|
||||
assert "getTopologyView" in read_names
|
||||
assert "getNetxSkill" in read_names
|
||||
assert "layoutTopologyView" not in read_names
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue