diff --git a/MCPForUnity/README.md b/MCPForUnity/README.md index b4048f5..77a9623 100644 --- a/MCPForUnity/README.md +++ b/MCPForUnity/README.md @@ -30,7 +30,7 @@ The window has four areas: Server Status, Unity Bridge, MCP Client Configuration - Actions: - Auto-Setup: Registers/updates your selected MCP client(s), ensures bridge connectivity. Shows “Connected ✓” after success. - Rebuild MCP Server: Rebuilds the Python based MCP server - - Select server folder…: Choose the folder containing `server.py`. + - Select server folder…: Choose the local `Server` folder (dev only; usually not needed when using uvx). - Verify again: Re-checks server presence. - If Python isn’t detected, use “Open Install Instructions”. - HTTP Server Command foldout: @@ -89,4 +89,4 @@ Notes: - Use Cmd+Shift+M (macOS) / Ctrl+Shift+M (Windows, Linux) to toggle the MCP for Unity window. - Enable “Show Debug Logs” in the header for more details in the Console when diagnosing issues. ---- \ No newline at end of file +--- diff --git a/README.md b/README.md index 8996dc9..d03de47 100644 --- a/README.md +++ b/README.md @@ -113,15 +113,15 @@ If auto-setup doesn't work, add this to your MCP client's config file: ```
-Stdio configuration (legacy) +Stdio configuration (uvx) **macOS/Linux:** ```json { "mcpServers": { "unityMCP": { - "command": "uv", - "args": ["run", "--directory", "/Users/YOUR_USERNAME/Library/AppSupport/UnityMCP/UnityMcpServer/src", "server.py", "--transport", "stdio"] + "command": "uvx", + "args": ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"] } } } @@ -132,8 +132,8 @@ If auto-setup doesn't work, add this to your MCP client's config file: { "mcpServers": { "unityMCP": { - "command": "C:/Users/YOUR_USERNAME/AppData/Local/Microsoft/WinGet/Links/uv.exe", - "args": ["run", "--directory", "C:/Users/YOUR_USERNAME/AppData/Local/UnityMCP/UnityMcpServer/src", "server.py", "--transport", "stdio"] + "command": "C:/Users/YOUR_USERNAME/AppData/Local/Microsoft/WinGet/Links/uvx.exe", + "args": ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"] } } } diff --git a/docs/guides/CURSOR_HELP.md b/docs/guides/CURSOR_HELP.md index 4c89548..b1c11e4 100644 --- a/docs/guides/CURSOR_HELP.md +++ b/docs/guides/CURSOR_HELP.md @@ -31,12 +31,13 @@ This sets an override stored in the Editor (key: `MCPForUnity.UvPath`) so MCP fo { "mcpServers": { "unityMCP": { - "command": "C:\\Users\\YOU\\AppData\\Local\\Microsoft\\WinGet\\Links\\uv.exe", + "command": "C:\\Users\\YOU\\AppData\\Local\\Microsoft\\WinGet\\Links\\uvx.exe", "args": [ - "--directory", - "C:\\Users\\YOU\\AppData\\Local\\Programs\\UnityMCP\\UnityMcpServer\\src", - "run", - "server.py" + "--from", + "mcpforunityserver", + "mcp-for-unity", + "--transport", + "stdio" ] } } @@ -46,7 +47,7 @@ This sets an override stored in the Editor (key: `MCPForUnity.UvPath`) so MCP fo - Manually run the same command in PowerShell to confirm it launches: ```powershell -"C:\Users\YOU\AppData\Local\Microsoft\WinGet\Links\uv.exe" --directory "C:\Users\YOU\AppData\Local\Programs\UnityMCP\UnityMcpServer\src" run server.py +"C:\Users\YOU\AppData\Local\Microsoft\WinGet\Links\uvx.exe" --from mcpforunityserver mcp-for-unity --transport stdio ``` If that runs without error, restart Cursor and it should connect. @@ -82,4 +83,3 @@ References - GUI client PATH caveats (Cursor): [Cursor community thread](https://forum.cursor.com/t/mcp-feature-client-closed-fix/54651?page=4) - uv tools install location (`~/.local/bin`): [Astral docs](https://docs.astral.sh/uv/concepts/tools/) - diff --git a/docs/i18n/README-zh.md b/docs/i18n/README-zh.md index 3f67e83..b2cf905 100644 --- a/docs/i18n/README-zh.md +++ b/docs/i18n/README-zh.md @@ -113,15 +113,15 @@ openupm add com.coplaydev.unity-mcp ```
-Stdio 配置(旧版) +Stdio 配置(uvx) **macOS/Linux:** ```json { "mcpServers": { "unityMCP": { - "command": "uv", - "args": ["run", "--directory", "/Users/YOUR_USERNAME/Library/AppSupport/UnityMCP/UnityMcpServer/src", "server.py", "--transport", "stdio"] + "command": "uvx", + "args": ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"] } } } @@ -132,8 +132,8 @@ openupm add com.coplaydev.unity-mcp { "mcpServers": { "unityMCP": { - "command": "C:/Users/YOUR_USERNAME/AppData/Local/Microsoft/WinGet/Links/uv.exe", - "args": ["run", "--directory", "C:/Users/YOUR_USERNAME/AppData/Local/UnityMCP/UnityMcpServer/src", "server.py", "--transport", "stdio"] + "command": "C:/Users/YOUR_USERNAME/AppData/Local/Microsoft/WinGet/Links/uvx.exe", + "args": ["--from", "mcpforunityserver", "mcp-for-unity", "--transport", "stdio"] } } }