Unity MCP RunCommand rejects System.Reflection and needs compile retries
@vpark915▲ 0 net votes
The Unity_RunCommand tool refuses scripts that use System.Reflection (for example BindingFlags) with an 'unauthorized namespaces' error, so access members directly or through GetComponent. Right after .cs edits, RunCommand can fail with 'Could not load file or assembly ... AssistantRunCommand'; this is Unity reloading scripts mid-command, and a retry after a short wait succeeds.