Five terminal tasks
Watch the recorded tasks
Claude Code · Five short developer requests and the results observed in real tool runs.
Claude Desktop-style replay · An illustrative conversation using the same observed results, not a recorded Desktop or native MCP session.
System shell walkthrough · Cocos provides one-shot CLI commands, not a built-in REPL.
Read the Claude Code commands and outputs. Each terminal task also includes copyable commands and output below.
See how an adapter publishes operations backed by the shared editor contracts. To try the report validation itself, see the in-process verification example.
The first three tasks use the Cocos MCP CLI, a consumer of the library, because this repository does not ship a standalone CLI. They were recorded on Cocos MCP revision d8296de with its locked dependencies. The commands read local discovery data and do not open Creator, query a scene, or execute a tool.
Use Git, Python 3.11 or later and uv. Run the first three commands from the adapter checkout.
Prepare the example environment
git clone https://github.com/german-krasnikov/biome-cocos-mcp.git
cd biome-cocos-mcp
The contracts package does not install an executable, and the Cocos MCP adapter at the recorded revision does not expose a shell subcommand. Use the one-shot adapter commands below.
1. Find the combined verification command
Identify the operation that pairs reference and compile observations.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp describe verify_after_change
verify_after_change() [RO]
Check active-scene asset references and Creator’s latest observed compilation status.
2. Inspect compilation errors
Distinguish a read of the latest errors from a request to refresh assets.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp describe get_compile_errors
get_compile_errors() [RO]
Read errors reported by the latest Creator script compilation.
3. Find the reference scan
Confirm which scope the adapter declares and how it treats missing references.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp describe validate_references
validate_references() [RO]
Check project asset references in the active scene and count missing references as errors.
The last two tasks use the project library directly. Run them from your checkout of this repository, using the checked-in example script.
4. Validate an editor verification report
From your Biome Editor Contracts checkout, parse a representative native JSON report with the actual validator. An idle compiler does not erase the reference findings.
Command and recorded output
uv run --locked python docs/gallery-example.py verify
Compiler: idle
Reference scan: 1 missing, 2 errors (active scene)
5. Distinguish unavailable and idle compile states
From your Biome Editor Contracts checkout, project two fixture reports with the same error count but different observation flags. Neither requires launching an editor.
Command and recorded output
uv run --locked python docs/gallery-example.py compile
No compiler observation: unavailable
Observed idle compiler: idle