unity-mcp
unity-mcp copied to clipboard
Cannot connect to the MCP server via vscode plugin
I could connect to the mcp server in the terminal. But when using the claude code plugin in vscode, I got "MCP error -32000: Connection closed" message.
Environments:
- Unity: 6000.3.9f1
- MCP for Unity: v9.5.4-beta.7
- Python: v3.13.2
- UV: v0.9.16
- VS Code: 1.111.0
- Claude Code for VS Code: 2.1.76
I also can not use the mcp on claude code extension. But I can use it in terminal.
Hi, can you guys confirm if this is still an issue now?
The solution is that manually create a .mcp.json without --offline option in the project directory.
{
"mcpServers": {
"UnityMCP": {
"type": "stdio",
"command": "uvx",
"args": [
"--prerelease", "explicit",
"--from", "mcpforunityserver>=0.0.0a0",
"mcp-for-unity"
]
}
}
}