Troubleshoot Unity MCP issues
Resolve issues that might occur when you set up or use the Unity MCP bridge with external AI clients.
Bridge doesn't start
Symptoms
The Unity MCP settings page (AI > Unity MCP) shows Stopped and the bridge does not start automatically.
Cause
The bridge might fail to start due to script compilation errors, incomplete package installation, or because it was explicitly stopped.
Resolution
- Open the Unity Console and fix any compilation errors.
- Go to Edit > Project Settings > AI > Unity MCP and select Start.
- Verify the
com.unity.ai.assistantpackage is installed in Window > Package Manager. - Restart the Unity Editor if the issue persists.
MCP client can't connect
Symptoms
Your AI client (Cursor, Claude Code, etc.) reports connection errors or can't find Unity tools.
Cause
- Unity isn't running or the bridge didn't start.
- The relay binary is missing from
~/.unity/relay/. - The MCP client configuration points to the wrong executable path.
- The
--mcpflag is missing from the client configuration args.
Resolution
- Confirm the bridge is running in Project Settings > AI > Unity MCP.
- Verify the relay binary exists:
- macOS:
~/.unity/relay/relay_mac_arm64.app/(orrelay_mac_x64.app/) - Windows:
%USERPROFILE%\.unity\relay\relay_win.exe - Linux:
~/.unity/relay/relay_linux
- macOS:
- Verify your client configuration includes
"args": ["--mcp"]. - Use the Integrations section in Unity MCP settings to reconfigure the client.
- Restart both Unity and your MCP client.
Connection pending / not approved
Symptoms
Your MCP client connects but can't invoke any tools. The Unity MCP settings page shows the connection under Pending Connections.
Cause
Direct connections from external MCP clients require user approval. The connection is waiting for you to accept it.
Resolution
- Go to Edit > Project Settings > AI > Unity MCP.
- In the Pending Connections section, review the client details.
- Select Accept to approve the connection.
Once approved, the client is remembered and reconnects automatically in future sessions.
Tools not discovered
Symptoms
The MCP client connects but lists no Unity tools, or some custom tools are missing.
Cause
- Tool registration scripts have compilation errors.
- The
[McpTool]attribute is missing or incorrectly applied. - Custom tools are in assemblies not scanned by
TypeCache. - A tool is disabled in the Unity MCP settings.
Resolution
- Check the Unity Console for compilation errors in tool scripts.
- Verify that tool methods are
public staticand decorated with[McpTool]. - For class-based tools, ensure they implement
IUnityMcpToolorIUnityMcpTool<T>and have a parameterless constructor. - Check the Tools section in Unity MCP settings to ensure tools are enabled.
- Enable Show Debug Logs in Unity MCP settings for detailed discovery information.
Relay binary not installed
Symptoms
The relay binary is missing from ~/.unity/relay/ and client configurations fail.
Cause
The ServerInstaller runs at editor startup and copies relay binaries from the package. It might have been interrupted or the package directory is not accessible.
Resolution
- Restart the Unity Editor to trigger the installer.
- Verify the package directory exists:
Packages/com.unity.ai.assistant/RelayApp~/. - Check the Unity Console for installation warnings.
- As a workaround, use the Locate Server button in Unity MCP settings to find the bundled binary and copy it manually.
Performance issues
Symptoms
Slow responses from Unity tools or timeout errors in the MCP client.
Cause
Unity might be busy with heavy operations (asset imports, builds, compilation) or system resources are limited.
Resolution
- Wait for Unity to finish any ongoing operations (check the progress bar).
- Restart Unity to clear cached state.
- Reduce the number of concurrent MCP client connections.
- Enable Show Debug Logs to identify bottlenecks.
Enable debug logging
For detailed diagnostic information, enable debug logging in the Unity MCP settings page:
- Go to Edit > Project Settings > AI > Unity MCP.
- Check Show Debug Logs.
Debug logs include connection attempts, tool discovery details, command execution traces, and error information.