You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've also encountered this issue. The problem is that this line is currently Editor-only logging used from the Runtime asmdef, which breaks player builds.
Problem: McpLog lives under Editor/Helpers/McpLog.cs (Editor assembly), but it’s referenced from Runtime/Serialization/UnityTypeConverters.cs (Runtime assembly). This produces:
CS0103: The name 'McpLog' does not exist in the current context
Suggested fix (minimal): replace McpLog.Warn(...) with Unity runtime logging:
UnityEngine.Debug.LogWarning("UnityEngineObjectConverter cannot deserialize complex objects in non-Editor mode.");
Alternative fix (if intended Editor-only package): update Runtime/MCPForUnity.Runtime.asmdef to prevent Runtime from compiling into player builds:
"includePlatforms": ["Editor"],"autoReferenced": false
@MirceaMatei-Superplay@SungwookJi This should be fixed in latest 9.0.3 -- please try to pull most recent version and see if everything works. Thanks for the heads-up.
Activity
MirceaMatei-Superplay commentedon Jan 8, 2026
I've also encountered this issue. The problem is that this line is currently Editor-only logging used from the Runtime asmdef, which breaks player builds.
Problem: McpLog lives under Editor/Helpers/McpLog.cs (Editor assembly), but it’s referenced from Runtime/Serialization/UnityTypeConverters.cs (Runtime assembly). This produces:
CS0103: The name 'McpLog' does not exist in the current context
Suggested fix (minimal): replace McpLog.Warn(...) with Unity runtime logging:
UnityEngine.Debug.LogWarning("UnityEngineObjectConverter cannot deserialize complex objects in non-Editor mode.");
Alternative fix (if intended Editor-only package): update Runtime/MCPForUnity.Runtime.asmdef to prevent Runtime from compiling into player builds:
"includePlatforms": ["Editor"],"autoReferenced": false
dsarno commentedon Jan 8, 2026
@MirceaMatei-Superplay @SungwookJi This should be fixed in latest
9.0.3-- please try to pull most recent version and see if everything works. Thanks for the heads-up.