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.
Interactive CLI · The framework example opens its own shell. The Cocos adapter’s catalog commands run in the ordinary terminal.
Read the Claude Code commands and outputs. Each terminal task also includes copyable commands and output below.
See how a consumer uses the shared CLI for discovery, signatures, effect labels, and installed skills.
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 Cocos adapter’s CLI does not expose a shell subcommand. Task 4 demonstrates the framework’s REPL through a separate local Python example.
1. Find the asset lookup tool
Locate a command before supplying an asset selector.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp list get_asset_info
get_asset_info
2. Read the scene tool schema
Check which arguments the scene read accepts and note its read-only effect.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp describe get_scene_tree
get_scene_tree(depth:int=3, format:string="json", root_id:string="", max_nodes:int=1000, include_ids:bool=false) [RO]
Inspect the active scene hierarchy.
3. Find the installed batch skill
Discover the local operation instructions without starting an MCP server.
Command and recorded output
uv run --project server --locked --no-dev cocos-mcp skills
cocos-batch Inspect and edit a Cocos Creator scene using execute_batch.
The last two tasks use the project library directly. Run them from your checkout of this repository, using the checked-in example script.
4. Run a tool in the example shell
Launch a small CLI built with the framework’s BiomeCLI and MCPToolProvider. It uses the library’s REPL and a local FastMCP tool. This is the checked-in Python example, not a command installed by the library or provided by cocos-mcp. Run it in an interactive terminal with Python’s readline module available.
Command and recorded output
uv run --no-dev python docs/gallery-example.py shell
Interactive shell. Type 'help' for commands, Ctrl-D to exit.
capture> help
Usage: capture <command|tool> [args]
Commands:
help Show this help or help for a command
list List available tools
describe Show tool schema and parameters
call Call a tool (shortcut: <tool> [key=value ...])
batch Execute batch DSL
shell Interactive REPL with tab-completion
serve Start MCP stdio server
capture> frame_count seconds=12 fps=24
288
capture> exit
The example exits to your ordinary terminal when you type exit or press Ctrl+D. The terminal reel abbreviates the help menu and runs clear only after returning to the terminal.
5. Execute a dependent batch
From your Biome MCP checkout, estimate capture storage. The executor passes the first step’s frame count into the storage calculation as a named result reference.
Command and recorded output
uv run --no-dev python docs/gallery-example.py batch --seconds 12 --fps 24 --kib-per-frame 128
Capture length: 288 frames
Estimated storage: 36,864 KiB