Skip to content

v0.3.2

Choose a tag to compare

@Winlifes Winlifes released this 19 May 03:54

What's New

  • Update notifications in the MCP Server window — the window now shows the installed version, polls GitHub for new releases every 6 hours, and offers a one-click update when a newer version is available. Auto-check is skipped in Unity batch mode.

What's Fixed

  • Post-domain-reload restart hardened. Beyond the synchronous stop landed in 0.3.1, the restart path itself now tolerates: [InitializeOnLoad] vs afterAssemblyReload ordering races, EditorApplication.isCompiling still being true when the delayCall fires, the service provider not yet being available, and duplicate scheduling. The restart now retries via EditorApplication.update until the editor is settled.
  • HTTP transport start retry. HttpMCPTransport.StartAsync retries for ~10 seconds (40 × 250 ms) when the port is briefly held by an unwinding listener after AppDomain transition. Eliminates residual Address already in use failures on fast reload scenarios.
  • Deferred pending-function completion. DomainReloadHandler.CompletePendingFunction defers clearing the pending tool until the editor is no longer mid-compile / mid-update / about to change Play Mode (with a 15-second fallback). Removes a race that could leave reload bookkeeping inconsistent.
  • Batch mode safety. Root services and MCP server startup are no-ops under -batchmode, so batch jobs running in parallel with a foreground Editor that already binds port 8765 no longer conflict.
  • request_recompile rejects Play Mode calls. Unity does not process script compilation or domain reloads while playing. The tool now returns a clear error: call exit_play_mode first, then retry.

Skill / Docs

The bundled unity-mcp-workflow skill (and the generated AGENTS.md / CLAUDE.md templates) now teach agents two Play Mode lifecycle pitfalls:

  1. After enter_play_mode, the HTTP server is briefly unreachable while Unity reloads the domain — poll tools/list or get_reload_recovery_status until it responds before issuing the next call.
  2. request_recompile is rejected during Play Mode and must be preceded by exit_play_mode.

Existing installs should regenerate Project Skills via Funplay > Project Skills to pick up the new content.

Install

UPM Git URL: `https://github.com/FunplayAI/funplay-unity-mcp.git\`

Or Funplay > Check for Updates in an existing install.