Skip to content

Commit 8c39022

Browse files
committed
Add a README inside plugin, required for distributing via the asset store
1 parent bb452eb commit 8c39022

File tree

1 file changed

+88
-0
lines changed

1 file changed

+88
-0
lines changed

UnityMcpBridge/README.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# MCP for Unity — Editor Plugin Guide
2+
3+
Use this guide to configure and run MCP for Unity inside the Unity Editor. Installation is covered elsewhere; this document focuses on the Editor window, client configuration, and troubleshooting.
4+
5+
## Open the window
6+
- Unity menu: Window > MCP for Unity
7+
8+
The window has four areas: Server Status, Unity Bridge, MCP Client Configuration, and Script Validation.
9+
10+
---
11+
12+
## Quick start
13+
1. Open Window > MCP for Unity.
14+
2. Click “Auto-Setup”.
15+
3. If prompted:
16+
- Select the server folder that contains `server.py` (UnityMcpServer/src).
17+
- Install Python and/or uv if missing.
18+
- For Claude Code, ensure the `claude` CLI is installed.
19+
4. Click “Start Bridge” if the Unity Bridge shows “Stopped”.
20+
5. Use your MCP client (Cursor, VS Code, Windsurf, Claude Code) to connect.
21+
22+
---
23+
24+
## Server Status
25+
- Status dot and label:
26+
- Installed / Installed (Embedded) / Not Installed.
27+
- Mode and ports:
28+
- Mode: Auto or Standard.
29+
- Ports: Unity 6400, MCP Server 6500.
30+
- Actions:
31+
- Auto-Setup: Registers/updates your selected MCP client(s), ensures bridge connectivity. Shows “Connected ✓” after success.
32+
- Repair Python Env: Rebuilds a clean Python environment (deletes `.venv`, runs `uv sync`).
33+
- Select server folder…: Choose the folder containing `server.py`.
34+
- Verify again: Re-checks server presence.
35+
- If Python isn’t detected, use “Open install instructions”.
36+
37+
---
38+
39+
## Unity Bridge
40+
- Shows Running or Stopped with a status dot.
41+
- Start/Stop Bridge button toggles the Unity bridge process used by MCP clients to talk to Unity.
42+
- Tip: After Auto-Setup, the bridge may auto-start in Auto mode.
43+
44+
---
45+
46+
## MCP Client Configuration
47+
- Select Client: Choose your target MCP client (e.g., Cursor, VS Code, Windsurf, Claude Code).
48+
- Per-client actions:
49+
- Cursor / VS Code / Windsurf:
50+
- Auto Configure: Writes/updates your config to launch the server via uv:
51+
- Command: uv
52+
- Args: run --directory <pythonDir> server.py
53+
- Manual Setup: Opens a window with a pre-filled JSON snippet to copy/paste into your client config.
54+
- Choose UV Install Location: If uv isn’t on PATH, select the uv binary.
55+
- A compact “Config:” line shows the resolved config file name once uv/server are detected.
56+
- Claude Code:
57+
- Register with Claude Code / Unregister UnityMCP with Claude Code.
58+
- If the CLI isn’t found, click “Choose Claude Install Location”.
59+
- The window displays the resolved Claude CLI path when detected.
60+
61+
Notes:
62+
- The UI shows a status dot and a short status text (e.g., “Configured”, “uv Not Found”, “Claude Not Found”).
63+
- Use “Auto Configure” for one-click setup; use “Manual Setup” when you prefer to review/copy config.
64+
65+
---
66+
67+
## Script Validation
68+
- Validation Level options:
69+
- Basic — Only syntax checks
70+
- Standard — Syntax + Unity practices
71+
- Comprehensive — All checks + semantic analysis
72+
- Strict — Full semantic validation (requires Roslyn)
73+
- Pick a level based on your project’s needs. A description is shown under the dropdown.
74+
75+
---
76+
77+
## Troubleshooting
78+
- Python or `uv` not:
79+
- Help: https://github.com/CoplayDev/unity-mcp/wiki/1.-Fix-Unity-MCP-and-Cursor,-VSCode-&-Windsurf
80+
- Claude CLI not found:
81+
- Help: https://github.com/CoplayDev/unity-mcp/wiki/2.-Fix-Unity-MCP-and-Claude-Code
82+
83+
---
84+
85+
## Tips
86+
- Enable “Show Debug Logs” in the header for more details in the Console when diagnosing issues.
87+
88+
---

0 commit comments

Comments
 (0)