From 30619caf0f993c35f9cdbb51f78f32fa13e83345 Mon Sep 17 00:00:00 2001 From: Nicola Bottini <94865430+nicolabottini@users.noreply.github.com> Date: Thu, 9 Jul 2026 18:51:48 -0400 Subject: [PATCH] feat(mcp): add design_id to approve_device tool The backend approve endpoint already accepts design_id via NodeCreate, but the MCP schema didn't expose the field so callers couldn't target a specific canvas when approving a discovered device. Add _DESIGN_ID_FIELD to approve_device so AI clients (and the MCP bridge) can pass it through. --- mcp/app/tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mcp/app/tools.py b/mcp/app/tools.py index 6ff29b4..502d2d3 100644 --- a/mcp/app/tools.py +++ b/mcp/app/tools.py @@ -115,6 +115,7 @@ def _build_tools() -> list[Tool]: "id": {"type": "string"}, "type": {"type": "string", "enum": NODE_TYPES, "default": "generic"}, "label": {"type": "string"}, + **_DESIGN_ID_FIELD, }, }), Tool(name="hide_device", description="Hide a pending discovered device", inputSchema={