unity-mcp/MCPForUnity/Editor/Windows
Marcus Sanatan b69ee80da9
Project scoped tools (#596)
* feat: Add project-scoped tools flag to control custom tool registration behavior

Add `--project-scoped-tools` CLI flag and `UNITY_MCP_PROJECT_SCOPED_TOOLS` environment variable to control whether custom tools are registered globally or scoped to specific Unity projects.

Closes #416

* Add .meta file

* feat: Add project-scoped tools toggle for local HTTP transport

Add UI toggle in Connection section to control project-scoped tools flag when using HTTP Local transport. The toggle:
- Defaults to enabled (true)
- Persists state in EditorPrefs
- Only displays when HTTP Local transport is selected
- Automatically appends `--project-scoped-tools` flag to uvx server command
- Updates manual config display when toggled

* Update Server/src/services/custom_tool_service.py

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>

* Pass project_scoped_tools flag directly without environment variable conversion

Remove unnecessary environment variable conversion for project_scoped_tools flag.

* fix: Improve error handling and logging in global custom tool registration

Split exception handling to distinguish between expected RuntimeError (service not initialized) and unexpected errors.

---------

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
2026-01-21 13:07:52 -04:00
..
Components Project scoped tools (#596) 2026-01-21 13:07:52 -04:00
EditorPrefs Project scoped tools (#596) 2026-01-21 13:07:52 -04:00
Components.meta HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
EditorPrefs.meta Add EditorPrefs management window for MCP configuration debugging (#491) 2025-12-29 13:30:45 -04:00
MCPForUnityEditorWindow.cs fix: comprehensive performance optimizations, claude code config, and stability improvements (issue #577) (#595) 2026-01-20 18:11:25 -08:00
MCPForUnityEditorWindow.cs.meta Add .meta files (#472) 2025-12-19 18:59:19 -04:00
MCPForUnityEditorWindow.uss Test/478 matrix4x4 serialization crash (#481) 2025-12-23 15:53:14 -08:00
MCPForUnityEditorWindow.uss.meta Add .meta files (#472) 2025-12-19 18:59:19 -04:00
MCPForUnityEditorWindow.uxml [FEATURE] Custom Tool Fix and Add inspection window for all the tools (#414) 2025-12-07 19:38:32 -05:00
MCPForUnityEditorWindow.uxml.meta Add .meta files (#472) 2025-12-19 18:59:19 -04:00
MCPSetupWindow.cs feat: Mark setup as completed when user clicks Done button (#529) 2026-01-07 18:58:36 -04:00
MCPSetupWindow.cs.meta HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
MCPSetupWindow.uss HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
MCPSetupWindow.uss.meta HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
MCPSetupWindow.uxml HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
MCPSetupWindow.uxml.meta HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00