Skip to content

Cocos Creator verification

The acceptance environment was Cocos Creator 3.8.8 on Apple Silicon macOS. Confirm that both the Creator main and scene processes report the build ID in cocos-extension/dist/build-id.json before running acceptance.

Core contract and generated bindings

The pinned core exports 25 abstract base classes with 104 abstract members. Each of the 80 editor contract members maps to one distinct Cocos tool through paired IFACE and FUNC declarations. The other 24 members belong to four infrastructure contracts implemented in Python.

Core contract Python implementation
IEditorBridge CocosBridge
IPlugin CatalogPlugin
IPluginConfig PluginConfig
IPluginHost PluginHost

The Python coverage test checks the installed core exports for missing or duplicate mappings and verifies that the infrastructure implementations are concrete. The plugins register trusted compiled domains when the server starts, own their registered commands, and use project-local namespaced configuration. A new editor generation triggers the domain reload callbacks on reconnect. Plugin tests cover registration ownership, failure isolation, and reload while the published schema remains frozen for the lifetime of the server.

dsl/biome.project pins the sibling biome-dsl toolchain and the constructs at ../../biome-game-engine-core-mcp/dsl/constructs, relative to the manifest. The TOOL catalogs generate the Python MCP bindings, TypeScript editor tool specifications, and the documentation catalog. Tool tags such as scene_ready generate the editor preconditions. access.logic and access.contract compile the editor's decision policy for security, presets, and per-tool overrides. dsl/project.lock records the compiler lock and dsl/content-lock.json records hashes of generation inputs and outputs. The generator checks argument and effect expectations from the separate *.core-data records. Live fixture assertions check behavior against Creator state and persisted assets. Generated tool catalog

Build, unit tests, and DSL

Run from the repository root. The runtime quickstart needs no sibling checkouts. For DSL regeneration, use the revisions declared in dsl/biome.project: place the pinned biome-game-engine-core-mcp and biome-dsl checkouts alongside this repository. Access to the private biome-dsl repository is needed for this lane. If using BIOME_DSL_ROOT to point to a different directory, use that same checkout in the first command. Build its TypeScript workspace before invoking the generator. The compact output audit below uses a sibling biome-mcp checkout at the commit in server/uv.lock.

(cd ../biome-dsl/implementations/typescript && npm ci && npm run build)
uv sync --project server --locked
(cd cocos-extension && npm ci && npm run build)
uv run --project server pytest server/tests -m 'not live' -q
(cd cocos-extension && npm test)
python3 dsl/generate.py --check

On December 5, 2026, the unit run passed 28 Python tests (one live test deselected) and 53 Node tests. python3 dsl/generate.py --check checks the locked generated outputs, including the policy compiled from access.logic, and the tool expectations. Run the same command without --check to regenerate the outputs after editing the DSL sources.

Browser engine

On December 5, 2026, browser acceptance passed against the Creator 3.8.8 runtime. At depth 3 the Main fixture returned 4 nodes in 459 UTF-8 bytes. The capacity case returned 1,000 nodes, including the root, in 70,151 UTF-8 bytes and reported truncation. Browser acceptance commands

Native Creator and MCP stdio

From the repository root, create a disposable project and launch Cocos Creator 3.8.8. Set CREATOR_APP to your installed application path. If using the Dashboard import flow, select the new project directory.

RUN_DIR="$(mktemp -d)"
PROJECT="$(node cocos-extension/scripts/prepare-fixture.cjs "$RUN_DIR/project")"
printf '%s\n' "$PROJECT"
open -na "$CREATOR_APP" --args --project "$PROJECT"

Open Main.scene and wait for Scene ready in Extension → Biome MCP → Status. The fixture enables Creator 3.8.8's Laboratory preference Keep scene is mainloop running so the native animation clock advances while the editor is idle. If reusing an older disposable copy, enable that preference before the run. Keep the extension build fixed and the fixture free of manual edits throughout acceptance. The scripts change and save scenes in this copy.

On a cold launch, you can start and stop Creator's Game View before running acceptance. Wait for the preview to render before stopping it so the tests can exercise a ready preview.

Run the probe and validate its JSON report with jq. Both loaded build IDs must match the compiled artifact and scene_ready must be true before continuing.

BUILD_ID="$(node -p "require('./cocos-extension/dist/build-id.json').build_id")"
(cd cocos-extension && npm run acceptance -- --project "$PROJECT" --probe --report "$RUN_DIR/probe.json") &&
  jq -e --arg build "$BUILD_ID" '
    .outcome == "PROBE" and
    .hello.main_build_id == $build and
    .hello.scene_build_id == $build and
    .hello.scene_ready == true
  ' "$RUN_DIR/probe.json"

Once that check passes, run the formal sequence in order. Run Python unit tests first, then native Creator acceptance, then live MCP stdio.

uv run --project server pytest server/tests -m 'not live' -q &&
(cd cocos-extension && npm run acceptance -- --project "$PROJECT" --report "$RUN_DIR/native.json") &&
  jq -e '.outcome == "PASS" and (.successful_tools | length == 129)' "$RUN_DIR/native.json" &&
COCOS_MCP_PROJECT_PATH="$PROJECT" \
COCOS_MCP_EXPECTED_MAIN_BUILD_ID="$BUILD_ID" \
COCOS_MCP_EXPECTED_SCENE_BUILD_ID="$BUILD_ID" \
  uv run --project server pytest server/tests/live -m live -q

Native editor bridge acceptance and full-profile MCP stdio each exercise the 129 operations from the original fixture. The stdio suite checks catalog enumeration separately. The two lanes use shared scenario assertions for editor behavior, including the dirty-scene guard, save/reopen persistence, batch behavior, media assets, and policy rejections.

Native 3D fixture

Prepare a separate disposable project from test-project-3d. Set CREATOR_APP to the path to your installed Cocos Creator 3.8.8 application.

WORLD_RUN="$(mktemp -d)"
WORLD_PROJECT="$(node cocos-extension/scripts/prepare-fixture.cjs --3d "$WORLD_RUN/project")"
open -na "$CREATOR_APP" --args --project "$WORLD_PROJECT"

Open assets/Observatory.scene and wait for Scene ready in Extension → Biome MCP → Status. Run the world suite using the build produced by npm run build.

BUILD_ID="$(node -p "require('./cocos-extension/dist/build-id.json').build_id")"
uv run --project server --locked python tests/live_world_3d.py \
  --project "$WORLD_PROJECT" --build-id "$BUILD_ID"

The world suite exercises the eight 3D tools over full-profile MCP stdio. It checks native camera and light settings, local and world mesh bounds, projection, triangle picking, primitive and material persistence across a scene switch, and a PNG screenshot. The original fixture has a separate acceptance run.

Compact output audit

The audit in the sibling biome-mcp checkout measures UTF-8 bytes and o200k_base tokens from live MCP JSON-RPC response lines and CLI stdout.

Output Full profile or JSON Compact default
MCP tools/list 15,136 tokens 555 tokens
MCP tree 760 tokens 300 tokens
CLI tree 341 tokens 238 tokens

From this repository root, run the audit after setting up the Observatory fixture above.

AUDIT_DEPS="$(mktemp -d)"
uv pip install --target "$AUDIT_DEPS" tiktoken
(cd ../biome-mcp && PYTHONPATH="$AUDIT_DEPS" ../biome-cocos-mcp/server/.venv/bin/python \
  -m tests.live_engine_efficiency cocos --project "$WORLD_PROJECT" \
  --cli "$PWD/../biome-cocos-mcp/server/.venv/bin/cocos-mcp")

Creator UI

With the disposable project open, open Extension → Biome MCP → Status. With no client attached, look for Listening. Connect a configured MCP client, call get_editor_status, and keep the client session open to see Connected. Record the generation from the tool result, click Restart bridge, then call get_editor_status again. An earlier manual UI run observed a new generation and a successful fresh handshake.

In a clean Main.scene, use find_nodes to find FixtureParent. Rename it through rename_node and use Edit → Undo in Creator without saving. Verify the original name through get_node_properties and confirm the scene is clean. The earlier manual UI run repeated this twice and confirmed that the scene file was unchanged.

Run the native and stdio suites with serial authoring. Creator can change the active scene between the bridge check and the write, so keep the fixture free of concurrent GUI edits.