You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
There are a large number of parameters of invalid types #42
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 ()
Activity
justinpbarnett commentedon Mar 24, 2025
Same issue as #36, will bump priority to fix.
justinpbarnett commentedon Apr 1, 2025
Fixed in PR #68
Was due to cursor not accepting Optional, Union, or Any types