Skip to main content
Glama
PlayCanvas Editor MCP Server

PlayCanvas Editor MCP Server

Official
by playcanvas

PlayCanvas Editor MCP Server

npm Version CI License Context Discord Reddit X

| npm | Developer Site | Editor Manual | API Reference | Blog | Forum |

An MCP server that lets AI agents automate the PlayCanvas Editor and check that scenes actually run. The MCP client is built into the Editor, so no browser extension is needed.

Install

Add the server to your MCP client. For Claude Code:

claude mcp add playcanvas -- npx -y @playcanvas/editor-mcp-server

Requires Node.js 22.18+. Add the server once per agent: two servers take turns owning the Editor port.

{
  "mcpServers": {
    "playcanvas": {
      "command": "npx",
      "args": ["-y", "@playcanvas/editor-mcp-server"]
    }
  }
}

Add this to claude_desktop_config.json (Settings > Developer > Edit Config), to Cursor's global MCP servers (Cursor Settings > MCP), or to a .mcp.json committed to the project root for Claude Code. On Windows, use "command": "cmd" with "args": ["/c", "npx", "-y", "@playcanvas/editor-mcp-server"].

codex mcp add playcanvas -- npx -y @playcanvas/editor-mcp-server

On Windows, insert cmd /c before npx. If the first run times out while npx downloads, raise startup_timeout_sec under [mcp_servers.playcanvas] in ~/.codex/config.toml.

Then open your project in the Editor, click the MCP button below Publish, and click CONNECT. To start with no project open, use the MCP button next to NEW PROJECT on playcanvas.com/editor. Allow Chrome's Apps on device permission when prompted; if the Editor stays on Connecting, it is blocked. The default port is 52000; to change it, pass --port <number> to the server and set the same port in the Editor.

Related MCP server: HostBridge MCP Server

Usage

Ask your agent for the outcome you want in the open project. For example:

Add a spinning cube with a rotate script to the current scene, launch it, and capture a screenshot
of the running app to confirm it turns.

Coding agents: start from the Editor guides index and the Editor API index, which link a Markdown version of every page.

Tools

Category

Coverage

Projects

Listing, exact reads, creation, name, description and visibility edits, and opening a project in the connected Editor

Entity

Exact reads, filtered lists, resolution, search, script lookup, creation, schema-safe batch edits, duplication, hierarchy changes, deletion and component lifecycle

Scripts

Asset text reads and writes, parsing, attachment, attributes, ordering and removal

Assets

Exact reads, reference graphs, native creation, streamed upload and atomic download up to 512 MiB, schema-safe edits, moves, duplication, source replacement, reimport, deletion and materials

Templates

Instantiation and instance override inspection, application, reversion and unlinking

Animation

Animation state graph reads and edits, mapping-safe state renames and animation events

Processing

Lightmaps, model unwrap and cancellation, texture conversion, atlases, cubemaps, fonts, metadata, compressed variants, prefiltering, sprites and bundles

Scene

Exact reads, listing, loading, creation, duplication, rename, deletion and scene settings

Settings

Scoped project, private, user, session and scene settings reads and edits

Viewport

Camera and viewport state, visibility, capture and focus

Editor

Selection, edit-time logs, transform gizmo state, undo and redo

Builds

Listing, exact reads, creation options, streamed downloads, primary build selection and deletion

Store

PlayCanvas Store search and import, licenses, Sketchfab search and import, and My Assets search and import

Runtime

Launch lifecycle and options, engine version discovery, screenshots, logs, live state inspection and keyboard, mouse and touch input

VCS

Branches, checkpoints, restore and hard reset, merges, conflict resolution and checkpoint diffs

Tools act on the project open in the connected Editor, one Editor at a time. Project tools also work from the project manager at playcanvas.com/editor with no project open; opening a project reloads the tab into it and reconnects automatically. Projects can't be deleted. Runtime tools open a Launch window, so allow pop-ups for the Editor.

Context cost

The 130 tool definitions total about 43,000 tokens (4 characters per token). Claude Code's MCP tool search is on by default and loads only tool names at start, about 1,000 tokens.

Data and network use

The server has no telemetry. It listens on 127.0.0.1:52000 for playcanvas.com and localhost pages, stops any other process holding that port, touches local files only for upload and download tools, and makes one outbound request: download_build fetches the archive URL the Editor reports.

Contributing

git clone https://github.com/playcanvas/editor-mcp-server.git
cd editor-mcp-server
npm install
npm run watch

Point your MCP client at src/server.ts with "command": "node". npm run debug opens the MCP Inspector and npm run build produces the published bundle. Report bugs in GitHub Issues.

License

The PlayCanvas Editor MCP Server is released under the MIT License.

Available Tools

125 tools
add_componentsA
Idempotent

Add one or more components to an existing entity (camera, light, render, collision, rigidbody, element, screen, script, sound, etc.). Pass each component's initial data under its name. Returns the updated entity summary. Physics note: rigidbody/collision components only simulate when the project has the Ammo WASM module asset imported (Editor: IMPORT AMMO). If it is missing, add the components then import Ammo — do not stall on the decision. The legacy use3dPhysics/useLegacyAmmoPhysics project settings are not supported and are rejected. When NOT to use: to create a new entity (use create_entities), to tweak an existing component property (use modify_entities), or to attach a script to a script component (use attach_script).

Inputs: id (required), components (required).

add_entity_scriptsB
Idempotent

Attach a parsed script to one or more entities, creating script components when needed.

Inputs: script (required), entityIds (required), index, attributes.

add_script_component_scriptA
Idempotent

Add a named script to an entity that ALREADY has a script component. Returns the updated entity summary. When NOT to use: if the entity has no script component yet, prefer attach_script, which creates the component and attaches the script in one call.

Inputs: id (required), scriptName (required).

apply_mergeA

Apply a merge whose conflicts are all resolved. Call twice: first with finalize:false to prepare and review, then finalize:true to commit. finalize:true writes the merge checkpoint onto the current branch and RELOADS the editor (the tool waits for reconnect and returns vcs_status); finalize:false does not reload. When NOT to use: to abort a merge (use cancel_merge).

Inputs: mergeId (required), finalize (required).

apply_template_overridesC

Apply all overrides from a template instance, or only the supplied override records.

Inputs: entityId (required), overrides.

attach_scriptA
Idempotent

Attach a script to an entity in one step: creates the script component if missing, then adds the named script. This consolidates the common "add script component" + "add script" flow. Returns the updated entity summary. Note: the script must already exist as a parsed script asset (create one with create_assets type="script", set its code with set_script_text, then script_parse). When NOT to use: to write the script's source code (use set_script_text) or to set script attribute values (use modify_entities on components.script.scripts..attributes).

Inputs: id (required), scriptName (required), index, attributes.

bake_lightmapsA
Idempotent

Bake scene lightmaps, optionally limited to the given entities. Returns only after baking finishes and reports model assets missing UV1.

Inputs: entityIds.

cancel_mergeA
Idempotent

Force-stop an in-progress merge, discarding the merge and its conflicts. Project data is untouched. Does not reload the editor. When NOT to use: to commit a merge (use apply_merge).

Inputs: mergeId (required).

cancel_model_unwrapA
Idempotent

Cancel an in-progress UV1 unwrap for a model asset.

Inputs: id (required).

capture_runtimeA
Read-only

Screenshot the RUNNING Launch instance (not the editor preview) as a downscaled WebP image — the agent's "eye" for visually verifying play-mode behavior. Requires launch_start first. Captures the live frame buffer, so what you see reflects scripts/physics/animation actually running. Works on both WebGL and WebGPU backends; meta.deviceType reports which backend produced the frame. When NOT to use: before launch_start (use capture_viewport for edit-time visuals).

Inputs: no named parameters.

capture_viewportA
Read-only

Capture a screenshot of the editor viewport (the current editing camera view) as a downscaled WebP image, for visual verification of edit-time state. Tip: call focus_viewport first to frame the entities you care about. Note: this renders the editor preview only (scripts/physics/animation are NOT running). When NOT to use: to verify play-mode/runtime behavior (use capture_runtime after launch_start).

Inputs: no named parameters.

clear_cubemap_prefilterA
DestructiveIdempotent

Remove generated runtime lighting data from a cubemap.

Inputs: id (required).

clear_selectionA
Idempotent

Clear the editor's current selection.

Inputs: no named parameters.

close_branchA
Idempotent

Close a branch (a soft, reversible archive — reopen it later with open_branch). Cannot close the current branch or a permanent branch. Does not reload the editor. When NOT to use: to permanently remove a branch (use delete_branch).

Inputs: branchId (required).

convert_texture_assetA

Convert a texture source to a new AVIF, JPEG, PNG, or WebP texture asset.

Inputs: id (required), format (required).

create_assetsA

Create one or more native data/text assets. Imported binary assets use upload_assets. Each asset is { type, options }; options vary by type (e.g. material takes data, script takes filename/text, template takes an entity id). Successful batches return the existing asset-summary array. Failed batches retain error status and expose succeeded and failed entries in response metadata. When NOT to use: to add an existing asset to an entity (use add_components/modify_entities) or to change a material's look after creation (use set_material_properties).

Inputs: assets (required).

create_branchA

Create a new branch (scope a feature on its own branch) and switch the editor to it. Branches from the current branch by default. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status on the new branch. Name must be unique in the project and at most 1000 characters. When NOT to use: to switch to an existing branch (use switch_branch).

Inputs: name (required), sourceBranchId, sourceCheckpointId.

create_buildA

Create a published PlayCanvas build for scenes in the designated project. Returns { buildId, appId, status, url, name }: buildId is the durable build JOB id from list_builds/create_build (the id get_build/set_primary_build/delete_build take), appId is the published app id, and url is the playable app URL. Publishing continues in the background, so poll get_build(buildId) for completion. buildId is null only when the job is not listed yet — meta.hint then tells you to find it with list_builds.

Inputs: name (required), sceneIds (required), minify, version, +8 more.

create_checkpointA

Create a checkpoint (an immutable snapshot of the current branch's scenes/assets/settings) with a description. Returns the created checkpoint ({ id, createdAt, description }). Does not reload the editor. Snapshotting is asynchronous; for very large projects it may exceed the request timeout, in which case the checkpoint usually still completes — confirm with list_checkpoints. When NOT to use: to roll back to a checkpoint (use restore_checkpoint).

Inputs: description (required), branchId.

create_cubemap_from_textureB

Convert an equirectangular texture to six face textures and a cubemap asset.

Inputs: id (required).

create_entitiesA

Create one or more entities (optionally nested hierarchies) in the current scene. Use this to add new objects: cameras, lights, models, UI, empty groups, etc. Coordinates are local to the parent; rotation is euler degrees; scale is a multiplier. Returns the created entity summaries inline (resource_id, name, path, components) so you do NOT need a follow-up list_entities call to recover the new ids. Physics note: rigidbody/collision components only simulate if the project has the Ammo WASM module asset imported (Editor: click IMPORT AMMO). Without it, rigidbodies are created but stay frozen at launch — import Ammo before relying on physics rather than pausing to ask. The legacy use3dPhysics/useLegacyAmmoPhysics project settings are not supported and are rejected. When NOT to use: to change an existing entity (use modify_entities), to add a component to an existing entity (use add_components), or to instantiate a template asset (use instantiate_template_assets).

Inputs: entities (required).

create_sceneA

Create a new empty scene in the current project/branch. Returns the created scene record. This does not switch to the new scene; call load_scene with its uniqueId to open it. When NOT to use: to copy an existing scene (use duplicate_scene).

Inputs: name.

create_texture_atlasA

Duplicate a texture asset as an editable texture atlas and return the new asset.

Inputs: id (required).

delete_assetsA
DestructiveIdempotent

Permanently delete assets by id. This is destructive; entities referencing the deleted assets will lose those references. Returns { deleted: }. When NOT to use: to remove an asset reference from an entity without deleting the asset itself (use modify_entities).

Inputs: ids (required), rejectReferenced.

delete_branchA
DestructiveIdempotent

DESTRUCTIVE: permanently delete a branch and its checkpoints. Cannot be undone. Cannot delete the current branch or a permanent branch. Does not reload the editor. When NOT to use: to archive a branch reversibly (use close_branch).

Inputs: branchId (required).

delete_buildA
DestructiveIdempotent

Permanently delete a build job and its linked artifact from the designated project. buildId is the durable build JOB id from list_builds/create_build, not the app id.

Inputs: buildId (required).

delete_entitiesA
DestructiveIdempotent

Permanently delete entities and all of their descendants. This is destructive and not undoable via this tool. The scene root cannot be deleted. Returns { deleted: }. When NOT to use: to temporarily hide an entity (set enabled=false via modify_entities instead) or to remove a single component (use remove_components).

Inputs: ids (required).

delete_sceneA
DestructiveIdempotent

Permanently delete a scene by its id. This is destructive and cannot be undone. When NOT to use: to switch away from a scene without deleting it (use load_scene).

Inputs: id (required).

diff_checkpointsA
Read-only

Compute the diff between two checkpoints and return the change data. Branch ids default to the current branch. Read-only; does not reload the editor. Use to inspect what changed before merging or restoring. When NOT to use: to roll back to a checkpoint (use restore_checkpoint).

Inputs: dstCheckpointId (required), srcCheckpointId (required), dstBranchId, srcBranchId.

download_assetA
DestructiveIdempotent

Download an asset to a local file. Downloads are limited to 512 MiB and never overwrite unless overwrite=true.

Inputs: path (required), assetId (required), overwrite.

download_buildA
Destructive

Create a static or NPM download build, wait for its artifact, and save the archive to an explicit local path. Existing files are not overwritten unless overwrite=true.

Inputs: name (required), format (required), sceneIds (required), outputPath (required), +7 more.

duplicate_assetsA

Duplicate assets in their current folders and return the created asset summaries.

Inputs: ids (required).

duplicate_entitiesA

Duplicate existing entities (including their children) in place under the same parent. Returns the new entity summaries. Set rename=true to auto-suffix names to avoid duplicates. When NOT to use: to create a reusable prefab across scenes (create a template asset instead) or to build a brand-new entity (use create_entities).

Inputs: ids (required), rename.

duplicate_sceneA

Duplicate an existing scene by its id, giving the copy a new name. Returns the created scene record. When NOT to use: to create an empty scene (use create_scene).

Inputs: id (required), name (required).

find_entities_by_scriptA
Read-only

List the entities whose script component uses a given (registered) script name. Returns compact entity summaries. When NOT to use: to search entities by name (use search_entities) or to read a script's source (use get_asset_text).

Inputs: script (required).

focus_cameraA
Idempotent

Aim the current editor camera to look at a world-space point from a given distance. Useful for framing an exact location before capture_viewport. When NOT to use: to frame specific entities (use focus_viewport) or to move an in-scene camera entity (use modify_entities on its transform).

Inputs: point (required), distance (required).

focus_viewportA
Idempotent

Frame the editor camera on the given entities, optionally from a preset view (top/front/etc.) or a custom yaw/pitch. Useful before capture_viewport. Returns { focused: }. When NOT to use: to move an in-scene camera entity (use modify_entities on its transform).

Inputs: ids (required), yaw, view, pitch.

generate_texture_metadataB
Idempotent

Generate missing pipeline metadata for a texture asset.

Inputs: id (required).

get_animation_eventsA
Read-only

Get the stable-id event map for a GLB animation asset, including time and optional number/string payloads.

Inputs: assetId (required).

get_anim_state_graphA
Read-only

Get the complete structural data for an anim state graph asset, including layers, states, transitions, conditions, and parameters.

Inputs: assetId (required).

get_assetA
Read-only

Get the complete JSON for one project asset by id.

Inputs: id (required).

get_asset_referencesA
Read-only

List the project assets, entities, or settings that reference an asset.

Inputs: id (required).

get_asset_textA
Read-only

Read the full text contents of a text-based asset (script, text, json, css, html, or shader), returned as text. When NOT to use: to read a script's declared name or attribute definitions (use script_parse), to read binary assets like textures or models, or to list assets (use list_assets).

Inputs: assetId (required).

get_buildA
Read-only

Get a publish or download build job by id from the designated project. buildId is the durable build JOB id from list_builds/create_build, not the app id.

Inputs: buildId (required).

get_checkpointA
Read-only

Get a single checkpoint by its id. Returns the checkpoint record ({ id, createdAt, description, user }). When NOT to use: to list a branch's checkpoints (use list_checkpoints).

Inputs: checkpointId (required).

get_conflict_fileA
Read-only

Read the content of one side of a conflicting file so you can decide how to resolve it. Read-only; does not resolve anything. When NOT to use: to choose a resolution (use resolve_conflicts).

Inputs: mergeId (required), fileName (required), conflictId (required), resolved.

get_entityA
Read-only

Get the complete edit-time JSON for one entity by resource_id.

Inputs: id (required).

get_mergeA
Read-only

Get the current state of a merge, including its status and full conflict list ({ id, mergeProgressStatus, conflicts, numConflicts }). Use to re-check which conflicts are still unresolved before apply_merge. When NOT to use: to start a merge (use start_merge).

Inputs: mergeId (required).

get_sceneA
Read-only

Get a single scene by its id (not uniqueId). Returns the full scene record. When NOT to use: to load/switch to a scene in the editor (use load_scene) or to list scenes (use list_scenes).

Inputs: id (required).

get_selectionA
Read-only

Read the editor's current selection. Returns { type: "entity" | "asset" | null, ids: [...] }. Entity ids are resource_ids (strings); asset ids are numbers. When NOT to use: to list all entities/assets (use list_entities/list_assets).

Inputs: no named parameters.

get_template_overridesA
Read-only

Read the current apply/revert override records for a template instance.

Inputs: entityId (required).

hard_reset_checkpointA
DestructiveIdempotent

DESTRUCTIVE: reset the branch head back to a checkpoint and PERMANENTLY ERASE every checkpoint created after it. Cannot be undone. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status. When NOT to use: to roll back working state while keeping history (use restore_checkpoint).

Inputs: checkpointId (required), branchId.

inject_inputA

Dispatch keyboard / mouse / touch input to the RUNNING Launch instance so you can drive end-to-end interactions ("press W to move", "click a button", "tap the screen"). Requires launch_start first. Events run in order; coordinates are CSS pixels from the canvas top-left (match capture_runtime's framing). Returns { dispatched }. Mouse and touch events are dispatched as PointerEvents plus the matching MouseEvent/TouchEvent, so both the engine's pointer-based input sources (camera-controls, first-person-controller) and legacy pc.Mouse / pc.TouchDevice receive them. Patterns: key press with holdMs to move for a duration; mouse click at (x,y); a down→move…→up sequence for dragging; touch tap for mobile UI. After injecting, use capture_runtime / read_runtime_logs / query the scene to observe the effect. When NOT to use: to change entity data directly (use modify_entities) or before launch_start.

Inputs: events (required), betweenMs.

instantiate_template_assetsA

Instantiate template assets into the scene, creating entity hierarchies from them. Returns the created entity summaries. When NOT to use: for non-template assets (only type="template" assets can be instantiated) or to build an entity from scratch (use create_entities).

Inputs: ids (required), index, parentId.

launch_startA

Start a real Launch runtime instance of the current scene (the editor's Launch button) so scripts, physics, animation and input actually run. Opens the launch page in a new browser window with debug logging on; the editor bridges it automatically. Returns { url, sceneId, ready, adopted, engineVersion, device, deviceType, sessionId } where ready=true means the runtime is usable by capture_runtime / read_runtime_logs, and adopted=true means it attached to an app that was already running instead of starting a new one (which happens only when no options are passed, so pass an option to force a fresh launch). engineVersion is the exact version the app launched with (null when adopting an app of unknown origin), device is the requested override, deviceType is the backend the runtime actually created (webgpu/webgl2/webgl1), and sessionId changes on every launch so you can tell a fresh launch from a re-used one. This is the prerequisite for all runtime tools. If ready=false, the page may still be loading or popups were blocked; poll read_runtime_logs or retry. When NOT to use: to screenshot the editor (use capture_viewport); to change the scene (edit-time tools).

Inputs: debug, device, waitMs, bundles, +4 more.

launch_stopA
DestructiveIdempotent

Stop the running Launch instance started by launch_start (closes the launch window). Returns { stopped }. When NOT to use: there is no need to call this between captures — keep the instance running and re-capture.

Inputs: no named parameters.

list_assetsA
Read-only

List project assets, returning compact summaries by default (id, name, type, folder, tags). Results are paginated: use limit (default 50) and offset; the response meta includes total, count, hasMore and nextCursor. Filter with type, name (case-insensitive contains) and/or tag. Use full=true only when you need the complete asset JSON (large). An empty result is a successful, empty list (not an error). When NOT to use: to search the public asset store (use store_search).

Inputs: tag, full, name, type, +2 more.

list_branchesA
Read-only

List the project's branches. Returns branch records ({ id, name, createdAt, closed, permanent, latestCheckpointId, user }). Paginates via limit + cursor (meta.nextCursor); set closed:true to include closed branches, favorite:true for your favourites. When NOT to use: to read the current branch (use vcs_status).

Inputs: limit, closed, cursor, favorite.

list_buildsC
Read-only

List publish and download builds for the designated project, including durable job status and artifacts.

Inputs: type, actor, limit, branch, +3 more.

list_checkpointsA
Read-only

List checkpoints on a branch (the current branch by default), newest first. Returns records ({ id, createdAt, description, user }). Paginates via limit + cursor (meta.nextCursor); backend default limit 25, max 50. Use a checkpoint id with restore_checkpoint / hard_reset_checkpoint. When NOT to use: to list branches (use list_branches).

Inputs: limit, cursor, branchId.

list_engine_versionsA
Read-only

List the engine channels and versions the connected Editor can launch and build with, plus the version a default launch would use. Returns { available: [{ channel, version }], launchDefault: { channel, version, source } } where source is launch-option (the Launch button's "Use Release Candidate"), session-setting or current. Use it before launch_start / create_build when a specific engine version matters, e.g. to reproduce a bug on the release candidate or pin a build to the current release.

Inputs: no named parameters.

list_entitiesA
Read-only

List entities in the current scene, returning compact summaries by default (resource_id, name, hierarchy path, parent, enabled, tags, component names). Results are paginated: use limit (default 50) and offset to page through large scenes; the response meta includes total, count, hasMore and nextCursor. Filter with name (case-insensitive contains), component (only entities with that component) and/or tag. Use full=true only when you need the complete entity JSON (large; prefer summaries). An empty result is a successful, empty list (not an error). When NOT to use: when you already know an entity id and just need to act on it; for runtime/play-mode state (this returns edit-time data only).

Inputs: tag, full, name, limit, +2 more.

list_scenesA
Read-only

List the scenes in the current project/branch. Returns scene records including id, uniqueId and name. Use uniqueId with load_scene to switch scenes, and id with get_scene / duplicate_scene / delete_scene. When NOT to use: to list assets (use list_assets).

Inputs: no named parameters.

list_store_licensesA
Read-only

List valid Store licenses for project imports.

Inputs: no named parameters.

load_sceneA
Idempotent

Load (switch the editor to) a scene by its uniqueId. This unloads the current scene and opens the target one. By default the tool returns after queuing the load. Set wait=true to return only after the requested scene is active. When NOT to use: to read a scene without switching (use get_scene) or to create a new scene (use create_scene).

Inputs: uniqueId (required), wait.

modify_animation_eventsA
Destructive

Add, update, or remove GLB animation events as one undoable transaction. Times are normalized from 0 to 1. Event ids remain stable and generated ids are returned.

Inputs: assetId (required), operations (required).

modify_anim_state_graphA
Destructive

Apply a validated batch of structural operations to an anim state graph as one undoable transaction. Add operations may omit id to allocate one; generated ids and the resulting graph are returned. State deletion also deletes attached transitions. Parameter deletion is rejected while conditions use it. Use layer.update defaultStateId to change a layer default before removing its old default state.

Inputs: assetId (required), operations (required).

modify_assetsA
Destructive

Edit asset name, tags, preload, or data paths. Array operations are supported under data.*. Anim state graph structure and animation events require their dedicated mutation tools.

Inputs: edits (required).

modify_bundle_assetA
DestructiveIdempotent

Add or remove project assets from a bundle. Returns accepted and rejected ids; invalid asset types and duplicates are rejected.

Inputs: id (required), add, remove.

modify_entitiesA
DestructiveIdempotent

Set or unset properties on existing entities by dot-notation path. Valid top-level paths: "name", "enabled", "position" ([x,y,z] local), "rotation" ([x,y,z] euler degrees), "scale" ([x,y,z]), "tags". Component properties use "components..", e.g. "components.light.intensity", "components.camera.fov", "components.render.castShadows", "components.script.scripts..attributes." (the entity must already have that component; add it with add_components first). Each edit targets one entity id + one path. Returns the post-edit summaries of the affected entities. Edits are validated on write: an unknown top-level path, or a component path for a component the entity does not have, fails immediately with a message listing the entity's valid paths/components — so you can fix it in one shot instead of retrying blind. When NOT to use: to create entities (use create_entities), to add/remove components (use add_components/remove_components), or to change scene-wide settings (use modify_scene_settings).

Inputs: edits (required).

modify_project_settingsA
Idempotent

Modify project-wide settings such as physics engine, rendering device (WebGL2/WebGPU), layers, loading screen, script loading order, input, and resolution. Pass a partial object of setting path/value pairs (nested objects or dot-paths, e.g. { enableWebGpu: true, "layers.0.name": "World" }); only the provided fields change. Returns the full resulting project settings snapshot. Physics: use3dPhysics and useLegacyAmmoPhysics are legacy asm.js Ammo loader flags and are not supported; setting either to true is rejected (clearing them is allowed). Enable physics with the Editor IMPORT AMMO button, which imports the Ammo WASM module asset. When NOT to use: to change per-scene settings like fog or gravity (use modify_scene_settings) or a single entity (use modify_entities).

Inputs: settings (required).

modify_scene_settingsA
Idempotent

Modify scene-wide settings such as physics gravity and rendering (fog, ambient light, skybox, tonemapping, exposure, lightmapping). Only the provided fields are changed. Returns the full resulting scene settings snapshot. When NOT to use: to change a single entity (use modify_entities) or to read settings without changing them (use query_scene_settings).

Inputs: settings (required).

modify_settingsA
DestructiveIdempotent

Set or unset arbitrary Editor settings by dot path in project, scene, projectUser, user, session, or projectPrivate scope. Asset import defaults are in projectUser under editor.pipeline.*. Project, scene, and private settings require project write access. Query the scope first to discover current paths and values.

Inputs: edits (required), scope (required).

modify_sprite_assetA
Idempotent

Modify sprite data (atlas, frame order, pixels per unit, render mode) or replace a texture atlas frame map in one undoable edit.

Inputs: id (required), props (required).

move_assetsA
Idempotent

Move assets to a folder in the designated project and wait until their paths update. Omit folderId to move them to the root.

Inputs: ids (required), folderId.

move_entity_scriptA
Idempotent

Move a script to a new execution-order index on an entity.

Inputs: index (required), script (required), entityId (required).

my_assets_importA

Import an asset owned by the current user into the current project.

Inputs: id (required), name (required), folder.

open_branchA
Idempotent

Re-open a previously closed branch. Find closed branches with list_branches({ closed: true }). Does not reload the editor. When NOT to use: to switch the editor onto the branch (use switch_branch).

Inputs: branchId (required).

prefilter_cubemapC
DestructiveIdempotent

Generate runtime lighting data for a cubemap.

Inputs: id (required), legacy.

process_font_assetA
DestructiveIdempotent

Rebuild a font asset for an explicit character set and optional inversion setting.

Inputs: id (required), characters (required), invert.

process_texture_variantsB
DestructiveIdempotent

Compress or remove explicit texture variants and wait for processing to settle.

Inputs: id (required), formats (required), force, remove.

query_project_settingsA
Read-only

Read the current project-wide settings (physics, rendering device, layers, loading screen, script loading order, input, resolution). Returns the full settings object. When NOT to use: to change settings (use modify_project_settings) or to read per-scene settings (use query_scene_settings).

Inputs: no named parameters.

query_runtime_stateA
Read-only

Read the LIVE runtime state of entities in the RUNNING Launch instance — the non-visual ground-truth read-back for verifying play-mode behaviour without guessing screenshot timing. Requires launch_start first. For each matched entity returns world position, local position, euler rotation, scale, enabled, component names, plus rigidbody (type/mass/linearVelocity/angularVelocity) and element (type/text, e.g. a HUD score label) when present. Filter with ids (editor resource_ids — the runtime uses the same GUIDs) or name (case-insensitive substring); omit both to page through every entity. Paginated via limit (default 50) + offset (meta has total/count/hasMore/nextCursor). Use this to answer questions the camera cannot: "did the ball actually move / fall through the floor?", "is the rigidbody simulating (velocity != 0)?", "what does the score HUD say?". An empty result is success, not an error. When NOT to use: for edit-time scene data (use list_entities); before launch_start; to change state (use modify_entities / inject_input).

Inputs: ids, name, limit, offset.

query_scene_settingsA
Read-only

Read the current scene-wide settings (physics + rendering). Returns the full settings object. When NOT to use: to change settings (use modify_scene_settings).

Inputs: no named parameters.

query_settingsA
Read-only

Read any Editor settings scope: project, current scene, per-project user preferences (including editor.pipeline asset import defaults), global user preferences, session settings, or private project settings. Omit path for the complete scope or provide a dot path for one value.

Inputs: scope (required), path.

query_viewport_stateA
Read-only

Read the exact editor viewport camera and overlay state so it can be restored after visual inspection.

Inputs: no named parameters.

query_viewport_visibilityA
Read-only

List entities hidden only in the editor viewport. This does not read or change persisted entity enabled values.

Inputs: no named parameters.

read_editor_logsA
Read-only

Read recent edit-time Editor console logs with filters and pagination.

Inputs: limit, since, types, offset, +1 more.

read_runtime_logsA
Read-only

Read console output (log/info/warn/error), uncaught exceptions and unhandled rejections from the RUNNING Launch instance — the first-line signal for runtime bugs. Requires launch_start first. Returns the most recent entries first, paginated (meta has total/count/hasMore/nextCursor). Exceptions and rejections are serialised as "name: message" plus their stack, so a thrown Error is readable without opening devtools. Defaults to warnings + errors; set level="all" (or debug/info/warn/error as a minimum severity) to widen, and keyword to filter. An empty result is success, not an error. When NOT to use: to read edit-time editor logs (this is the launched app only).

Inputs: level, limit, offset, keyword.

redoA

Redo the last undone edit in the editor. Returns whether anything was redone plus the resulting { canUndo, canRedo } state. When NOT to use: to repeat an arbitrary action (redo only re-applies an edit that was just undone).

Inputs: no named parameters.

reimport_assetsA
Destructive

Re-run the import pipeline for existing source assets and return succeeded and failed entries.

Inputs: ids (required), settings.

remove_componentsA
DestructiveIdempotent

Remove one or more components from an entity by component name. Returns the updated entity summary. When NOT to use: to delete the whole entity (use delete_entities) or to just disable a component (set components..enabled=false via modify_entities).

Inputs: id (required), components (required).

remove_entity_scriptsC
DestructiveIdempotent

Remove a script from one or more entities.

Inputs: script (required), entityIds (required).

rename_sceneB
Idempotent

Rename the currently loaded scene. Load another scene first to rename it.

Inputs: name (required).

reparent_entityA
Idempotent

Move an entity to a new parent in the hierarchy, optionally at a specific child index. Set preserveTransform=true to keep the entity at the same world position after moving. Returns the moved entity summary (including its new hierarchy path). When NOT to use: to change position/rotation values directly (use modify_entities).

Inputs: id (required), parent (required), index, preserveTransform.

replace_assetA
Idempotent

Replace references to one asset with another asset.

Inputs: assetId (required), replacementId (required).

resolve_conflictsA
Idempotent

Resolve one or more merge conflicts by picking a side, or revert them to unresolved. resolution "source" keeps the merged-in branch's version, "dest" keeps the current branch's version, "revert" un-resolves. Returns the updated conflict records. Repeat until get_merge shows no unresolved conflicts, then apply_merge. When NOT to use: to inspect a conflict's content first (use get_conflict_file).

Inputs: mergeId (required), resolution (required), conflictIds (required).

resolve_entitiesA
Read-only

Resolve entities by name into their resource_ids and hierarchy paths, so you can drive follow-up calls without shuttling UUIDs. By default matches case-insensitive substrings; set exact=true to match the full name. Returns summaries (resource_id, name, path, components). An empty result is a successful, empty list (not an error). When NOT to use: when you need filtering by component/tag or pagination (use list_entities).

Inputs: name (required), exact.

restore_checkpointA
Idempotent

Restore (soft revert) the current branch's working state to a checkpoint. History is preserved — later checkpoints remain. This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status. When NOT to use: to permanently erase later checkpoints (use hard_reset_checkpoint).

Inputs: checkpointId (required), branchId.

revert_template_overridesA
Destructive

Revert all overrides on a template instance, or only the supplied override records.

Inputs: entityId (required), overrides.

script_parseA
Read-only

Parse a script asset to extract its declared script name(s) and attribute definitions. Run this after set_script_text. Returns the parsed script metadata. When NOT to use: to read entity-level script attribute values (use list_entities/modify_entities).

Inputs: assetId (required).

search_entitiesA
Read-only

Fuzzy-search entities by name and return the best matches ranked by relevance (each as a compact summary). Use this to find an entity when you only know part of its name. When NOT to use: to filter by component or tag (use list_entities) or to find entities using a script (use find_entities_by_script).

Inputs: query (required), limit.

set_asset_textC
Idempotent

Overwrite the full contents of a CSS, HTML, JSON, script, shader, or text asset.

Inputs: text (required), assetId (required).

set_material_diffuseA
Idempotent

Set only the diffuse (base) color of a material. Color is [r,g,b] in 0-1. When NOT to use: to change any other material property, or to set several properties at once (use set_material_properties).

Inputs: color (required), assetId (required).

set_material_propertiesA
Idempotent

Set any combination of properties on a material asset in one call (diffuse, emissive, metalness, gloss/shininess, opacity, maps, etc.). Only the provided fields are changed; all fields are optional. Colors are [r,g,b] 0-1; map fields take asset ids. Returns the updated asset summary. When NOT to use: to change only the diffuse color (set_material_diffuse is a shorthand) or to create a new material (use create_assets type="material").

Inputs: assetId (required), properties (required).

set_primary_buildA
Idempotent

Set a completed publish build as the project primary build. buildId is the durable build JOB id from list_builds/create_build, not the app id.

Inputs: buildId (required).

set_script_textA
Idempotent

Overwrite the source code of an existing script asset. Provide the full file contents in text. After changing the code, call script_parse so the editor re-reads the script's name and attributes. When NOT to use: to attach a script to an entity (use attach_script) or to create the script asset itself (use create_assets type="script").

Inputs: text (required), assetId (required).

set_selectionA
Idempotent

Replace the editor's selection with the given entities or assets. Selecting shows them in the inspector and highlights them in the viewport/tree. Pass type "entity" (ids are resource_ids) or "asset" (ids are numbers). An empty ids array clears the selection. When NOT to use: to modify the selected items (use modify_entities) or to frame them in the viewport (use focus_viewport).

Inputs: ids (required), type (required).

set_transform_gizmoA
Idempotent

Set the viewport transform gizmo: mode (translate/rotate/scale/resize), coordinate space (world/local), and/or snapping. Only the provided fields change. Returns the resulting { mode, space }. When NOT to use: to actually move/rotate/scale an entity (use modify_entities on its transform).

Inputs: mode, snap, space.

set_viewport_stateA
Idempotent

Set the editor viewport camera transform, projection, grid, bones, icon size, and expanded state. This controls the editor view, not an entity's persisted enabled state.

Inputs: grid, bones, cameraId, expanded, +5 more.

set_viewport_visibilityA
Idempotent

Hide or show entities only in the editor viewport without changing their persisted enabled values.

Inputs: ids (required), hidden (required).

sketchfab_getA
Read-only

Get a Sketchfab model by uid.

Inputs: uid (required).

sketchfab_importB

Import a downloadable Sketchfab model into the current project.

Inputs: uid (required), name (required), license (required), folder.

start_mergeA

Start merging a source branch into the CURRENT branch (the destination is always the branch the editor is on). Waits for the auto-merge to finish and returns the merge ({ id, mergeProgressStatus, conflicts, numConflicts }). If conflicts is non-empty, resolve them with resolve_conflicts, then apply_merge. Does not reload the editor. When NOT to use: to inspect an in-progress merge (use get_merge).

Inputs: sourceBranchId (required), closeSource.

store_downloadA

Clone/import a public store asset into the current project. Requires the license fields returned by store_get. Reaches an external service over the network and adds new assets to the project. When NOT to use: for assets already in the project.

Inputs: id (required), name (required), license (required), folder.

store_getA
Read-only

Get full details (including license info needed to download) for a single public store asset by id. Reaches an external service over the network. When NOT to use: to fetch a project-local asset (use list_assets).

Inputs: id (required).

switch_branchA
Idempotent

Switch (checkout) the editor to an existing branch by its id (from list_branches). This RELOADS the editor; the tool waits for it to reconnect and returns the resulting vcs_status on the target branch. When NOT to use: to create a new branch (use create_branch).

Inputs: branchId (required).

undoA

Undo the last edit in the editor. Returns whether anything was undone plus the resulting { canUndo, canRedo } state. Use this to roll back a change you just made. When NOT to use: to switch scenes (use load_scene).

Inputs: no named parameters.

unwrap_model_assetA
Idempotent

Generate UV1 data for a model asset using the editor's unwrap worker and update its source file.

Inputs: id (required), padding.

upload_assetsA
Destructive

Upload local files into the designated project, or replace an existing asset source by providing its id. Files are limited to 512 MiB each; the result separates succeeded and failed entries.

Inputs: assets (required).

vcs_statusA
Read-only

Read the current version-control state: the active branch ({ id, name, latestCheckpointId }), the projectId, and whether a merge is in progress. Use this to confirm which branch you are on, especially after create_branch/switch_branch/restore_checkpoint/hard_reset_checkpoint (which reload the editor). When NOT to use: to list branches (use list_branches) or checkpoints (use list_checkpoints).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 125 tools

    Disambiguation4/5

    Most tools have distinct operations and include explicit "When NOT to use" cross-references, so an agent can usually tell them apart. Minor overlap remains among entity lookup tools (search_entities vs resolve_entities vs find_entities_by_script vs list_entities), script attachment tools (attach_script vs add_entity_scripts vs add_script_component_script), and generic vs scoped settings tools (query_settings vs query_project_settings).

    Naming Consistency4/5

    The dominant pattern is snake_case verb_noun (create_entities, modify_assets, list_builds), which is predictable. Exceptions like vcs_status, script_parse, launch_start, my_assets_import, and the awkward add_script_component_script break strict consistency but remain readable.

    Tool Count1/5

    125 tools is far beyond the 50+ threshold for extreme mismatch with a single MCP server. Even for a large domain like a full game editor, this should be split into focused sub-servers or consolidated to reduce discovery and selection overhead.

    Completeness5/5

    The surface covers full lifecycle coverage for scenes, entities, components, assets, scripts, materials, animations, VCS branches/checkpoints/merges, builds, runtime, viewport, settings, and external asset stores. No obvious dead ends exist for the stated PlayCanvas Editor domain.

    Maintenance

    ActivityMaintained
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers