A Mario-style platformer game built with Claude Code and the Unity Editor.
- Player movement and physics
- Tile-based levels
- Enemies
- Collectibles
- Sound effects
- Unity 6 (6000.4.0f1) — confirmed working version
- Claude Code (VS Code extension or CLI)
- uv Python package manager
- Open Unity Editor
- Go to Window → Package Manager
- Click the + button (top left) → Add package from git URL
- Enter the following URL and click Add:
https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main
- Go to Window → MCP for Unity
- Click Start Server
- The server will start on
http://localhost:8080/mcp
Keep Unity open and the server running whenever you want Claude Code to have access to the editor.
The MCP server config is already included in this repo at .mcp.json:
{
"mcpServers": {
"unityMCP": {
"type": "http",
"url": "http://localhost:8080/mcp"
}
}
}If Claude Code does not pick it up automatically, register it manually via the CLI:
claude mcp add --transport http unityMCP http://localhost:8080/mcpVerify the connection:
claude mcp listYou should see unityMCP: http://localhost:8080/mcp (HTTP) - ✓ Connected.
If the claude command is not found in your terminal, add it to your PATH:
echo 'export PATH="$PATH:/Users/$USER/Library/Application Support/Claude/claude-code/2.1.87/claude.app/Contents/MacOS"' >> ~/.zshrc && source ~/.zshrcNote: Replace
2.1.87with your installed version if different.
- TextMeshPro — in Unity 6, TMP is bundled inside
com.unity.ugui(v2.0.0). Do not installcom.unity.textmeshproseparately; it is incompatible with Unity 6000.x. If you seeTMPronamespace errors, installcom.unity.uguivia the Package Manager.
This project is built interactively with Claude Code. See CLAUDE.md for development conventions.