From e5797c3da0e6da0c6657d895da92c2a6a41fbd51 Mon Sep 17 00:00:00 2001 From: YueGuobin Date: Mon, 15 Jun 2026 22:57:40 +0800 Subject: [PATCH] Fix: pass template_id to batch mode handler so top-level template_id works as default --- gns3server/api/routes/mcp/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gns3server/api/routes/mcp/__init__.py b/gns3server/api/routes/mcp/__init__.py index f81130611..e5d7f1453 100644 --- a/gns3server/api/routes/mcp/__init__.py +++ b/gns3server/api/routes/mcp/__init__.py @@ -509,6 +509,7 @@ async def node_create( if nodes is not None: return await asyncio.to_thread(_run_handler_sync, create_node_handler, { "project_id": project_id, "nodes": nodes, "fields": fields, + "template_id": template_id, }) return await asyncio.to_thread(_run_handler_sync, create_node_handler, { "project_id": project_id, "template_id": template_id,