-
Notifications
You must be signed in to change notification settings - Fork 506
Description
When Cursor calls the MCP tool and uses the script generated by Claude 3.7 to control the Unity editor, a large number of errors occur:
Invalid type for parameter 'color' in tool set_material
Invalid type for parameter 'scale' in tool modify_object
Invalid type for parameter 'set_parent' in tool modify_object
Invalid type for parameter 'material_name' in tool set_material
Invalid type for parameter 'set_property' in tool modify_object
Invalid type for parameter 'type' in tool get_asset_list
Invalid type for parameter 'location' in tool modify_object
Additionally, there are issues reported by the console. Is this a problem with the Cursor?
ExecuteMenuItem failed because there is no menu named 'Script/CreateRoadMaterials/Create All Materials'
UnityEditor.EditorApplication:ExecuteMenuItem (string)
UnityMCP.Editor.Commands.EditorControlHandler:HandleExecuteCommand (Newtonsoft.Json.Linq.JObject) (at Library/PackageCache/com.justinpbarnett.unity-mcp@42c7f8e7df0f/Editor/Commands/EditorControlHandler.cs:120)
UnityMCP.Editor.Commands.EditorControlHandler:HandleEditorControl (Newtonsoft.Json.Linq.JObject) (at Library/PackageCache/com.justinpbarnett.unity-mcp@42c7f8e7df0f/Editor/Commands/EditorControlHandler.cs:33)
UnityMCP.Editor.UnityMCPBridge:ExecuteCommand (UnityMCP.Editor.Models.Command) (at Library/PackageCache/com.justinpbarnett.unity-mcp@42c7f8e7df0f/Editor/UnityMCPBridge.cs:308)
UnityMCP.Editor.UnityMCPBridge:ProcessCommands () (at Library/PackageCache/com.justinpbarnett.unity-mcp@42c7f8e7df0f/Editor/UnityMCPBridge.cs:203)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()