fixed interface parameter name projectName

This commit is contained in:
fariouche
2025-12-02 21:25:45 +01:00
parent 8bc73ed408
commit c91cd45006
4 changed files with 25 additions and 3 deletions

View File

@@ -454,10 +454,11 @@ class KiCADInterface:
"""Create a new schematic"""
logger.info("Creating schematic")
try:
project_name = params.get("projectName")
# Accept both 'name' (from MCP tool) and 'projectName' (legacy)
project_name = params.get("name") or params.get("projectName")
path = params.get("path", ".")
metadata = params.get("metadata", {})
if not project_name:
return {"success": False, "message": "Project name is required"}