-
Notifications
You must be signed in to change notification settings - Fork 777
Open
Description
Title: Unity Editor detected by list_unity_project_roots but get_unity_editor_state / get_unity_logs fail with "Unity Editor is not running at the specified project root"
Environment:
- OS: Windows 10 (win32 10.0.17763)
- Unity project path: E:\NewClient\ReleaseCold
- MCP For Unity: v9.4.7 (HTTPLocal, URL http://127.0.0.1:8080, Session Active)
- Cursor + coplay-mcp: coplay-mcp-server (Python 3.11, installed as shown in Cursor MCP panel)
Minimal Repro Steps:
- Open the Unity project located at
E:\NewClient\ReleaseColdin the Unity Editor. - In Unity, open the “MCP For Unity” window and start the local server:
- Transport: HTTPLocal
- HTTP URL: http://127.0.0.1:8080
- Ensure the status shows: “Session Active (ReleaseCold)”.
- In Cursor, enable the
coplay-mcpserver. - From Cursor, call the
set_unity_project_roottool with:unity_project_root = "E:\\NewClient\\ReleaseCold"
This call succeeds and returns:
Unity project root set to: E:\NewClient\ReleaseCold
- From Cursor, call the
list_unity_project_rootstool with empty arguments:- This call succeeds and returns something like:
{
"count": 1,
"projectRoots": [
{
"projectRoot": "E:\NewClient\ReleaseCold",
"projectName": "ReleaseCold"
}
]
}
So the MCP server clearly detects one running Unity instance at the expected project root.
- This call succeeds and returns something like:
- Now call the
get_unity_editor_statetool with empty arguments. - Also try calling the
get_unity_logstool with:{"limit": 20, "show_logs": true, "show_warnings": true, "show_errors": true, "show_stack_traces": false}
Observed Behavior:
- Both
get_unity_editor_stateandget_unity_logsfail with the same error:
Unity Editor is not running at the specified project root - Other tools that only set or query configuration (such as
set_unity_project_rootandlist_unity_project_roots) work as expected.
Expected Behavior:
- Since
list_unity_project_rootssuccessfully detects a running Unity instance with:projectRoot = E:\NewClient\ReleaseColdprojectName = ReleaseCold
and this matches the configuredunity_project_root, calls toget_unity_editor_stateandget_unity_logsshould succeed and return the current editor state / console logs, instead of reporting that the Unity Editor is not running.
Additional Notes:
- This suggests that the internal check used by
get_unity_editor_state/get_unity_logsto validate that "the Unity Editor is running at the specified project root" may be stricter or inconsistent with the logic used bylist_unity_project_roots. - It might be comparing paths in a way that fails on Windows (e.g., different path normalization, case sensitivity, or drive letter handling), even though the project root strings look identical in the tool outputs.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels