v0.3.2
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]vsafterAssemblyReloadordering races,EditorApplication.isCompilingstill being true when the delayCall fires, the service provider not yet being available, and duplicate scheduling. The restart now retries viaEditorApplication.updateuntil the editor is settled. - HTTP transport start retry.
HttpMCPTransport.StartAsyncretries for ~10 seconds (40 × 250 ms) when the port is briefly held by an unwinding listener after AppDomain transition. Eliminates residualAddress already in usefailures on fast reload scenarios. - Deferred pending-function completion.
DomainReloadHandler.CompletePendingFunctiondefers 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_recompilerejects Play Mode calls. Unity does not process script compilation or domain reloads while playing. The tool now returns a clear error: callexit_play_modefirst, 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:
- After
enter_play_mode, the HTTP server is briefly unreachable while Unity reloads the domain — polltools/listorget_reload_recovery_statusuntil it responds before issuing the next call. request_recompileis rejected during Play Mode and must be preceded byexit_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.