Biome libGDX MCP¶
Build a colored checkpoint in a running libGDX world and verify the result.
Illustrated from an actual Claude Code session. The recorded requests and CLI results are below the previews.
Illustrated Claude Desktop-style conversation showing the same CLI-verified workflow. This is not a recording of an MCP session.
A system-shell walkthrough. The installed CLI has no built-in interactive prompt.
Quickstart¶
Use the installed lbiome command. The original libgdx-mcp launcher remains available.
With the bundled 3D fixture running and its project selected (see setup below), read its live hierarchy.
server/.venv/bin/lbiome tree --world --no-ids
3D world [6 objects]
"Floor"
"Tower"
"Rotor"
"Beacon"
Excerpt from the bundled fixture. The command reads the registered objects without editing them.
Setup and prerequisites
Install Git, Python 3.11 or later, [uv](https://docs.astral.sh/uv/), and a native JDK 21. Use a graphical macOS session for the tested LWJGL3 desktop path. The repository includes the Gradle wrapper. From a shell, clone the repository, install the locked Python server, and launch the fixture.git clone https://github.com/german-krasnikov/biome-libgdx-mcp.git
cd biome-libgdx-mcp
uv sync --project server --locked
export JAVA_HOME="$(/usr/libexec/java_home -v 21)"
./gradlew :test-project-3d:run
export LIBGDX_MCP_PROJECT_PATH="$(pwd -P)/test-project-3d"
Integrate your own desktop game · Tool catalog · Verification guide · Browser demo gallery
The demos are standalone browser games. They do not connect to the MCP bridge or demonstrate native runtime compatibility with web exports.
Five tasks with copyable commands and actual output
Configure an MCP client¶
Use the installed executable as a local stdio server. Replace both path placeholders with absolute paths for your machine. Set the project path to the exact directory passed to the Java runtime. Use the directory for the fixture you launched, either test-project-3d or test-project.
{
"mcpServers": {
"libgdx": {
"command": "/path/to/biome-libgdx-mcp/server/.venv/bin/lbiome",
"args": ["serve"],
"env": {
"LIBGDX_MCP_PROJECT_PATH": "/path/to/libgdx-project"
}
}
}
}
The runtime publishes a discovery record in the project's temp/biome-mcp/ directory and listens on 127.0.0.1. The default port is chosen automatically. If you have configured a fixed port, LIBGDX_MCP_PORT can select an existing discovery record on that port. set_mcp_port takes effect at the next bridge restart.
The Python stdio server and Java runtime use TCP protocol version 2. Upgrade them together. The server checks the protocol and command vocabulary at the handshake before it sends an engine command. Java operations run on the game’s render thread.
CLI and MCP profiles¶
The generated catalog describes 156 engine tools, including 21 for the 3D world. By default, libgdx-mcp serve advertises four MCP tools. Search the catalog with discover_tools, inspect a signature with tool_help, and dispatch by effect with read_game_tool or edit_game_tool. Set the client's arguments to ["serve", "--profile", "full"] to advertise the individual typed engine tools used by existing clients.
Run libgdx-mcp skills to list installed skills and libgdx-mcp skills libgdx-batch to read the batch guide offline. Both MCP profiles publish the guide as the native skill skill://libgdx-batch/SKILL.md, the batch_guide prompt, and the biome://skills/libgdx-batch resource.
libgdx-mcp list world
libgdx-mcp describe get_world_tree
libgdx-mcp tree --world --depth 2 --limit 20 --ids
libgdx-mcp call get_editor_status '{}' --fields state --etag
libgdx-mcp call screenshot_game '{}' --image ./capture.png
list and describe work offline. tree and call use the configured live project. Use tree --world for the native 3D hierarchy and tree for Scene2D. Tree output defaults to bounded text with native IDs. For labels only, use --no-ids or include_ids: false. Use --root, --depth, and --limit to narrow the tree, --summary for counts, or --json for structured output.
Use tree --children --root ID --limit 50 --json to page a wide branch. Pass the returned next_cursor to --cursor with the same root. If sibling membership or order changes, start again with an empty cursor. With --world, omit --root to page the world roots. For Scene2D, omit --root to page Stage root actors.
Read calls can select top-level result keys with --fields or MCP's fields. Text row limits default to 50. To check for changes, repeat the same read and options with the returned ETag as --if-none-match or MCP's if_none_match. The bridge performs the read and returns a short not_modified result when the selected output matches. For transactional Stage edits, pass execute_batch a list of supported Stage queries and Actor property edits. Supported writes are rename_node, set_node_z_index, set_node_visible, set_node_property, set_transform, and reset_node_transform. Screenshots arrive as MCP image content. With the CLI, --image writes to a new file and stdout reports image metadata.
Supported scope¶
- Scene2D supports hierarchy queries, allowlisted properties and queries, transforms, focus and hit tests, selection, managed edits, undo/redo, and transactional property batches. Saved
.scene2d.jsondocuments cover bridge-managed plain Actor and Group content. Creating a new scene document requires a filesystem that supports hard links. Updates to existing scene documents check the last known revision optimistically. An external writer can race that check, so coordinate writers to the same scene file. The game owns its existing actors, widgets, custom resources, and application state. - 3D world supports registered models, managed primitives, a live hierarchy, transforms, diffuse material color, registered cameras and lights, and project-relative
.scene3d.jsondocuments. Projection and picking use top-left-origin viewport pixels. Picking intersects world bounding boxes. Save and reopen preserve managed primitives and their hierarchy, including their links to registered host objects. Host models, cameras, and lights remain part of the game. - Media supports bound
ModelInstanceanimations, DefaultShader material recipes and slots, bound 2DParticleEffectcontrols, live keyframe tracks, and Scene2D signals with explicitly registered callbacks. - Host supports the current framebuffer as PNG, libGDX application logs, scene assertions, project-local file operations, a bridge-owned texture AssetManager for PNG and JPEG, preview play state, and supported graphics settings. Text writes are limited to
.txt,.json,.md, and.csvunderassets/. Java diagnostics use a compile-only javac pass oversrc/main/java. Use the game's normal build and restart workflow to load code changes. - Bridge settings cover tool access, presets, and discovery. Keep the bridge in your local development build and point the client at a project you intend to inspect or edit.
Live verification covers macOS LWJGL3 desktop. Android, iOS, web, and desktop on other operating systems are outside the verified scope.
License¶
The first-party code and documentation are licensed under the MIT License.
The Gradle Wrapper remains under the Apache License 2.0.