Unity-Open-MCP / scripts
AGENTS.md15 starsChanged 5 months agoMITView on GitHub
Rules for scripts/ — version sync, token-estimate codegen, and MCP test suites. Root AGENTS.md also applies. Human overview: scripts/README.md. - Never hand-edit generated targets. Run the owning script instead. - Version strings: node scripts/sync-version.mjs (shared trio) or --hub for Unity Hub Pro. Canonical contract: Maintainer versioning. - Lockstep release (set + commit + tag + push): node scripts/release.mjs X.Y.Z (wrapper around sync-version + token estimates; does not replace those tools). Push trio tags and the Hub tag in separate git…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
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
- 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
- unity-open-mcpSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 11
Never hand-edit generated targets.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
Scripts rules
Scope
Rules for scripts/ — version sync, token-estimate codegen, and MCP test
suites. Root AGENTS.md also applies. Human overview:
scripts/README.md.
Generated outputs
- Never hand-edit generated targets. Run the owning script instead.
- Version strings:
node scripts/sync-version.mjs(shared trio) or--hubfor Unity Hub Pro. Canonical contract: Maintainer versioning. - Lockstep release (set + commit + tag + push):
node scripts/release.mjs X.Y.Z(wrapper around sync-version + token estimates; does not replace those tools). Push trio tags and the Hub tag in separate git pushes (≤3 tags per command); GitHub skips tag webhook events when more than three tags are pushed at once. - Consuming projects are the opposite direction and never a generated target
here:
node scripts/switch-project-version.mjs <project> <X.Y.Z>rewrites another project's client-config npm pins and UPM#bridge-v/#verify-vpins. Keep its rewrite set aligned with the pin shapessync-version.mjsemits — a new pin surface indocs/setup/usually means a new one in the wild too. - Token estimates:
node scripts/generate-token-estimates.mjswritespackages/bridge/Editor/UI/BridgeToolTokenEstimates.cs. Regenerate after MCP tool schema, catalog, or group changes;--checkis advisory in CI. - Batch preflight schemas:
node scripts/generate-batch-schemas.mjsderivesBridgeBatchSchemas.csfrom MCPALL_TOOLS; regenerate after schema changes and verify with--check. - Coverage matrix (
gen-mcp-coverage-matrix.mjs) is internal/gitignored.
MCP suite selection
| Suite | Script | Use when |
| Smoke | mcp-smoke.mjs | Fast live health check |
| S0 | mcp-full-test.mjs | Registration/reachability for every tool |
| S1 | mcp-behavior.mjs | Strict behavioral paths |
| S2 | mcp-headless.mjs | Batch/offline with Editor closed |
| S3 | mcp-protocol.mjs | Stdio protocol |
| S4 | mcp-extensions.mjs | Embedded-domain chains |
| S5 | mcp-sandbox.mjs | Destructive lifecycle on a disposable clone |
Shared helpers live in mcp-test-lib.mjs (not run directly). Catalog detail:
docs/troubleshooting-contributors.md#mcp-test-suite-catalog. Build
mcp-server/ before live suites. Default project is ./demo.
Same-task mirrors
- Script behavior or flag changes that affect contributor workflows: update
scripts/README.mdand, when applicable,docs/troubleshooting-contributors.md. - Suite ownership of a new tool: keep the coverage matrix regenerable (no orphan registered tools).
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.

