◉CLAUDE LABJP
●CC 2.1.330 — Claude Code 2.1.330 fixes the multi-minute freeze right after compacting a long conversation●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 8 days left. The suggested replacement is claude-sonnet-5-5●MCP 401 — Users report MCP servers that return 401 time out silently instead of showing an error●NEW — New: Desktop creates a worktree for every session? Three places to check●OPUS 4.5 — The 11/24 date for Opus 4.5 is a not-sooner-than floor, not a retirement notice●SCHEMA — Same schema, different shape: compare structured output from the Agent SDK and the Messages API●CC 2.1.330 — Claude Code 2.1.330 fixes the multi-minute freeze right after compacting a long conversation●SONNET 4.5 — Sonnet 4.5 retires from the Claude API on 11/30, 8 days left. The suggested replacement is claude-sonnet-5-5●MCP 401 — Users report MCP servers that return 401 time out silently instead of showing an error●NEW — New: Desktop creates a worktree for every session? Three places to check●OPUS 4.5 — The 11/24 date for Opus 4.5 is a not-sooner-than floor, not a retirement notice●SCHEMA — Same schema, different shape: compare structured output from the Agent SDK and the Messages API
Articles/Claude Code
⟐ Claude Code/2026-03-10Intermediate

Unity × Claude Code Game Dev Guide — Building AI-Driven Workflows with MCP

Learn to accelerate game development with Unity MCP and Claude Code. Covers scene building, asset management, script generation, and debugging with AI-driven workflows.

Unity3Claude Code291MCP63Game DevelopmentAI8Automation44Script Generation

AI Game Development with Unity MCP

Unity MCP is a bridge that connects AI agents like Claude Code and Cursor directly to the Unity Editor. Through the Model Context Protocol, AI can handle project management, scene construction, asset manipulation, and script generation.

As of 2026, multiple MCP implementations are available including Unity's official package (com.unity.ai.assistant), making Unity operations from Claude Code a practical development approach.

ℹ️
**What Unity MCP Can Do:** - Place and manipulate objects in scenes - Manage project assets (import, search, organize) - Generate and edit C# scripts - Debug build errors with automatic fixes - Analyze and refactor project structure

Setup Methods

Unity Official MCP Package

Using Unity's official AI Assistant package:

# Add via Unity Package Manager
# com.unity.ai.assistant@2.0.0-pre.1

Enable the MCP server from Window → AI → MCP Settings in Unity Editor.

Coplay MCP (Community)

A community implementation providing a broader toolset:

# Add Coplay MCP to Claude Code
claude mcp add unity-mcp -- npx -y @coplay/unity-mcp

IvanMurzak/Unity-MCP

A lightweight bridge connecting AI agents to Unity Editor:

# Add to Claude Code
claude mcp add unity -- npx -y @ivanmurzak/unity-mcp
💡
Regardless of which implementation you choose, the basic mechanism is the same. A local MCP server starts within Unity Editor, and Claude Code connects to it to invoke tools.

Practical Workflows

Automated Scene Construction

Direct Claude Code to build scenes using natural language:

You: Create a forest stage. Flat ground plane, 10 trees randomly placed,
     player spawn point at center.

Claude: I'll build the scene using Unity MCP.
        1. Creating Terrain object (100x100m)
        2. Randomly placing 10 Tree prefabs
        3. Placing SpawnPoint at (0, 0, 0)
        4. Adding Directional Light (sunlight)
        Scene "ForestStage" saved.

Script Generation

Claude Code generates C# game logic scripts and places them directly in your Unity project:

You: Write a player movement script.
     WASD movement, space to jump, Rigidbody-based.

Claude: Creating Assets/Scripts/PlayerMovement.cs.
using UnityEngine;
 
public class PlayerMovement : MonoBehaviour
{
    [SerializeField] private float moveSpeed = 5f;
    [SerializeField] private float jumpForce = 8f;
    [SerializeField] private LayerMask groundLayer;
 
    private Rigidbody rb;
    private bool isGrounded;
 
    void Start()
    {
        rb = GetComponent<Rigidbody>();
    }
 
    void Update()
    {
        float h = Input.GetAxisRaw("Horizontal");
        float v = Input.GetAxisRaw("Vertical");
        Vector3 moveDir = new Vector3(h, 0, v).normalized;
 
        rb.linearVelocity = new Vector3(
            moveDir.x * moveSpeed,
            rb.linearVelocity.y,
            moveDir.z * moveSpeed
        );
 
        if (Input.GetKeyDown(KeyCode.Space) && isGrounded)
        {
            rb.AddForce(Vector3.up * jumpForce, ForceMode.Impulse);
            isGrounded = false;
        }
    }
 
    void OnCollisionEnter(Collision collision)
    {
        if (((1 << collision.gameObject.layer) & groundLayer) != 0)
            isGrounded = true;
    }
}

Asset Management

Search and organize project assets with Claude Code:

You: Find unused textures in the project

Claude: Searching asset database via Unity MCP...
        Found 8 textures not referenced by any scene or script:
        - Assets/Textures/old_grass.png
        - Assets/Textures/test_normal.png
        ...
        Would you like me to delete them?

Debugging and Error Fixing

Claude Code analyzes and fixes build errors and runtime exceptions:

You: There's a compile error. Fix it.

Claude: Checking Unity console logs...
        CS0246: 'PlayerHealth' not found.
        Referenced at Assets/Scripts/GameManager.cs:15.
        PlayerHealth.cs hasn't been created yet. I'll generate a skeleton.

Game Development Patterns

Pattern 1: Rapid Prototyping

Build playable prototypes quickly from ideas with AI:

  1. Describe the game concept to Claude Code
  2. Auto-place scenes and objects via MCP
  3. Generate game logic scripts
  4. Cycle through playtesting → feedback → fixes

Pattern 2: Refactoring Existing Projects

AI assists with organizing large project codebases:

You: Analyze the Scripts folder and find classes with mixed
     responsibilities. Suggest refactoring.

Claude: Analyzing project structure...
        GameManager.cs has 800 lines with mixed responsibilities:
        - Score management → Recommend extracting to ScoreManager
        - UI updates → Recommend extracting to UIManager
        - Save/Load → Recommend extracting to SaveSystem
        Execute refactoring?

Pattern 3: Empowering Indie Developers

For non-programmers and indie developers, Claude Code + Unity MCP dramatically lowers the barrier to game creation. The workflow of describing game logic in natural language and having AI convert it to code enables prototype creation without deep programming expertise.

Security Considerations

⚠️
**Unity MCP Precautions:** - Allow only local connections for MCP servers; never expose to external networks - Always use version control (Git) alongside AI — track and revert AI changes - Mind licensing when letting AI auto-manage paid Asset Store assets - Review all AI-generated code before production builds

Looking back

The combination of Unity MCP and Claude Code has the potential to fundamentally transform game development workflows. By directing scene construction, script generation, asset management, and debugging through natural language, the cycle from idea to implementation is dramatically shortened.

Start with Unity's official com.unity.ai.assistant package or the community's Coplay MCP, and begin by letting AI handle simple scene construction.

Share

Thank You for Reading

Claude Lab is ad-free, supported entirely by members like you. We publish practical guides daily with implementation code, benchmarks, and production-ready patterns. If you've found it useful, we'd love to have you on board.

  • ✦Copy-paste ready implementation code
  • ✦New advanced guides published daily
  • ✦$5/mo or $10 for lifetime access
View Membership →

If you found this article helpful, a small tip ($1.50) would mean a lot to us. Your support helps keep this site ad-free and covers server and hosting costs.

Related Articles

⟐ Claude Code2026-11-22
When a Remote MCP Server Goes Silent After Its Token Expires, Check for mcp-remote First
A remote MCP tool call hangs with no error. How to tell an expired token from a slow tool, a script that finds servers bridged through mcp-remote, and how to switch to the native HTTP transport or cap the wait.
⟐ Claude Code2026-11-19
Using One MCP Server from Both Claude Code and Gemini CLI? Generate Both Configs from a Single Source
Paste a Claude Code .mcp.json entry into Gemini CLI and the HTTP server may refuse to connect. A side-by-side table of the differences (url vs httpUrl, variable expansion, server names) plus a Python script that writes both configs from one source file.
⟐ Claude Code2026-10-23
When a Nightly claude -p Said MCP Needed Authentication, I Added a Preflight That Splits Sleep From Keychain
Claude Code 2.1.307 fixed MCP failures caused by macOS sleep and a locked login keychain. Here is a preflight script that helps with or without the fix, and a way to match failures against sleep history.