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
fix: Improve MCP Unity tool validation and error handling
Key improvements across multiple tools:
RunTestsTool:
- Fix async implementation using ICallbacks
- Add proper validation for test modes
- Improve test result reporting
- Add checks for when no tests match criteria
SelectGameObjectTool:
- Fix namespace for Resources.FindObjectsOfTypeAll
- Add validation for GameObject existence
- Improve error messages for non-existent objects
- Support both path and name-based GameObject lookup
UpdateComponentTool:
- Add comprehensive field validation
- Track and report invalid fields with reasons
- Validate field existence and accessibility
- Add type compatibility checking
- Improve error messages with detailed feedback
These changes make the tools more robust and user-friendly by:
- Providing clear error messages
- Preventing silent failures
- Maintaining partial updates where possible
- Following Unity best practices for object lookup
0 commit comments