Ember is discontinued. It still works, but it gets no more updates or support. Back to uayi.org
Home · Terrified Gorillas · Glimmerwood · Starfall Hollow · ‹ Prev Next ›
Ember
Download

Reference

AI agents (MCP)

The editor is an MCP (Model Context Protocol) server. Start it from your MCP client and the editor window opens; the agent (Claude Desktop, Claude Code, any MCP client) can then inspect and build your game while you watch, and you can keep working in the same window.

ember_editor --mcp --project <your project folder> [--mcp-preset viewer|builder|scripter|editor|full]

Presets

preset what the agent may do
viewer read only: project info, entities, assets, templates, console, screenshots, licence checks
builder viewer + create / edit / delete / duplicate entities, environment (sky, fog), new / open / save scenes, undo
scripter builder + read / write Lua and .graph files in the project, attach scripts, compile visual scripts, text_to_blocks (English -> blocks; may be inaccurate)
editor scripter + play, stop, step the simulation, run Lua inside the running game, Easy-mode toggle (default)
full editor + create / open projects, list export targets, export builds

The default comes from project.ember ("mcp": {"preset": "editor"}); --mcp-preset overrides it. Tools above the preset's level are hidden from tools/list and refused if called.

Client configuration

Claude Desktop (claude_desktop_config.json) - see claude_desktop_config.json in this folder. Claude Code - put .mcp.json (this folder) in your project folder, or run:

claude mcp add ember -- /path/to/ember_editor --mcp --project /path/to/MyGame --mcp-preset editor

Tools

get_project_info, list_entities, get_entity, list_assets, list_templates, get_console, screenshot, check_license, create_entity, set_transform, set_components, rename_entity, delete_entity, duplicate_entity, set_environment, bake_lighting, new_scene, save_scene, open_scene, undo, set_view, save_prefab, read_file, write_file, attach_script, compile_graph, play, stop, step, run_lua, set_easy_mode, create_project, open_project, export_targets, export_game.

set_view {position, look_at} (or {entity}) moves the editor camera, so screenshot shows what you want.

create_entity kinds include Terrain (or Terrain:Mountains, Terrain:Island, Terrain:Canyons, Terrain:Dunes, Terrain:Flat). Light modes: set_components {"light": {"mode": "baked"}}, then bake_lighting {"quality": "fast|good|best"}.

set_components takes scene-JSON (the same format as assets/scenes/*.json), e.g. {"entity": "Crate", "components": {"body": {"type": "dynamic", "mass": 5}, "mesh": {"tint": [1, 0.2, 0.2, 1]}}}.

tools/test_mcp.py drives the server end to end (initialize, list, build a scene, script, play, step, run Lua, screenshot) and is part of Ember's test suite.

Ember 1.1 documentation. Found a mistake? The source of this page is site/docs/mcp.md in the Ember source.