agentleFS
AlexeyPerovAlexeyPerov/Unity-Open-MCP/scripts/AGENTS.md

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…

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
  1. Distinctive:

    Never hand-edit generated targets.

    line 11

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 --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 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-v pins. Keep its rewrite set aligned with the pin shapes sync-version.mjs emits — a new pin surface in docs/setup/ usually means a new one in the wild too.
  • Token estimates: node scripts/generate-token-estimates.mjs writes packages/bridge/Editor/UI/BridgeToolTokenEstimates.cs. Regenerate after MCP tool schema, catalog, or group changes; --check is advisory in CI.
  • Batch preflight schemas: node scripts/generate-batch-schemas.mjs derives BridgeBatchSchemas.cs from MCP ALL_TOOLS; regenerate after schema changes and verify with --check.
  • Coverage matrix (gen-mcp-coverage-matrix.mjs) is internal/gitignored.

MCP suite selection

SuiteScriptUse when
Smokemcp-smoke.mjsFast live health check
S0mcp-full-test.mjsRegistration/reachability for every tool
S1mcp-behavior.mjsStrict behavioral paths
S2mcp-headless.mjsBatch/offline with Editor closed
S3mcp-protocol.mjsStdio protocol
S4mcp-extensions.mjsEmbedded-domain chains
S5mcp-sandbox.mjsDestructive 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.md and, when applicable, docs/troubleshooting-contributors.md.
  • Suite ownership of a new tool: keep the coverage matrix regenerable (no orphan registered tools).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.