Skip to content

Commit 937a950

Browse files
added manual config instructions
1 parent eeaa7a2 commit 937a950

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,44 @@ To connect the MCP Server to tools like Claude Desktop or Cursor:
6767
- **Unity Bridge**: Should show "Running" when active.
6868
- **Python Server**: Should show "Connected" (green) when successfully linked.
6969
70+
## Manual Configuration for MCP Clients
71+
72+
If you prefer to manually configure your MCP client (like Claude Desktop or Cursor), you can create the configuration file yourself:
73+
74+
1. **Locate the Configuration Directory**
75+
76+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
77+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
78+
79+
2. **Create the Configuration File**
80+
Create a JSON file with the following structure:
81+
82+
```json
83+
{
84+
"mcpServers": {
85+
"unityMCP": {
86+
"command": "uv",
87+
"args": [
88+
"--directory",
89+
"/path/to/your/unity-mcp/Python",
90+
"run",
91+
"server.py"
92+
]
93+
}
94+
}
95+
}
96+
```
97+
98+
3. **Find the Correct Python Path**
99+
100+
- If installed as a package: Look in `Library/PackageCache/com.justinpbarnett.unitymcpserver/Python`
101+
- If installed locally: Look in `Assets/unity-mcp/Python`
102+
103+
4. **Verify Configuration**
104+
- Ensure the Python path points to the correct directory containing `server.py`
105+
- Make sure the `uv` command is available in your system PATH
106+
- Test the connection using the Unity MCP window
107+
70108
## Usage
71109
72110
Once configured, you can use the MCP Server to interact with LLMs directly from Unity or Python. Here are a couple of examples:

0 commit comments

Comments
 (0)