loenn-mcp
v5.2.0Celeste map editor for AI agents — MCP server for reading, editing, previewing, and procedurally generating .bin map files
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_maps
List all .bin map files in the project.
| Parameter | Type | Description |
|---|---|---|
subdir | string | Subdirectory to search (default: "Maps") |
read_map_overview
Parse a .bin map file and return a summary of rooms and structure.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file (relative to workspace or absolute) |
read_room
Get detailed data for a specific room: tiles, entities, triggers.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name (with or without 'lvl_' prefix) |
get_room_tiles
Get the complete tile grid for a room as text.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
layer | string | "fg" for foreground (solids), "bg" for background |
add_entity
Add an entity to a room and save the map.
| Parameter | Type | Description |
|---|---|---|
entity_name * | string | Entity type (e.g. "player", "MaggyHelper/KirbyBoss") |
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
x * | integer | X position in pixels |
y * | integer | Y position in pixels |
entity_id | integer | Entity ID (-1 to auto-assign) |
height | integer | Entity height (0 if inapplicable) |
properties | string | JSON object string of extra properties |
width | integer | Entity width (0 if inapplicable) |
remove_entity
Remove an entity from a room by its ID.
| Parameter | Type | Description |
|---|---|---|
entity_id * | integer | Entity ID to remove |
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
add_trigger
Add a trigger to a room and save the map. Triggers are rectangular regions that fire effects when the player enters them (dialog, camera moves, music changes, flag toggles, etc.). Trigger IDs are auto-assigned to be unique across both entities and triggers in the room.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
trigger_name * | string | Trigger type (e.g. "everest/dialogTrigger", "2.5DHelper/StarterFlagTrigger") |
x * | integer | X position in pixels |
y * | integer | Y position in pixels |
height | integer | Trigger height in pixels (default 16) |
nodes | string | JSON array of {"x": int, "y": int} objects for triggers that need path/target nodes (e.g. cameraTargetTrigger). Default "[]". |
properties | string | JSON object string of extra properties (e.g. '{"dialog_id": "MAP_INTRO"}') |
trigger_id | integer | Trigger ID (-1 to auto-assign) |
width | integer | Trigger width in pixels (default 16) |
remove_trigger
Remove a trigger from a room by its ID.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
trigger_id * | integer | Trigger ID to remove |
set_room_tiles
Set tile data for a room. Each row is a line of characters ('0'=air).
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
tiles * | string | Tile data (newline-separated rows, 1 char per tile) |
layer | string | "fg" for foreground (solids), "bg" for background |
add_room
Add a new empty room to a map.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name (prefixed with 'lvl_' if needed) |
dark | boolean | Whether the room is dark |
height | integer | Room height in pixels (multiple of 8) |
space | boolean | Whether the room has space physics |
width | integer | Room width in pixels (multiple of 8) |
x | integer | Room X position in pixels |
y | integer | Room Y position in pixels |
remove_room
Remove a room from a map.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name to remove |
create_map
Create a new empty Celeste .bin map file.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path for the new file (relative to workspace) |
package_name | string | Map package name (e.g. "Maggy/PCG/MyMap") |
list_stylegrounds
List all stylegrounds (foreground + background effects) in a map. Stylegrounds live under Style/Foregrounds and Style/Backgrounds. Each entry is shown with its top-level index (used by remove_styleground / update_styleground), the effect type, and a few key attributes. Children of `apply` group elements are listed indented underneath their group.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
add_styleground
Add a styleground effect to a map. Stylegrounds are layered visual effects (parallax backgrounds, custom Lua effects like 2.5DHelper/VoidBg, snow/dust overlays, etc.) rendered behind or in front of every room. They live under Style/Foregrounds or Style/Backgrounds — auto-created if missing.
| Parameter | Type | Description |
|---|---|---|
effect_name * | string | Effect type (e.g. "parallax", "2.5DHelper/VoidBg", "WhiteholeBg", "apply" for a group element) |
map_path * | string | Path to the .bin file |
index | integer | Position to insert at (-1 appends to the end) |
layer | string | "bg" / "background" / "backgrounds" (default), or "fg" / "foreground" / "foregrounds" |
properties | string | JSON object of effect properties (e.g. '{"texture": "bgs/01/bg", "only": "lvl_a-01"}') |
remove_styleground
Remove a styleground from a map by its index in the layer. Use list_stylegrounds first to see the current indices.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based index of the styleground in that layer |
layer * | string | "fg"/"foregrounds" or "bg"/"backgrounds" |
map_path * | string | Path to the .bin file |
update_styleground
Merge properties into an existing styleground without replacing it. Existing keys in `properties` overwrite the styleground's values; keys not present in `properties` are left unchanged. To clear a key, pass its value as null.
| Parameter | Type | Description |
|---|---|---|
index * | integer | 0-based index of the styleground in that layer |
layer * | string | "fg"/"foregrounds" or "bg"/"backgrounds" |
map_path * | string | Path to the .bin file |
properties * | string | JSON object of properties to merge in |
list_entity_definitions
List available Lönn entity definitions from the project.
| Parameter | Type | Description |
|---|---|---|
filter_text | string | Optional text to filter filenames |
get_entity_definition
Read a Lönn entity Lua definition and extract its properties.
| Parameter | Type | Description |
|---|---|---|
entity_file * | string | Filename (e.g. "kirbyBoss" or "kirbyBoss.lua") |
list_trigger_definitions
List available Lönn trigger definitions.
| Parameter | Type | Description |
|---|---|---|
filter_text | string | Optional text to filter filenames |
list_effect_definitions
List available Lönn effect definitions.
| Parameter | Type | Description |
|---|---|---|
filter_text | string | Optional text to filter filenames |
analyze_map
Get detailed statistics about a map file.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
visualize_map_layout
Generate an ASCII visualization of all room positions in a map.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
preview_map_section
Generate an ASCII preview of a map section, like a Lönn mini-map. Shows room boxes with names, borders drawn with box-drawing characters, checkpoint markers, and entity counts. Zoom into a specific area by providing a room prefix (e.g. "g-") or a center room name.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
center_room | string | Center the view on this room name |
cols | integer | Terminal width for the preview (default 140) |
prefix | string | Only show rooms whose name starts with this (e.g. "g-", "h-") |
rows | integer | Terminal height for the preview (default 60) |
render_map_html
Render an interactive HTML map preview with zoom, pan, search, and detail panel. Features: zoom/pan (wheel, drag, pinch), hover tooltips, click-to-select room detail panel (entity/trigger breakdown), live search filter, minimap with viewport indicator, toggleable grid and labels, keyboard shortcuts.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
output_file | string | Output HTML filename (default: map_preview.html in Temp/) |
prefix | string | Only show rooms matching this prefix (e.g. "g-", "w-") |
build_pattern_library
Scan local .bin maps and extract room patterns into a reusable library. The library is saved as JSON and is used by generate_room_from_pattern. Run this once (or whenever you add new reference maps) to populate the pattern pool.
| Parameter | Type | Description |
|---|---|---|
attribution | string | Free-text attribution / author credit stored in each extracted pattern (useful when building from mod maps). |
map_paths | string | JSON array of map paths relative to the workspace, e.g. '["Maps/01_City.bin","Maps/02_Cliffs.bin"]'. Pass "" to scan every .bin file under Maps/. |
output_path | string | Output JSON path (relative to workspace). Default: "PCG/patterns.json" |
generate_room_from_pattern
Generate a new room using patterns from the library and a randomness strategy. Picks the best matching pattern for the chosen strategy, generates a tile grid and entity set with seeded randomness, then writes the room to the map.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file to write the room into. The file must exist (create it with create_map first). |
room_name * | string | Name for the new room (lvl_ prefix added automatically). |
height | integer | Room height in pixels (multiple of 8, default 184). |
library_path | string | Path to the pattern library JSON (default: PCG/patterns.json). |
model_profile | string | Seed-selection profile — creative/deterministic/architect. |
seed | integer | Integer seed >= 0 for reproducible output; -1 = auto. |
strategy | string | Generation strategy — balanced/exploration/challenge/speedrun. |
width | integer | Room width in pixels (multiple of 8, default 320). |
x | integer | Room X position in pixels. |
y | integer | Room Y position in pixels. |
validate_room
Check a room for common playability problems. Reports issues such as: missing player spawn, no floor tiles, entity positions outside room bounds, or invalid dimensions. An empty warning list means the room passed all checks.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name * | string | Room name (with or without 'lvl_' prefix). |
ingest_external_map
Download a Celeste map from an external URL and extract room patterns.
| Parameter | Type | Description |
|---|---|---|
source_url * | string | URL to a .bin file, .zip archive, or GameBanana mod page. |
attribution | string | Author / licence credit (required for good practice). |
confirm_download | boolean | Must be True to actually download. Pass False to do a dry-run that shows what would happen. |
library_path | string | Path to the pattern library JSON (default: PCG/patterns.json). |
tags | string | Comma-separated or JSON-array tags to apply to extracted patterns. |
generate_map_from_image
Convert a color-mapped image into a full playable Celeste map. Each pixel (or pixel block when scale > 1) in the source image is interpreted as one 8×8 tile in the map. Colors are mapped to tile types and entities using either the default color map or a custom one.
| Parameter | Type | Description |
|---|---|---|
image_path * | string | Path to the source image (PNG, JPG, BMP, etc.) relative to the workspace. |
color_map_json | string | Optional custom color map as JSON object. Keys are hex colors (e.g. "#FF0000"), values are role strings (solid/air/spike/spawn/jumpthru/ strawberry/spring/refill/cr… |
output_path | string | Output .bin map file path (relative to workspace). Default: auto-generated from image filename. |
package_name | string | Celeste map package name (default: "ImageMap"). |
room_height_tiles | integer | Max room height in tiles (default 23 = 184px). |
room_width_tiles | integer | Max room width in tiles (default 40 = 320px). |
scale | integer | Pixels per tile — 1 means each pixel = one tile. Use higher values for large images (e.g. scale=4 means every 4×4 pixel block = one tile). |
tolerance | integer | Color matching tolerance (0-255). Higher = more lenient matching. Default 64. |
generate_terrain_map
Generate a procedural Celeste map using Perlin noise and Voronoi biomes. Creates a complete playable map with terrain shaped by Perlin noise and biome regions defined by Voronoi diagrams. Inspired by procedural map generators that combine noise-based heightmaps with regional variety. Each room is assigned a biome (mountain, forest, plains, lake, cave, summit) based on its Voronoi region and local noise value. Tile density, platform placement, hazards, and collectibles are all biome-aware.
| Parameter | Type | Description |
|---|---|---|
biome_set | string | Comma-separated or JSON array of biomes to use. Default (empty): use all biomes. Example: "mountain,cave,summit" or '["forest","plains"]' |
difficulty | integer | 1-5 difficulty scale (default 3). Affects hazard count and tile density. |
frequency | number | Perlin noise frequency — lower = smoother terrain. Range 2-32 recommended (default 8). |
height_rooms | integer | Number of rooms vertically (default 3). |
output_path | string | Output .bin map file path (relative to workspace). Default: auto-generated as "Maps/TerrainGen/seed_<N>.bin". |
package_name | string | Celeste map package name (default: "TerrainGen"). |
room_height_tiles | integer | Tiles per room height (default 23 = 184px). |
room_width_tiles | integer | Tiles per room width (default 40 = 320px). |
seed | integer | Integer seed for reproducible generation. -1 = generate random seed. |
voronoi_points | integer | Number of biome region centres (default 12). More points = smaller, more varied regions. |
width_rooms | integer | Number of rooms horizontally (default 4). |
preview_terrain_biomes
Preview the biome layout for a terrain generation without creating the map. Shows an ASCII grid of which biome each room would get, useful for trying different seeds and parameters before committing to generation.
| Parameter | Type | Description |
|---|---|---|
biome_set | string | Comma-separated or JSON array of biomes. |
frequency | number | Perlin noise frequency. |
height_rooms | integer | Number of rooms vertically. |
seed | integer | Integer seed for the preview. |
voronoi_points | integer | Number of Voronoi biome centres. |
width_rooms | integer | Number of rooms horizontally. |
read_map_metadata
Read high-level metadata from a map without listing all room contents. Returns package name, room count, total entity/trigger counts, world bounds, and style information.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
search_entities
Search for entities across all rooms (or a specific room) by type and/or position.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
entity_type | string | Filter by entity type name (substring match). Empty = all. |
max_x | integer | Maximum X position filter. |
max_y | integer | Maximum Y position filter. |
min_x | integer | Minimum X position filter. |
min_y | integer | Minimum Y position filter. |
room_name | string | Search only in this room. Empty = all rooms. |
search_triggers
Search for triggers across all rooms by type.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name | string | Search only in this room. Empty = all rooms. |
trigger_type | string | Filter by trigger type (substring match). Empty = all. |
compare_rooms
Compare two rooms in the same map side-by-side. Shows differences in size, entity counts, tile coverage, and difficulty.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_a * | string | First room name. |
room_b * | string | Second room name. |
update_entity
Update properties of an existing entity by ID.
| Parameter | Type | Description |
|---|---|---|
entity_id * | integer | ID of the entity to update. |
map_path * | string | Path to the .bin file. |
properties_json * | string | JSON object of properties to set/update. Example: '{"x": 100, "y": 50, "width": 16}' |
room_name * | string | Room containing the entity. |
move_entity
Move an entity to a new position.
| Parameter | Type | Description |
|---|---|---|
entity_id * | integer | ID of the entity to move. |
map_path * | string | Path to the .bin file. |
room_name * | string | Room containing the entity. |
x * | integer | New X position. |
y * | integer | New Y position. |
update_room
Update room-level properties (music, dark, wind, etc.).
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
properties_json * | string | JSON object of properties to update. Example: '{"dark": true, "windPattern": "Left"}' |
room_name * | string | Room name (with or without lvl_ prefix). |
clone_room
Clone an existing room to a new name and position.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
new_name * | string | Name for the cloned room. |
source_room * | string | Name of the room to clone. |
x | integer | X position for the clone (-1 = place to the right of source). |
y | integer | Y position for the clone (-1 = same Y as source). |
batch_add_entities
Add multiple entities to a room in one call.
| Parameter | Type | Description |
|---|---|---|
entities_json * | string | JSON array of entity objects. Each must have "__name". Optional: x, y, width, height, etc. IDs are auto-assigned. Example: '[{"__name":"strawberry","x":100,"y":50},… |
map_path * | string | Path to the .bin file. |
room_name * | string | Target room name. |
list_decals
List all decals in a room (foreground or background).
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name * | string | Room name. |
layer | string | "fg" for foreground decals, "bg" for background decals. |
add_decal
Add a decal to a room.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name * | string | Target room. |
texture * | string | Decal texture path (e.g. "decals/1-forsakencity/flag_a00"). |
x * | integer | X position. |
y * | integer | Y position. |
layer | string | "fg" or "bg". |
scale_x | number | Horizontal scale (default 1.0). |
scale_y | number | Vertical scale (default 1.0). |
remove_decal
Remove a decal by index.
| Parameter | Type | Description |
|---|---|---|
index * | integer | Decal index (from list_decals output). |
map_path * | string | Path to the .bin file. |
room_name * | string | Room name. |
layer | string | "fg" or "bg". |
analyze_entity_usage
Analyze entity usage across the entire map. Shows total counts, unique types, and per-room breakdown of entity usage.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
analyze_difficulty
Estimate room or map difficulty from hazard density, nav aids, and tile coverage.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name | string | Specific room to analyze. Empty = analyze all rooms. |
find_entity_references
Find all occurrences of an entity type across the map.
| Parameter | Type | Description |
|---|---|---|
entity_type * | string | Entity type to search for (exact match). |
map_path * | string | Path to the .bin file. |
detect_map_patterns
Detect gameplay design archetypes (linear, hub, collectible-rich, etc.). Analyzes room layout, entity distribution, and map structure to identify design patterns.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
analyze_room_connectivity
Analyze room adjacency graph showing isolated rooms, dead ends, and hubs. Rooms are considered connected if they share an edge (within 8px tolerance).
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
suggest_improvements
Suggest improvements for a room based on analysis. Checks for missing spawns, missing floors, difficulty balance issues, and empty rooms.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name * | string | Room to analyze. |
compare_maps
Compare two maps and show structural differences.
| Parameter | Type | Description |
|---|---|---|
map_path_a * | string | Path to first .bin file. |
map_path_b * | string | Path to second .bin file. |
wiki_save
Save analysis results or notes to the local wiki cache. The wiki provides persistent local storage for analysis results so repeated queries are instant.
| Parameter | Type | Description |
|---|---|---|
content * | string | Text content to store. |
key * | string | Unique key for this entry (e.g. "difficulty/01_City_A"). |
tags | string | Comma-separated tags for searching (e.g. "analysis,difficulty"). |
wiki_search
Search the wiki cache by key, content, or tags.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query (substring match in key, content, and tags). |
wiki_list
List all entries in the wiki cache.
wiki_get
Retrieve a specific wiki entry by key.
| Parameter | Type | Description |
|---|---|---|
key * | string | The entry key to look up. |
get_mod_info
Get information about the current mod project. Reads everest.yaml/everest.yml if present, lists map count, and shows workspace structure.
validate_map
Validate an entire map for playability issues. Checks all rooms for common problems: missing spawns, no floor tiles, entities out of bounds, invalid dimensions.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
auto_fix | boolean | If True, automatically fix issues where possible (adds spawns, floor tiles, clamps entities). |
get_trigger_definition
Read the source of a Lönn trigger definition .lua file.
| Parameter | Type | Description |
|---|---|---|
trigger_name * | string | Name of the trigger (searches in Loenn/triggers/). |
get_effect_definition
Read the source of a Lönn effect definition .lua file.
| Parameter | Type | Description |
|---|---|---|
effect_name * | string | Name of the effect (searches in Loenn/effects/). |
export_room_json
Export a room as a JSON file for external editing or sharing.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
room_name * | string | Room to export. |
output_path | string | Output JSON path (default: auto-generated). |
import_room_json
Import a room from a JSON file into a map.
| Parameter | Type | Description |
|---|---|---|
json_path * | string | Path to the JSON file (exported by export_room_json). |
map_path * | string | Path to the .bin file to import into. |
new_name | string | Optional new name for the room (overrides name in JSON). |
x | integer | X position override (-1 = use position from JSON). |
y | integer | Y position override (-1 = use position from JSON). |
summarize_map_diff
Create or compare a structural snapshot of the map. First call (or with new snapshot_key): saves current state to wiki. Subsequent call with same key: shows what changed since the snapshot.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
snapshot_key | string | Key to identify this snapshot (default: map filename). |
batch_validate_and_fix
Validate all rooms in a map and optionally auto-fix issues. Checks for: missing spawns, no floors, entities out of bounds, invalid dimensions. Auto-fix adds spawns, floor tiles, and clamps entities to room bounds.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file. |
auto_fix | boolean | If True, apply automatic fixes. |
get_room_settings
Get all editable settings for a room (music, physics, wind, camera, flags). Returns all metadata properties including music tracks, physics flags (dark/space/underwater), wind pattern, camera offsets, and music layers.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name (with or without 'lvl_' prefix) |
update_room_settings
Update room settings (music, physics, wind, camera, flags) by merging a JSON object.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
settings * | string | JSON object of key/value pairs to update, e.g. '{"music": "event:/music/lvl2/beginning", "dark": true}' |
rename_room
Rename a room in a map.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
new_name * | string | New room name (lvl_ prefix added automatically if missing) |
room_name * | string | Current room name |
move_room
Move a room to a new world-space position.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
x * | integer | New X position in pixels |
y * | integer | New Y position in pixels |
resize_room
Resize a room (snaps to 8-pixel grid, preserves tile data).
| Parameter | Type | Description |
|---|---|---|
height * | integer | New height in pixels (must be multiple of 8, min 40) |
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
width * | integer | New width in pixels (must be multiple of 8, min 40) |
get_map_metadata
Read the map-level metadata block (Everest/celeste.yaml meta settings). Returns the meta node that stores settings like wipe type, intro type, heart texture, cassette song, and other map-wide overrides.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
set_map_metadata
Set map-level metadata properties (Everest meta block). These properties control map-wide behaviour like wipe type, mountain colours, intro cutscene, heart/cassette song overrides, etc.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
settings * | string | JSON object of meta key/value pairs to set, e.g. '{"Wipe": "Mountain", "Dreaming": true}' |
get_map_dependencies
Read the mod dependencies list from a map's everest.yaml or meta node. Scans the workspace for an everest.yaml alongside the map file, and also reads the Deps child element of the meta node if present.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
set_map_dependencies
Write or update the mod dependency list in the map's everest.yaml. Creates or replaces the everest.yaml file in the same directory as the map.
| Parameter | Type | Description |
|---|---|---|
dependencies * | string | JSON array of dependency objects, each with "Name" and "Version" fields. Use "Celeste" and "Everest" as base deps. Example: '[{"Name":"Everest","Version":"1.0.0"},… |
map_path * | string | Path to the .bin file |
install_loenn_manager
Install the Lönn MCP Manager plugin into the Lönn plugins directory. Writes loenn_mcp_manager.lua to the specified directory. Drop this plugin into your Lönn plugins/ folder or your mod's Loenn/plugins/ to enable live two-way communication between Lönn and this MCP server.
| Parameter | Type | Description |
|---|---|---|
target_dir | string | Directory to install into (default: Loenn/plugins) |
get_loenn_manager_source
Return the source code of the Lönn MCP Manager plugin. Use this to inspect or copy the plugin code without writing it to disk.
analyze_map_assets
ML-style analysis of a map's assets against the Maddie480 graphics dump. Extracts all texture references (parallax backgrounds, decals, entity textures) from the map and cross-references them against the known Celeste graphics dump from maddie480.ovh/celeste/graphics-dump-browser. Also validates entity names against the Lönn source entity catalog and detects unknown / missing assets that would cause in-game errors.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
check_entities | boolean | Validate entity names against Lönn catalog |
check_textures | boolean | Validate parallax/decal texture paths |
check_tilesets | boolean | Validate tileset character references |
fetch_asset_index | boolean | If True, attempt to fetch the asset index from maddie480.ovh (requires network access). If False, uses the built-in known-asset catalog. |
ai_analyze_map
Analyze a map using Claude AI and get improvement suggestions. Requires ANTHROPIC_API_KEY environment variable. Get your API key from: https://console.anthropic.com/
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
analysis_type | string | Type of analysis - "general", "difficulty", "visual", "flow" |
model | string | Claude model (default: claude-3-5-sonnet-20241022) |
ai_describe_room
Generate an AI-powered narrative description of a room. Requires ANTHROPIC_API_KEY environment variable.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name (with or without 'lvl_' prefix) |
model | string | Claude model (default: claude-3-5-sonnet-20241022) |
style | string | Description style - "atmospheric", "technical", "story", "brief" |
ai_suggest_entities
Get AI suggestions for entity placement in a room. Requires ANTHROPIC_API_KEY environment variable.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name |
goal | string | Suggestion goal - "improve_flow", "add_challenge", "reduce_difficulty", "add_secrets" |
model | string | Claude model (default: claude-3-5-sonnet-20241022) |
pcg_mdmc_presets
List all available MdMC configuration matrix presets. Returns the preset key (9-char matrix string) and its human-readable description. Pass one of these keys as the ``configuration`` parameter to pcg_markov_fill or pcg_pipeline.
pcg_skeleton_generate
Generate a skeleton room layout and add empty rooms to an existing map. Lays out non-overlapping rooms connected edge-to-edge (paper requirements 1-3). The first room is START (player spawn), the furthest room is END (golden berry destination). Rooms are added with solid border tiles and empty interiors — run pcg_markov_fill afterwards to fill the tiles.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file to add rooms to |
ensure_loopbacks | boolean | Add extra connections to create loops in the layout |
max_retries | integer | Max placement attempts per room before skipping |
max_room_height_tiles | integer | Maximum room height in tiles (×8 px) |
max_room_width_tiles | integer | Maximum room width in tiles (×8 px) |
min_exit_width_tiles | integer | Minimum exit width in tiles (default 3 = 24 px) |
min_room_height_tiles | integer | Minimum room height in tiles (×8 px, min 5) |
min_room_width_tiles | integer | Minimum room width in tiles (×8 px, min 5) |
name_prefix | string | Prefix for generated room names (e.g. skel_0, skel_1 …) |
room_count | integer | Number of rooms to generate (default 12) |
seed | integer | Random seed (-1 = random each run) |
validate_connectivity | boolean | Warn if any orphaned rooms are detected |
pcg_markov_fill
Fill rooms with tiles using the MdMC/WFC algorithm (Markov Level Generator). Trains a Multi-dimensional Markov Chain (MdMC) or Wave Function Collapse (WFC) model on existing rooms in the map, then generates tile layouts for the specified rooms with backtracking, cleanup, auto-tiling, playability repair, and entity placement.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
auto_tile | boolean | Blend tile edges for smooth transitions |
cleanup_passes | integer | Number of cleanup passes (remove isolated tiles) |
configuration | string | 9-char MdMC matrix string (see pcg_mdmc_presets) |
decal_density | number | Decal density (0-1) |
difficulty | integer | Difficulty level 1-5 for pattern mode |
ensure_playable | boolean | Platformer repair pass (BFS reachability + corridor carving) |
generate_bg | boolean | Also generate background tiles |
generation_mode | string | "mdmc", "wfc", or "hybrid" |
hazard_density | number | Density of spikes (0-1) |
max_backtrack_depth | integer | Max tiles to backtrack on unseen n-gram |
max_retries | integer | Full-room generation retries per room |
min_interestingness | number | Minimum interestingness to accept a generated room |
place_decals | boolean | Place background and foreground decals |
place_entities | boolean | Place player spawn, strawberries, spikes after generation |
place_triggers | boolean | Place camera/spawn triggers |
room_names | string | Comma-separated room names to fill (empty = all rooms) |
seed | integer | Random seed (-1 = random each run) |
spring_density | number | Density of springs (0-1) |
train_source | string | "all_rooms" (train on all rooms) or comma-separated names |
trigger_mode | string | "camera", "spawn", "all", or "none" |
use_enhanced_bg | boolean | Depth-appropriate BG fill |
use_pattern_mode | boolean | Pattern mode (marioGen-v2 style) instead of MdMC |
w1 | number | Weight for global NLE density in interestingness score |
w2 | number | Weight for local NLE density (AOI) in interestingness score |
w3 | number | Weight for NLE diversity (Shannon entropy) in interestingness score |
pcg_score_room
Score a room's interestingness and difficulty (paper §4.2, §4.3). Interestingness I = w1·global_NLE_density + w2·local_NLE_density + w3·entropy Difficulty D = z1·hole_frequency + z2·local_LE_density + z3·NLE_scarcity NLE = Non-Linear Element (air cell with ≥2 solid neighbours, indicating branching or complex geometry). LE = Linear Element (straight solid run).
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file |
room_name * | string | Room name (with or without 'lvl_' prefix) |
w1 | number | Weight for global NLE density in interestingness (default 1.0) |
w2 | number | Weight for local NLE density (AOI) in interestingness (default 1.0) |
w3 | number | Weight for NLE diversity (Shannon entropy) in interestingness (default 1.0) |
z1 | number | Weight for hole frequency in difficulty (default 1.0) |
z2 | number | Weight for local LE density in difficulty (default 1.0) |
z3 | number | Weight for NLE scarcity in difficulty (default 1.0) |
pcg_pipeline
End-to-end PCG pipeline: skeleton → MdMC/WFC tile fill → repair → entities. Combines the Celeste Skeleton Generator and Markov Level Generator into a single one-shot generator. Trains on existing rooms in the map, generates a skeleton of non-overlapping rooms, fills each room with tiles using the chosen algorithm, runs playability repair, and places entities/decals/triggers.
| Parameter | Type | Description |
|---|---|---|
map_path * | string | Path to the .bin file (rooms are added to this map) |
auto_tile | boolean | Blend tile edges for smooth transitions |
carve_exits | boolean | Carve 3-tile-wide doorways between adjacent rooms |
cleanup_passes | integer | Number of cleanup passes |
configuration | string | 9-char MdMC matrix string (see pcg_mdmc_presets) |
decal_density | number | Decal density (0-1) |
difficulty | integer | Difficulty level 1-5 for pattern mode / hazard density |
ensure_playable | boolean | Platformer repair pass |
generate_bg | boolean | Also generate background tiles |
generation_mode | string | "mdmc", "wfc", or "hybrid" |
hazard_density | number | Density of spikes placed on walkable surfaces (0-1) |
max_backtrack_depth | integer | Max tiles to backtrack on unseen n-gram |
min_interestingness | number | Minimum interestingness to accept a room (0 = accept any) |
name_prefix | string | Prefix for generated room names (gen_0, gen_1 …) |
place_decals | boolean | Place background/foreground decals |
place_entities | boolean | Place player spawn, strawberries, spikes, springs |
place_triggers | boolean | Place camera/spawn triggers |
proba | number | Skeleton pathway/labyrinth parameter. 0=pathway (chain), 1=labyrinth (random attach), 0.5=balanced |
room_count | integer | Number of rooms to generate (default 8) |
room_height_tiles | integer | Height of every room in tiles (×8 px) |
room_width_tiles | integer | Width of every room in tiles (×8 px) |
seed | integer | Random seed (-1 = random each run) |
spring_density | number | Density of springs in vertical passages (0-1) |
tries_limit | integer | Full-room generation retries per room |
trigger_mode | string | "camera", "spawn", "all", or "none" |
use_enhanced_bg | boolean | Depth-appropriate BG fill |
use_pattern_mode | boolean | Pattern mode (marioGen-v2) instead of MdMC |
w1 | number | Interestingness weight — global NLE density |
w2 | number | Interestingness weight — local NLE density (AOI) |
w3 | number | Interestingness weight — NLE diversity (Shannon entropy) |
z1 | number | Difficulty weight — hole frequency |
z2 | number | Difficulty weight — local LE density |
z3 | number | Difficulty weight — NLE scarcity |