unity-open-mcp
Skill15 starsChanged 5 months agoMITView on GitHub
Inspect, modify, validate, and test Unity projects through Unity Open MCP, including live Editor recovery and offline asset work.
In this repository26 other files it gives its agents.
- AGENTS.mdAGENTS.md
- demo/AGENTS.mdAGENTS.md
- hub/AGENTS.mdAGENTS.md
- mcp-server/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- animationSkill
- audioSkill
- cinemachineSkill
- constraintsSkill
- input-simulationSkill
- inputsystemSkill
- lightingSkill
- memoryprofilerSkill
- navigationSkill
- particlesystemSkill
- probuilderSkill
- shadergraphSkill
- splinesSkill
- spriteatlasSkill
- terrainSkill
- textureSkill
- tilemapSkill
- timelineSkill
- uiSkill
- vfxSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Use exact schemas, scoped mutations, and gate evidence to work on the selected Unity project.
- Very specific: line 14
Prefer typed tools. Use canonical asset_path, game_object_path, component_type, and property_path from the exact schema.
- Distinctive: line 19
Never launch a second Unity instance for the same project.
- Very specific: line 20
Never silently discard dirty scenes or bypass lifecycle guards.
- Very specific: line 22
Run one test request at a time.
- Distinctive: line 27
Before browsing or activating unfamiliar tools: Discovery and groups.
- Very specific: line 29
Before scene switches, play transitions, snippets, or choosing live/batch/offline routes: Routing and lifecycle.
- Distinctive: line 30
Before batching, interpreting a failed gate, or applying fixes: Batch and gates.
- Distinctive: line 31
Before file-level repair, YAML edits, or offline asset investigation: YAML and offline work.
- Distinctive: line 32
Before screenshots, event capture, or test runs: Senses and tests.
- Very specific: line 51
Use the always-visible unity_open_mcp_jobs for explicitly supported asynchronous operations.
- Very specific: line 59
After start, call status; a queued acknowledgement is not completion.
- Very specific: line 61
Keep the job id and the same project/port/agent identity for status, wait, cancel and list.
- Very specific: line 68
Wait on error.job.jobId via jobs (owner only), use typed reads meanwhile, retry once.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Unity Open MCP
Use exact schemas, scoped mutations, and gate evidence to work on the selected Unity project.
Core workflow
- Discover a tool with
unity_open_mcp_capabilities(tool_name: "unity_open_mcp_component_modify"), or browse withqueryandpage_size. Exact lookup returns one complete schema and example. Never request the full unpaged catalog. - Activate the needed tools with
unity_open_mcp_manage_tools(action: "activate_for", intent: "…"). If list refresh is unavailable, use itsinvokeaction withtool_nameandarguments. - Confirm the target project and live state with
ping/bridge_status; use the instance lock’s port, never a hardcoded port. Offline reads andread_compile_errorsdo not require a live bridge. - Prefer typed tools. Use canonical
asset_path,game_object_path,component_type, andproperty_pathfrom the exact schema. Start compact and page reads; expand only the relevant slice. - Scope mutations with nonempty
paths_hint, then inspectgate.deltaandagentNextSteps. Mutation success does not prove project safety. Validate and test the affected scope.
Non-negotiable safety
- Never launch a second Unity instance for the same project. A live PID with an unavailable bridge requires recovery, not another launch.
- Never silently discard dirty scenes or bypass lifecycle guards. Pure
read_onlysnippets must not write, refresh, compile, switch scenes, or change play state; this flag is an assertion, not a sandbox. - While the Editor is reachable, prefer typed live edits. Never directly edit an open/dirty scene or asset YAML. Explicitly identify necessary file repair as the offline-file route; preserve GUID/fileID links, check the intended scene, then reimport/reserialize and run scoped validation.
- Run one test request at a time.
run_idnames the started run, not a poll handle. Do not retry an unresolved run or put server-polled tests/recovery tools in a live batch. - Batch arguments are validated before step zero. All-read batches need no mutation scope; mixed batches require aggregate scope. A failed mutation with a skipped gate has not passed validation.
Load only the reference needed now
- Before browsing or activating unfamiliar tools: Discovery and groups.
- On compile errors, reloads, Safe Mode, or a live PID with no bridge: Compile and Safe Mode.
- Before scene switches, play transitions, snippets, or choosing live/batch/offline routes: Routing and lifecycle.
- Before batching, interpreting a failed gate, or applying fixes: Batch and gates.
- Before file-level repair, YAML edits, or offline asset investigation: YAML and offline work.
- Before screenshots, event capture, or test runs: Senses and tests.
Project-owned commands
Use unity_open_mcp_project_commands(action="list", query="…", limit=20) to
find project commands; page using nextOffset. Always describe an exact catalog id
with action="describe", id="project.owner.command" for its schema, safety
metadata and availability diagnostics. This tool stays visible regardless of
active groups and reads fresh metadata after recompilation. Invoke with action="invoke", command_id="project.owner.command", args={...}.
The server revalidates a fresh schema; optionally pin schema_version from describe.
Supply paths_hint for mutations without declared paths; gate and dirty-scene
options stay outside args. Check mutation.output.result and the normal gate /
lifecycle envelope. After timeout or reload, inspect post-state before retrying.
For an async command, use jobs with its exact id and the invocation envelope
in job args. Do not bypass unavailable commands with reflection or nest project
commands in batch_execute.
Asynchronous job observation
Use the always-visible unity_open_mcp_jobs for explicitly supported asynchronous
operations. start requires tool_or_command, adapter args, and an
idempotency_key. Supported targets are unity_senses_run_tests (ordinary test
filters, no caller run_id, cancellation unsupported) and available async project
commands (args: {args: {...}, gate, paths_hint}). Read terminal project-job gate
results even on failure/cancellation. An unsupported target must not be retried as
an arbitrary background tool.
After start, call status; a queued acknowledgement is not completion. Use bounded
wait calls until terminal, then inspect the retained result and gate.
Keep the job id and the same project/port/agent identity for status, wait,
cancel and list. A wait timeout leaves execution running. Reuse the same key
and arguments after a start response is lost. Cancellation is cooperative and may
be unsupported. Treat orphaned as an unknown outcome; inspect operation evidence
before retrying. Records and keys expire 30 minutes after completion and are lost
on server restart. job_busy means a project job owns the Editor: mutations, Editor-state
writes, test starts and every execute_csharp (even read_only: true) are refused.
Wait on error.job.jobId via jobs (owner only), use typed reads meanwhile, retry once; never loop-retry. See Routing and lifecycle.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

