Логотип PlayCanvas 编辑器 MCP 服务器

PlayCanvas 编辑器 MCP 服务器

Організація
playcanvas

MCP Server for AI automation of the PlayCanvas Editor

Видавецьplaycanvas
Репозиторійeditor-mcp-server
МоваTypeScript
Форки
28
Зірки
137
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    PlayCanvas 编辑器 MCP 服务器 надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 137, форки: 28 — у пов’язаному репозиторії.

PlayCanvas Editor MCP Server

CI NPM Version License Discord Reddit X

| User Manual | API Reference | Blog | Forum |

An MCP server for automating the PlayCanvas Editor with an LLM. The MCP client is built into the Editor — no browser extension needed. Install the server into your MCP client of choice (Claude Code, Codex, Claude Desktop, Cursor, …) and connect the Editor to it.

Installation

Requires Node.js 22.18+. The server is published to npm as @playcanvas/editor-mcp-server — a self-contained, zero-dependency bundle — so every client below runs it with npx. Nothing to clone or build.

Claude Code

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

To share the server with everyone working on a repo, commit a .mcp.json to the project root instead:

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

Codex

The Codex CLI and the Codex app share ~/.codex/config.toml, so one command covers both:

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

[!NOTE] On Windows, use codex mcp add playcanvas -- cmd /c npx -y @playcanvas/editor-mcp-server. If the server times out on first run (while npx downloads the package), raise startup_timeout_sec under [mcp_servers.playcanvas] in ~/.codex/config.toml. ChatGPT itself only supports remote MCP connectors, so Codex is the OpenAI surface to use.

Claude Desktop

Go to Claude > Settings > Developer > Edit Config and add to claude_desktop_config.json:

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

[!NOTE] On Windows, use "command": "cmd" and "args": ["/c", "npx", "-y", "@playcanvas/editor-mcp-server"].

Cursor

Select File > Preferences > Cursor Settings > MCP > Add new global MCP server and add the same JSON as for Claude Desktop.

Custom Port

The server listens for the Editor on WebSocket port 52000 by default. To change it, append --port <number> to the npx args and set the same port in the Editor's MCP popover.

Connecting the Editor

  1. Open your project in the PlayCanvas Editor.
  2. Click the MCP button at the bottom of the toolbar (below the Publish button).
  3. Check that the port matches your MCP config (default 52000) and click CONNECT.

You can now issue commands from your MCP client.

[!NOTE] Only one Editor instance can be connected to the MCP server at a time.

[!IMPORTANT] Chromium gates a public page's connection to 127.0.0.1 behind a local access permission (Chrome 142+, extended to WebSockets in Chrome 147) granted per origin, so allow it when prompted. In Chrome's site settings it is Apps on device (loopback) — Local network covers LAN addresses and is not required. Only the Editor needs it: the launch page is bridged through the Editor rather than opening a socket of its own. If the Editor sits on Connecting, open its site settings and allow it — a blocked connection fails silently and looks exactly like a server that isn't running.

Editor Driver Coverage

All tools act on the project open in the connected Editor. The server does not discover, select, create, delete, transfer, or administer projects, and project IDs are not tool inputs.

CategoryDriver coverageTools
EntityExact reads, filtered lists, resolution, search, script lookup, creation, schema-safe batch edits, duplication, hierarchy changes, deletion and component lifecyclelist_entities, get_entity, resolve_entities, search_entities, find_entities_by_script, create_entities, modify_entities, duplicate_entities, reparent_entity, delete_entities, add_components, remove_components
ScriptsAsset text reads and writes, parsing, attachment, attributes, ordering and removalget_asset_text, set_asset_text, set_script_text, script_parse, add_script_component_script, attach_script, add_entity_scripts, remove_entity_scripts, move_entity_script
AssetsExact reads, reference graphs, native creation, streamed upload and atomic download up to 512 MiB, schema-safe edits, moves, duplication, source replacement, reimport, deletion and materialslist_assets, get_asset, get_asset_references, create_assets, upload_assets, modify_assets, move_assets, duplicate_assets, replace_asset, reimport_assets, download_asset, delete_assets, set_material_diffuse, set_material_properties
TemplatesInstantiation and instance override inspection, application, reversion and unlinkinginstantiate_template_assets, get_template_overrides, apply_template_overrides, revert_template_overrides, unlink_template_instances
AnimationAnimation state graph reads and edits, mapping-safe state renames and animation eventsget_anim_state_graph, modify_anim_state_graph, get_animation_events, modify_animation_events
ProcessingLightmaps, model unwrap and cancellation, texture conversion, atlases, cubemaps, fonts, metadata, compressed variants, prefiltering, sprites and bundlesbake_lightmaps, unwrap_model_asset, cancel_model_unwrap, convert_texture_asset, create_texture_atlas, create_cubemap_from_texture, process_font_asset, generate_texture_metadata, process_texture_variants, prefilter_cubemap, clear_cubemap_prefilter, modify_sprite_asset, modify_bundle_asset
SceneExact reads, listing, loading, creation, duplication, rename, deletion and scene settingslist_scenes, get_scene, load_scene, create_scene, duplicate_scene, rename_scene, delete_scene, query_scene_settings, modify_scene_settings
SettingsScoped project, private, user, session and scene settings reads and editsquery_settings, modify_settings, query_project_settings, modify_project_settings
ViewportCamera and viewport state, visibility, capture and focusquery_viewport_state, set_viewport_state, query_viewport_visibility, set_viewport_visibility, capture_viewport, focus_viewport, focus_camera
EditorSelection, edit-time logs, transform gizmo state, undo and redoget_selection, set_selection, clear_selection, read_editor_logs, set_transform_gizmo, undo, redo
BuildsListing, exact reads, creation options, streamed downloads, primary build selection and deletionlist_builds, get_build, create_build, download_build, set_primary_build, delete_build
StorePlayCanvas Store search and import, licenses, Sketchfab search and import, and My Assets search and importstore_search, store_get, store_download, list_store_licenses, sketchfab_search, sketchfab_get, sketchfab_import, my_assets_search, my_assets_import
RuntimeLaunch lifecycle and options, engine version discovery, screenshots, logs, live state inspection and keyboard, mouse and touch inputlaunch_start, launch_stop, list_engine_versions, capture_runtime, read_runtime_logs, query_runtime_state, inject_input
VCSBranches, checkpoints, restore and hard reset, merges, conflict resolution and checkpoint diffsvcs_status, list_branches, create_branch, switch_branch, close_branch, open_branch, delete_branch, list_checkpoints, create_checkpoint, get_checkpoint, restore_checkpoint, hard_reset_checkpoint, start_merge, get_merge, resolve_conflicts, get_conflict_file, apply_merge, cancel_merge, diff_checkpoints

Asset transfers over 20 MiB use 1 MiB chunks. The server reads and writes local files incrementally, while the Editor spools uploads to browser storage and consumes downloads as streams instead of buffering the entire transfer in memory.

The Runtime tools drive a real Launch instance (the Editor's Launch button) so an agent can verify that a scene actually runs: screenshot the running app, read its console output, query live entity state, and inject keyboard/mouse/touch input. Allow pop-ups for the editor origin so launch_start can open the launch window — it reuses your existing PlayCanvas login session. The Editor relays runtime:* calls to that window, so it needs no local access permission of its own. Calling launch_start with no options adopts an app that is already running (adopted: true in the response) instead of restarting it; pass any option to force a fresh launch. It also reports the engine and graphics backend it ran with (engineVersion, deviceType) and a sessionId that changes on every launch; omitting engineVersion uses the Editor's own selection, and list_engine_versions reports the available channels and that default for both launch_start and create_build. create_build normalises its result to { buildId, appId, status, url, name }, so the durable build job id that get_build, set_primary_build and delete_build take is returned directly instead of the app id.

Every tool returns a consistent { data, meta } envelope: meta.status is ok or error (with an actionable message), list tools paginate via limit/offset and meta.nextCursor, and mutating tools return the resulting entity/asset summaries so follow-up list calls are rarely needed.

Development

To hack on the server itself, ensure you have Node.js 22.18 or later installed. Follow these steps:

  1. Clone the repository:

    sh
    git clone https://github.com/playcanvas/editor-mcp-server.git
    cd editor-mcp-server
  2. Install dependencies:

    sh
    npm install
  3. Start the server (Node runs the TypeScript source directly — no build step):

    sh
    npm run watch
  4. Point your MCP client at the checkout instead of the npm package with "command": "node" and "args": ["/path/to/editor-mcp-server/src/server.ts"].

npm run debug starts the server under the MCP Inspector and npm run build produces the self-contained bundle that gets published.

Встановлення

TypingMind
{
  "mcpServers": {
    "editor-mcp-server": {
      "command": "npx",
      "args": [
        "tsx",
        "path/to/your/main.ts"
      ],
      "env": {
        "PORT": "<PORT>"
      }
    }
  }
}

Використовуйте MCP PlayCanvas 编辑器 MCP 服务器 з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення PlayCanvas 编辑器 MCP 服务器 ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте PlayCanvas 编辑器 MCP 服务器 як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP PlayCanvas 编辑器 MCP 服务器.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "editor-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@playcanvas/editor-mcp-server"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для PlayCanvas 编辑器 MCP 服务器, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для PlayCanvas 编辑器 MCP 服务器.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через PlayCanvas 编辑器 MCP 服务器?
PlayCanvas 编辑器 MCP 服务器
Звісно. Я це прочитав.
Ось що я знайшов за допомогою PlayCanvas 编辑器 MCP 服务器.

Поширені запитання

Для чого використовується сервер MCP PlayCanvas 编辑器 MCP 服务器?

PlayCanvas 编辑器 MCP 服务器 — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP PlayCanvas 编辑器 MCP 服务器 з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати PlayCanvas 编辑器 MCP 服务器 з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP PlayCanvas 编辑器 MCP 服务器 із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши PlayCanvas 编辑器 MCP 服务器, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP PlayCanvas 编辑器 MCP 服务器 до TypingMind?

PlayCanvas 编辑器 MCP 服务器 працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP PlayCanvas 编辑器 MCP 服务器 у TypingMind?

PlayCanvas 编辑器 MCP 服务器 надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP PlayCanvas 编辑器 MCP 服务器?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо PlayCanvas 编辑器 MCP 服务器 потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇