Files
Dan Billeci 4b2b963919 fix(prefabs): wire missing C# handler for editor/prefab-stage resource
The mcpforunity://editor/prefab-stage resource was wired Python-side
in PR #1013 ("Prefab stages integration") via
Server/src/services/resources/prefab_stage.py, but its dispatched
`get_prefab_stage` command name was never given a C# handler.
Reading the resource hits CommandRegistry's not-found throw:

    Unknown or unsupported command type: get_prefab_stage

This change adds GetPrefabStage at
MCPForUnity/Editor/Resources/Editor/GetPrefabStage.cs, returning the
5 fields the Python PrefabStageResponse pydantic model expects
(isOpen, assetPath, prefabRootName, mode, isDirty) via
PrefabStageUtility.GetCurrentPrefabStage(). Mirrors the EditorState.cs
sibling resource's shape.

No Python-side or schema changes required.
2026-05-22 11:55:45 -07:00
..
2026-01-07 18:51:51 -04:00
Fix
2026-04-02 23:49:08 -04:00
2026-04-12 16:41:03 -04:00