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
Improves validation, error handling, and robustness of several MCP Unity tools. Simultaneously introduces a new testing framework structure under (migrated from ) to facilitate automated testing.
**Key Tool Enhancements:**
* **NotifyMessageTool**: Validates message content and type (info, warning, error enum).
* **RunTestsTool**: Refactored execution, added mode validation, provides detailed pass/fail counts and individual results. Handles 'no tests found' case.
* **SelectGameObjectTool**: Requires instanceId/objectPath, improves search logic (ID > path > name), specific 'not found' errors.
* **UpdateComponentTool**: Requires componentName/Data, improves search (ID > path), finds type across assemblies, adds component if missing, uses Reflection for safer updates, reports invalid fields.
* **McpUnitySocketHandler**: Added capability to look up Resources by URI.
* **General**: More specific error codes/messages for various failures.
**Test Framework Setup:**
* Adds new testing structure under the top-level directory.
* Includes Assembly Definitions () for EditMode and PlayMode tests.
* Adds initial test files () and necessary files.
* Moves/reorganizes existing test files from to the new structure.
* Updates , , and accordingly.
0 commit comments