init_unity_project
Build a GUID-to-asset-name cache from Unity .meta files to enable asset name resolution when parsing prefabs. Run once per project before parsing.
Instructions
Initialize a Unity project for use with this MCP. Scans all .meta files to build a GUID→asset name cache, enabling full asset name resolution in parse_unity_file.
WORKFLOW: Call this ONCE per project before using parse_unity_file or browse_unity_project. The cache is saved to .unity-mcp-cache.json in the project root and reused automatically.
For large projects (100GB+), this may take 10-30 seconds but only needs to run once per session or when assets change significantly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Force rescan even if cache exists. Default: false. | |
| projectPath | Yes | Path to Unity project root (the folder containing Assets/, ProjectSettings/, etc.). Required. |