Commit Graph

283 Commits (ee23346ca2832facea1204ae06d6852b2b6dc130)

Author SHA1 Message Date
xsodus a880bf485b Refactor configuration handling in UnityMcpEditorWindow to streamline JSON serialization and improve client type management 2025-05-12 15:05:56 +07:00
xsodus 48a865d386 Remove redundant field definitions inherited from ManualConfigEditorWindow in VSCodeManualSetupWindow 2025-05-12 09:34:27 +07:00
xsodus 861e6bc62c Refactor VSCodeManualSetupWindow to inherit from ManualConfigEditorWindow and override methods for improved functionality 2025-05-12 09:34:04 +07:00
xsodus d63eb7d4e4 Add metadata file for VSCodeManualSetupWindow with file format version and GUID 2025-05-12 09:25:01 +07:00
xsodus b4910be508 Refactor VSCode configuration to use lowercase 'unityMCP' and improve argument checking 2025-05-12 09:24:10 +07:00
xsodus 619172ad99 Add VSCode GitHub Copilot support and configuration window
- Updated McpTypes to include VSCode.
- Enhanced McpClients to handle VSCode configuration paths.
- Implemented VSCodeManualSetupWindow for user instructions and JSON configuration.
- Modified UnityMcpEditorWindow to support VSCode-specific setup and configuration.
- Updated .gitignore to include .DS_Store files.
2025-05-12 08:25:21 +07:00
Michael Nugent 738c3a2a90 dockerfile 2025-04-18 20:47:17 -04:00
toma.tanigawa d4bd504e31 Add: MCP Bridge part of shader management tool 2025-04-18 20:24:46 +09:00
toma.tanigawa 649599fcfe Add: Shader management tool 2025-04-18 20:23:56 +09:00
David Sarno 47bb2c6363 docs: Add documentation for get_components action in manage_gameobject
- Add get_components to the list of available actions in the docstring

- Document required and optional parameters for get_components action

- Clarify the return value structure for get_components

- Improve overall documentation clarity for component data retrieval
2025-04-13 10:38:53 -07:00
David S. 5bd447b06a
Merge pull request #2 from dsarno/feature/generalize-getcomponentdata
Feature: 🔍 Enhanced Component Data Reading via Serialization
2025-04-10 23:01:50 -07:00
David Sarno 3063d54071 fix: Improved component data retrieval with special handling for Transform and Camera components to prevent serialization crashes 2025-04-10 13:10:10 -07:00
David Sarno 51eb59f04f Fix(MCP): Resolve ValidTRS crash during component serialization
The Unity Editor was crashing with ValidTRS() assertions when attempting to get components from certain GameObjects like the Main Camera.

Investigation revealed the crash occurred during JSON serialization when reflection code accessed specific matrix properties (e.g., Camera.cullingMatrix, Transform.rotation, Transform.lossyScale). Accessing these properties appears to trigger internal Transform state validation failures, potentially due to interactions with the JSON serializer's reflection mechanism.

This fix addresses the issue by:

- Replacing LINQ iteration in GetComponentsFromTarget with a standard loop over a copied list to prevent potential premature serialization interactions.

- Explicitly skipping known problematic Camera matrix properties (cullingMatrix, pixelRect, rect) and generic matrix properties (worldToLocalMatrix, localToWorldMatrix) within GetComponentData's reflection logic.

- Retaining manual serialization for Transform component properties to avoid related reflection issues.
2025-04-10 12:53:01 -07:00
David Sarno bd850729c6 Fix: Add missing Runtime assembly and related files 2025-04-10 10:07:20 -07:00
David Sarno 0433b88f68 Fix: Add missing .meta file for GameObjectSerializer 2025-04-10 09:45:56 -07:00
David Sarno dd0113d258 Refactor: Extract GameObject/Component serialization to GameObjectSerializer helper
Moved serialization logic (GetGameObjectData, GetComponentData, metadata caching, JSON conversion helpers) from ManageGameObject tool to a dedicated GameObjectSerializer class in the Helpers namespace.

This improves separation of concerns and reduces the size/complexity of ManageGameObject.cs. Updated ManageGameObject to use the new helper class.
2025-04-10 09:42:42 -07:00
David Sarno 15ba68f473 feat: Improve GameObject serialization and add includeNonPublicSerialized flag 2025-04-10 08:12:20 -07:00
David Sarno 9b11224357 Feat: Generalize GetComponentData using reflection 2025-04-09 19:58:42 -07:00
Justin P Barnett cbe9b3a2f0
Merge pull request #87 from justinpbarnett/bugfix/python-server-status
Bugfix/python server status
2025-04-09 09:12:24 -04:00
Justin Barnett 4a3f4e7301 linting and removed unused properties 2025-04-09 09:10:21 -04:00
Justin Barnett 52c75f9521 added project install status and re-added connection check 2025-04-09 07:43:01 -04:00
Justin Barnett b2f65f2ffc added public helper methods for project versions 2025-04-09 07:42:43 -04:00
Justin P Barnett 9f855d6f79
Merge pull request #83 from justinpbarnett/update-readme
Update README.md
2025-04-08 21:14:37 -04:00
Justin P Barnett 2fb6be0675
Update README.md 2025-04-08 21:14:25 -04:00
Justin P Barnett 5d987648d9
Merge pull request #82 from justinpbarnett/feature/install-overhaul
Feature/install overhaul
2025-04-08 20:58:02 -04:00
Justin Barnett 99f38e21bd PR prep 2025-04-08 20:55:22 -04:00
Justin Barnett 9032c5809d update server test 2025-04-08 15:25:55 -04:00
Justin Barnett 8c50e01add update update path 2025-04-08 15:23:46 -04:00
Justin Barnett a3f1926338 pass content, not path 2025-04-08 15:19:52 -04:00
Justin Barnett 2f260861df update pyproject.toml path 2025-04-08 15:17:26 -04:00
Justin Barnett 64b771210b update version analysis 2025-04-08 15:13:41 -04:00
Justin Barnett 8ed8c62cce updated auto-config server location 2025-04-08 15:03:16 -04:00
Justin Barnett f446b502ee removed logging 2025-04-08 15:02:59 -04:00
Justin Barnett e9bc45c0df updated PyprojectUrl 2025-04-08 14:20:54 -04:00
Justin Barnett d5917bdbec added loging, updated paths 2025-04-08 14:12:30 -04:00
Justin Barnett 3199421586 removed python and uv check during install 2025-04-08 14:03:56 -04:00
Justin Barnett 7b303b5ba3 update pyproject.toml get location 2025-04-08 11:44:12 -04:00
Justin Barnett e4ccf614c5 update server save location, again 2025-04-08 11:41:14 -04:00
Justin Barnett 0aa191c7e3 update pyproject name and save location again 2025-04-08 11:10:01 -04:00
Justin Barnett b8c8910323 update install location 2025-04-08 10:56:05 -04:00
Justin Barnett b36c4576d9 only install UnityMcpServer folder, not whole repo 2025-04-08 10:48:39 -04:00
Justin Barnett 33b6486b70 backslashes for windows 2025-04-08 10:39:14 -04:00
Justin Barnett 2f6d748607 updated server install process 2025-04-08 10:33:14 -04:00
Justin Barnett 441c0aac57 gracefully handle multiple processes 2025-04-08 09:46:52 -04:00
Justin Barnett 99ceb49ac3 update server install process 2025-04-08 09:46:34 -04:00
Justin P Barnett 0b1a0c38cb
Merge pull request #81 from justinpbarnett/enable-funding
Create FUNDING.yml
2025-04-08 09:12:03 -04:00
Justin P Barnett 0ccc5c5c3b
Create FUNDING.yml 2025-04-08 09:11:50 -04:00
Justin Barnett 7beaab1fcb updated GitUrl to include branch name 2025-04-08 08:59:26 -04:00
Justin Barnett 8a89f55daf update installer to account for different os 2025-04-08 07:52:44 -04:00
Justin Barnett 183b44ae9c update gitignore 2025-04-08 07:44:46 -04:00