Releasing (Maintainers)
This fork distributes the Unity package from Git and the Python server from a commit-addressed GitHub archive. Publish fork releases through GitHub Releases. The beta branch is the moving source branch; the version suffix and GitHub prerelease flag determine a release's channel independently of the branch name. A GitHub release is separate from documentation deployment and does not imply PyPI, Asset Store, OpenUPM, pre-built Docker image, or MCPB publication.
Fork versioning
The fork owns its SemVer series independently of the original project's 10.3.x versions. Unity-package and Python-server versions describe their respective fork components and can evolve independently; the Unity package's immutable mcpServerSource selects the matching server commit.
The first stable fork release is tagged ykh09242-v1.0.0, with both Unity and Python component versions initially 1.0.0. Fork tags use the ykh09242-v prefix to avoid collisions with inherited upstream tags such as v1.0.0; never replace those historical tags. Publish the fork tag as a stable GitHub release rather than a prerelease after the release checks pass. Later component versions can be maintained independently.
Record the original project's version and commit as the upstream baseline, not as the fork's release version. A -beta.N suffix identifies a preview version, which should also be marked as a prerelease on GitHub. Do not imply a stable release until the maintainer selects and publishes one.
Update component versions
Run the version helper from the repository root, replacing the version placeholders with the desired versions independently:
python tools/update_versions.py --component unity --version X.Y.Z
python tools/update_versions.py --component server --version A.B.C
unity is the default component and updates MCPForUnity/package.json and the root manifest.json. server requires an explicit --version and updates only Server/pyproject.toml and its own distribution entry in Server/uv.lock. Neither mode changes the immutable server or skill pin or couples the component versions.
After a server version change, test and commit the server files, then manually repin the Unity package and root manifest to that verified server commit using the procedure below. --component all is the legacy synchronized upstream mode, explicitly used by the upstream release workflow; use the independent modes for this fork.
When preparing a stable release, also update the current release links and version examples in README.md and website/docs/getting-started/{index,install,migrate}.md. The version helper does not rewrite these authored pages. Keep historical release references unchanged. Before committing the final package, run python -m pytest ../tools/tests/test_fork_documentation.py from Server/ with the existing development environment; this checks the canonical install tag and pinned launch examples against package metadata.
Prepare a pinned source version
- Verify the server changes and commit them in the fork.
- Record the full immutable server commit in
MCPForUnity/package.jsonasmcpServerSource, usinghttps://github.com/ykh09242/unity-mcp/archive/<40-hex-commit>.zip#subdirectory=Server. Keep the rootmanifest.jsonserver invocation's--fromargument identical; the metadata contract test enforces this alignment. The archive bypasses Git for Windows checkout limits without global Git or OS configuration changes. - Verify the Unity package uses that source by default and that
Server/pyproject.tomlnames the distributionykh09242-unity-mcp-server. - Run the relevant Python, Unity compile, metadata, and documentation checks.
- Commit the Unity package and documentation changes. Users can replace the preview URL's
#betawith that Unity-package commit SHA for reproducibility.
A server commit and a Unity-package commit need not be the same: the latter records the former's immutable source.
Validate the selected server commit
Run the focused regression suite using the source, tests, pyproject.toml and uv.lock committed at the selected server SHA S. A clean checkout of S or a fresh extraction of git --no-replace-objects archive S Server tools works before S is pushed. Use uv 0.13.7 and Python 3.14. From that copy's Server/ directory, run:
UNITY_MCP_DISABLE_TELEMETRY=1 uv run --python 3.14 --locked --extra dev python -m pytest \
tests/test_editor_stall_diagnostics.py tests/test_preflight_response_lifetime.py \
tests/test_build_polling_contract.py tests/test_build_public_contracts.py \
-q -W error --tb=short --junitxml=test-results.xml
Require all cases to pass. The suite exercises stalled Editor diagnostics and preflight, preflight response ownership, and build polling from the acknowledged job ID through terminal state, including the registered MCP and CLI boundaries. Commit any needed test corrections before selecting S. The runtime drift check excludes Server/tests/, so equal runtime inputs alone do not establish that S contains or passes the corrected regression tests.
The existing Immutable server source workflow runs this suite from an exact checkout of S when the pin changes on a covered PR or beta push, or when dispatched with require_current=true. Exact beta release qualification also requires the suite and compares its tested SHA to the server selected by the receiving package. CI retains the associated execution log and JUnit report for S. Keep local execution records as local verification. The checked release evidence block uses the actual hosted execution and its saved records.
Prepare the independent skill pin
Before starting its licensed jobs, exact beta release qualification checks that the receiving commit's server inputs match its launcher pin and that both skill directories match the pinned skill commit. This applies to licensed beta pushes and manual dispatches. The standalone server drift check remains advisory for ordinary intermediate changes to server inputs while the existing pin is unchanged.
Verify both skill copies against the intended Unity contracts, then commit that content as C. In a later package commit P, declare the full C as mcpSkillRevision in MCPForUnity/package.json. Keep mcpServerSource independent: a verified server commit does not establish a verified skill revision. Do not try to make a commit contain its own SHA.
Run python tools/check_skill_pin.py --repo . --verify-git after preparing the package. It checks locally available committed content and both current mirrors without fetching or changing the pin. Missing history is an explicit failure. The package commit P, selected server commit S and selected skill commit C can all differ.
Connect capabilities to actual evidence
Keep the normal release summary and PR links. Add the two compact tables below to the manually prepared fork GitHub release body. Generated Upstream Release History, website/release-metadata.json and the inherited release synchronizer remain upstream history.
This is a template, not a release or verification result. Replace every P/S/C/version/URL placeholder with actual committed inputs and retained links. The checker rejects unresolved placeholders. The example native row is valid only when that scenario was genuinely not run; an executed scenario must not be relabelled to fit the template.
<!-- release-evidence:start -->
| Component | Version | Immutable input |
| --- | --- | --- |
| Unity package | X.Y.Z | [P](https://github.com/ykh09242/unity-mcp/commit/P) |
| Python server | A.B.C | [S](https://github.com/ykh09242/unity-mcp/archive/S.zip#subdirectory=Server) |
| Client skill | not separately versioned | [C](https://github.com/ykh09242/unity-mcp/commit/C) |
| Capability / scope | Component | Verification kind | Actual result | Tested input | Evidence |
| --- | --- | --- | --- | --- | --- |
| Native scenario not executed | unity | native-editmode | not-run | none | [native-policy](https://github.com/ykh09242/unity-mcp/blob/P/docs/development/ci-validation.md) |
<!-- release-evidence:end -->
Inside this block, use exactly these headers and values:
- Component: one of
unity,server,skill, with one component per verification row. The component table's versions and immutable links must match metadata read at P, the server version read at S, and the independent skill pin C. The server archive must also match the manifest's--from. - Verification kind:
python,compile,package-preparation,native-editmode, ornative-playmode. Compilation, package preparation and Editor execution establish different facts. - The Actual result cell accepts
passed,failed,skipped,not-run, orhistorical. Successful Python, EditMode and PlayMode runs with skipped cases use the counted form below. Keep the environment and individual case outcomes in the linked records. - Tested input:
commit:followed by the full lowercase 40-hex actual tested commit. Passed/current rows must match the selected component input P, S or C. Skipped/not-run rows usenone. Historical local-native rows usepartial:followed by the full lowercase SHA256 of their original nonempty source map. - Evidence: exactly one
[ID](HTTPS_URL)link, with a unique lowercase ID matching[a-z][a-z0-9-]{0,63}. Retain the actual job/bundle, results and input records at that link. Local paths alone are not public retention.
A historical row still requires actual supported executed records with their original result, counts and environment. Local partial source maps cannot prove completeness, even when every remaining entry matches P. They are historical-only; deleting a source/test/metadata/config entry cannot turn them into current-release evidence. This first format has no complete-local-inventory adapter.
Manual/live E2E and other unsupported executed records stay in truthful prose outside the checked block with their original links. Their kinds are rejected inside the block for every result. Do not disguise an executed unsupported record as not-run or evidence-free historical. Failed jobs that never produced the required execution records also stay outside the block as infrastructure failures; do not invent results for them.
Record successful test runs with skips
Use plain passed when every case passed. For a successful Python, EditMode or PlayMode job with expected platform skips, write the actual counts in the result cell, for example 37 passed, 2 skipped. Both counts must be positive and match the saved JUnit or NUnit cases. The job must have zero failures, errors or inconclusive cases. Identify the platform in the scope and retain the report with the skipped cases and their reasons. A required test case must pass even when the suite allows unrelated platform skips.
Validate the prepared body offline
python tools/check_release_evidence.py --repo . --package-commit FULL_P --notes PATH_TO_PREPARED_BODY --evidence-index PATH_TO_LOCAL_INDEX
The helper reads explicit local Git objects, including metadata at P and server metadata at S. It disables lazy fetching and Git replacement objects. It never checks out files, fetches history, executes note content, calls a provider, runs tests or publishes anything. An unavailable object or unsupported Git read option fails closed. Exit 0 means the supplied block agrees with its committed inputs and saved records; human review still owns feature coverage, retained public evidence and any later publication decision.
The local, untracked index has exactly schema_version: 1 and an evidence object keyed by the IDs in the table. Each entry has origin, kind, public_url and files. Executed, associated CI entries also have the originating execution_id from their log record. Its URL/kind must equal the row. Each file role maps to { "path": "relative-file", "sha256": "full-lowercase-digest" }; files must be ordinary local files under the index directory. Duplicate keys, linked/escaping paths, missing/extra roles, changed digests and verdict/count overrides fail.
| Origin and row | Required roles |
|---|---|
github-actions, associated compile | workflow, job, checkout, log, execution-log |
github-actions, associated package-preparation | workflow, job, checkout, log, execution-log, preparation |
github-actions, associated python or either native kind | workflow, job, checkout, log, execution-log, results |
github-actions, skipped | workflow, job, plus a nonempty reason; tested input none |
local-native, historical native only | invocation, inputs, log, results |
policy, not-run only | Empty files object and a nonempty reason; tested input none |
CI executed rows support passed, failed or historical records. The workflow/job files are saved raw GitHub Actions REST objects with consistent repository/run/job URLs, IDs and completed status. For executed CI rows, checkout and log must contain identical bytes of the same complete saved job log; independent checkout snippets or another execution log fail. The checkout reader accepts the timestamped raw job log (or gh tab-prefixed equivalent, including its initial BOM wrapper) containing one repository checkout and its full git log -1 --format=%H output, before removal of checkout auth. Untimestamped relative-path continuations are recognized only for setup-uv's cache-dependency-glob and upload-artifact's path inputs inside their action preambles; those payloads cannot supply checkout evidence. Original log bytes and digest checks remain unchanged. API head_sha alone does not establish the actual checkout, especially for PR merge tests. Retain the trigger head separately; a legitimate actual PR merge checkout can differ and remains authoritative when its execution is bound to that same job log.
execution-log contains the exact wrapped command output or the observed native Editor log. It must contain actual compiler-stage output, Python/pytest invocation and version, or the Editor version/platform/runner ending for its kind. Python results are UTF-8 pytest JUnit; native results are UTF-8 Unity NUnit XML. Other encodings and DTD/entity declarations are unsupported. Counts and actual cases must agree. Both successful native result forms require the runner and the originating job to succeed, including any required-case checks in that job. Failed combined batches cannot be promoted by extracting a passing family. preparation is the actual resolved-packages.json emitted by the existing Unity package preparer. Historical local-native supports the existing invocation.json, nonempty source-identities.json, actual Editor log and NUnit XML only. No generic passed boolean replaces these records.
Associate execution and saved outputs
tools/release_execution.py emits UNITY_MCP_EXECUTION JSON records into the full job log. For Python, compilation and package preparation, the same execution step wraps the actual command, refuses preexisting result/receipt paths, captures its output in a fresh .release-evidence/EXECUTION_ID/ directory and emits completion with the process exit code and output SHA256 digests. Missing outputs cannot establish completion. Save the exact attached XML/receipt and command log; do not manufacture a completion record when collecting older results.
For native GameCI actions, a reservation step creates a fresh nonce directory and declares the exact editmode-results.xml/editmode.log or playmode-results.xml/playmode.log paths. The actual runner receives this directory as artifactsPath. A distinct later observation step hashes those files and records the runner's raw outcome. Domain-reload, regular and optional integration runners have separate reservations. An observation is not an originating process exit record. Missing, skipped or unavailable execution cannot become a current pass. The existing NUnit body, scenario and reload gates remain required independently.
Each record binds repository, run ID, run attempt, workflow job key, exact row-qualified execution step name, actual checkout and execution ID. The job key is the YAML identifier, not the numeric REST job ID. The consumer maps the named execution, reservation and observation steps to the saved numeric job's actual step numbers and timestamps; it checks the emitting step boundaries, attempt start, ordered native lineage and output digests. Save the workflow object for the corresponding attempt (GET /repos/OWNER/REPO/actions/runs/RUN_ID/attempts/ATTEMPT_NUMBER) and that job's completed REST object with its steps array. No job.run_attempt field is invented. Actual checkout remains authoritative when the workflow head differs. These associations detect accidentally mixed records; they do not authenticate evidence supplied by a malicious maintainer.
Older CI records without this association are accepted only as historical. Omit execution_id and execution-log, add exactly "association_limit": "Execution-to-output association was not recorded." to the entry, and end the row's capability label with (legacy unbound). Retain the former required roles and actual checkout identity. The visible limitation prevents old records from silently establishing a current pass or failure. Skipped jobs and policy not-run rows retain their existing contracts and require no execution record.
The index points to existing results; it is not a second result database. No dedicated CI, application or publication workflow is introduced. See the repository's CI validation policy for execution and skip boundaries.
Retain a portable evidence directory
After saving the actual run/job objects, full job logs and required reports in the index format above, export the prepared evidence to a new local directory:
python tools/export_release_evidence.py export --repo . --package-commit FULL_P --notes PATH_TO_PREPARED_BODY --evidence-index PATH_TO_LOCAL_INDEX --destination PATH_TO_NEW_BUNDLE
python tools/export_release_evidence.py verify --repo . --bundle PATH_TO_NEW_BUNDLE
The exporter validates with check_release_evidence.py, then copies the original notes and exactly the referenced saved records. It preserves the existing index format in evidence.json, changing only its file paths to content-addressed copies; identical checkout/log bytes share one copy. bundle.json records the exact selected package, server and skill commits and SHA256 hashes for the notes, index and saved records. Retain the whole directory together. The original index and files can then move independently; verification of the exported directory detects missing, modified or unlisted files and rechecks the original evidence contract.
Both commands are offline. Verification still requires an explicit local repository with the selected Git objects; the directory is an evidence archive, not a source-history archive. Missing history fails without fetching. Hashes detect file changes relative to the manifest; they do not authenticate its author. Review and retain the manifest through the same trusted process as the records.
The destination's parent must already exist. Existing destinations, parent traversal, symbolic links and Windows reparse points are rejected; no files are overwritten. If writing fails, the incomplete directory remains for inspection and the success manifest is absent. Choose a new destination for another attempt. Export does not retrieve provider records, execute checks, upload evidence, publish a release, or create credential files. Public evidence retention and any publication remain separate maintainer actions.
Publish a fork GitHub release
Lead with a task someone can now complete, the problem they used to encounter, and the change they will see. Give a real command, Editor action, or before-and-after result when it helps readers try the feature. State the conditions behind any measurements and call out upgrade steps that affect existing projects. Keep the highlights in the fork changelog. On GitHub Releases, follow them with the versioned UPM URL and comparison link. Put detailed verification tables inside a collapsible section and keep material compatibility limits visible.
- Select the fork version and whether it is a prerelease or stable release. Complete exact beta release qualification for the prepared Git version and validate its prepared release evidence block.
- Create a fork release tag on the verified commit, then publish its GitHub release with the selected prerelease state and any explicitly prepared assets. Publication is a manual maintainer operation; it does not use the upstream release workflow.
- Explain the fork changes, identify the Unity and Python component versions, immutable server and skill commits, and actual bounded verification evidence, and credit the original MIT authorship. Link the upstream version and commit as the baseline.
- Verify the published tag, target commit, release notes, prerelease state, and attached assets. Users can pin the Unity Git installation URL to the verified fork tag or commit.
Only tags and releases actually created for this fork belong on Fork Releases. Do not relabel inherited upstream tags or release bodies as fork releases. The Upstream Release History page and release-metadata.json intentionally retain CoplayDev history.
Legacy upstream automation
The inherited release and release-note synchronization workflows are restricted to the upstream repository. They are not a fork publication procedure. Their historical PyPI, Docker, and MCPB steps must not be used as evidence that those fork channels exist.