Skip to content

Biome Cocos MCP

Build and position a live Cocos Creator checkpoint, then verify its scene state.

Claude Code-style workflow replay

Illustrated from an actual Claude Code session. The recorded requests and CLI results are below the previews.

Illustrative Claude Desktop-style replay

Illustrated Claude Desktop-style conversation showing the same CLI-verified workflow. This is not a recording of an MCP session.

Verified system-shell walkthrough

A system-shell walkthrough. The installed CLI has no built-in interactive prompt.

Published documentation

Quickstart

Use the installed cbiome command. The original cocos-mcp launcher remains available.

With the bundled Main.scene open in Creator and the project selected (see setup below), read two levels of nodes.

server/.venv/bin/cbiome tree --depth 2 --limit 20 --no-ids
Main
  FixtureParent
    Twin
  Twin

This is a read-only command. The two Twin nodes have different paths.

Setup and prerequisites Read the node tree from a disposable copy of the bundled `Main.scene`. The native workflow was verified with **Cocos Creator 3.8.8 on Apple Silicon macOS**. Run the commands from a checkout with Python 3.11+, Git, [uv](https://docs.astral.sh/uv/), and Node.js with npm. The Python lock fetches pinned Git dependencies ([`biome-editor-core`](https://github.com/german-krasnikov/biome-game-engine-core-mcp) and [`biome-mcp`](https://github.com/german-krasnikov/biome-mcp)).
uv sync --project server --locked --no-dev
(cd cocos-extension && npm ci && npm run build)
RUN_DIR="$(mktemp -d)"
PROJECT="$(node cocos-extension/scripts/prepare-fixture.cjs "$RUN_DIR/project")"
printf '%s\n' "$PROJECT"
The fixture script prints the path of the copy and links the built extension into it. Add that folder in the Creator Dashboard, or use the macOS command below with your own app path.
CREATOR_APP="/Applications/CocosCreator/Creator/3.8.8/CocosCreator.app"
open -na "$CREATOR_APP" --args --project "$PROJECT"
Open `assets/Main.scene` in the Creator Assets panel. If needed, enable `biome-mcp` in **Extension → Extension Manager**. In **Extension → Biome MCP → Status**, wait for **Listening** and **Scene ready**. In the same terminal, select the disposable project before running the tree command above.
export COCOS_MCP_PROJECT_PATH="$PROJECT"
If the CLI cannot connect, run `server/.venv/bin/cbiome doctor` and check for `"state": "Up"` and `"scene_ready": true`.

Five tasks with copyable commands and actual output

Use your own project

With the project closed in Creator, copy the built extension into it. Run this from the repository root for a first install.

PROJECT="/absolute/path/to/your-cocos-project"
mkdir -p "$PROJECT/extensions/biome-mcp"
cp -R cocos-extension/package.json cocos-extension/dist cocos-extension/static \
  "$PROJECT/extensions/biome-mcp/"

Reopen the project and check the status panel and doctor as above. If you rebuild the extension, refresh the copied files and reload it in Creator’s Extension Manager.

Connect an MCP client

Use the executable from the locked environment. For clients that use mcpServers JSON, set both absolute paths.

{
  "mcpServers": {
    "cocos": {
      "command": "/absolute/path/to/biome-cocos-mcp/server/.venv/bin/cbiome",
      "args": ["serve"],
      "env": {
        "COCOS_MCP_PROJECT_PATH": "/absolute/path/to/your-cocos-project"
      }
    }
  }
}

The default profile exposes four discovery, help, read, and edit tools. Search with discover_tools and inspect a signature with tool_help. Use ["serve", "--profile", "full"] to expose individual tool schemas.

The editor publishes its loopback endpoint under temp/biome-mcp/ in the project. Use discovery unless you need to supply a known port through COCOS_MCP_PORT. Creator applies project access settings when each tool runs. Keep manual edits and MCP writes serial. After a lost write response, inspect the current scene or asset before retrying.

Demos and reference

Play or download the Cocos browser demos. These standalone HTML demos do not require Creator or use the editor bridge. The disposable Creator fixtures are the examples for testing MCP against a native scene.

License

The first-party code and documentation are licensed under the MIT License.