From f2f42c4817e80d972e2580d16f2db70408f7a4a3 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Tue, 3 Nov 2026 23:19:00 +0800 Subject: [PATCH] docs(mcp): document show_filters_icon on link tools The server link schema has show_filters_icon (default true) and the PUT passes it through, but the MCP tool docs did not mention it. The old copilot packet filter tool always set it to false to hide the filter icon during fault injection; after the move to link_update the icon stayed visible because the model had no way to know the field exists. - link_update: add show_filters_icon to the supported kwargs - link_list: add show_filters_icon to the available response fields --- gns3server/agent/mcp/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gns3server/agent/mcp/__init__.py b/gns3server/agent/mcp/__init__.py index bafd66071..d6e4af6c6 100644 --- a/gns3server/agent/mcp/__init__.py +++ b/gns3server/agent/mcp/__init__.py @@ -855,7 +855,7 @@ async def link_list( fields: Annotated[ list[str] | None, Field( - description='Optional: return only these fields. e.g. ["link_id","nodes"]. Available: link_id, project_id, link_type, kernel_datapath, nodes, suspend, filters, capturing, capture_file_name, link_style' + description='Optional: return only these fields. e.g. ["link_id","nodes"]. Available: link_id, project_id, link_type, kernel_datapath, nodes, suspend, filters, show_filters_icon, capturing, capture_file_name, link_style' ), ] = None, ) -> list[dict[str, Any]]: @@ -945,6 +945,9 @@ async def link_update( Supported kwargs: - suspend: boolean - Suspend or resume the link + - show_filters_icon: boolean - Show the filter icon in the Web UI (server + default true). Set false to keep the canvas clean when injecting + practice faults - filters: dict - Packet filters (values MUST be positional arrays). Types marked (K) run on kernel-datapath links only (both endpoints on one compute with an anchor of their own) and are rejected with 409 on relay