unity-mcp/MCPForUnity/Editor/Resources
Marcus Sanatan 61284cc172
Display resources (#658)
* Add resource discovery service and UI for managing MCP resources

* Consolidate duplicate IsBuiltIn logic into StringCaseUtility.IsBuiltInMcpType

* Add resource enable/disable enforcement and improve error response handling

- Block execution of disabled resources in TransportCommandDispatcher with clear error message
- Add parse_resource_response() utility to handle error responses without Pydantic validation failures
- Replace inline response parsing with parse_resource_response() across all resource handlers
- Export parse_resource_response from models/__init__.py for consistent usage

* Block execution of disabled built-in tools in TransportCommandDispatcher with clear error message

Add tool enable/disable enforcement before command execution. Check tool metadata and enabled state, returning error response if tool is disabled. Prevents execution of disabled tools with user-friendly error message.

* Fire warning in the rare chance there are duplicate names

* Handle rare case a resource name is null

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-01-30 20:31:35 -04:00
..
Editor feat: replace prefab stage actions with headless modify_contents (#635) 2026-01-26 10:53:44 -08:00
MenuItems HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
Project HTTP Server, uvx, C# only custom tools (#375) 2025-11-24 23:21:06 -04:00
Scene v9 pre-release pruning (#528) 2026-01-07 18:51:51 -04:00
Tests Large Cleanup and Refactor + Many new Tests added (#642) 2026-01-29 02:47:36 -08:00
Editor.meta Move Get commands to editor resources + Run Python tests every update (#368) 2025-11-05 16:06:48 -04:00
McpForUnityResourceAttribute.cs Display resources (#658) 2026-01-30 20:31:35 -04:00
McpForUnityResourceAttribute.cs.meta Add testing and move menu items to resources (#316) 2025-10-13 11:16:43 -04:00
MenuItems.meta Add testing and move menu items to resources (#316) 2025-10-13 11:16:43 -04:00
Project.meta Move Get commands to editor resources + Run Python tests every update (#368) 2025-11-05 16:06:48 -04:00
Scene.meta 🎮 GameObject Toolset Redesign and Streamlining (#518) 2026-01-06 10:13:45 -08:00
Tests.meta Add testing and move menu items to resources (#316) 2025-10-13 11:16:43 -04:00