editor-mcp-server
by playcanvas·★ 108·综合分 46
用于通过实体和资产管理工具自动化 PlayCanvas 编辑器的 MCP 服务器。
概述
这个 MCP 服务器提供了全面的工具,通过 LLM 交互自动化 PlayCanvas 编辑器操作。它允许列出、创建、修改、删除实体和资产,以及场景设置管理和视口控制。该服务器专门设计用于与 Claude Desktop 或 Cursor 配合使用,需要 Chrome 扩展程序才能连接编辑器。
试试问 AI
装完之后,这里有 3 个你可以让 AI 做的事:
什么时候选它
如果您正在使用PlayCanvas并希望通过AI代理自动化场景设置、资产管理或实体操作,应选择此服务器。
什么时候不要选它
如果您需要使用其他3D引擎或需要支持多编辑器,应避免使用此服务器,因为它专门为PlayCanvas设计。
此 server 暴露的工具
从 README 抽取出 12 个工具list_entitiesList entities in the PlayCanvas scene
create_entitiesCreate new entities in the scene
delete_entitiesDelete entities from the scene
modify_entitiesModify properties of existing entities
add_componentsAdd components to entities
list_assetsList assets available in the project
create_assetsCreate new assets in the project
set_script_textUpdate the text of a script asset
capture_viewportCapture a screenshot of the current viewport
query_scene_settingsQuery current scene settings
store_searchSearch for assets in the PlayCanvas store
store_getGet a specific asset from the PlayCanvas store
可对比工具
安装
安装
- 安装依赖:
npm install
- 安装 Chrome 扩展程序:
- 访问 chrome://extensions/ 并启用开发者模式 - 点击 加载已解压的扩展程序 并选择 extension 文件夹 - 加载 PlayCanvas 编辑器
- 配置 MCP 服务器(Claude Desktop 示例):
``json { "mcpServers": { "playcanvas": { "command": "npx", "args": [ "tsx", "/path/to/editor-mcp-server/src/server.ts" ], "env": { "PORT": "52000" } } } } ``
- 连接编辑器:
- 在 Chrome 中打开 PlayCanvas 编辑器 - 点击扩展图标并选择 PlayCanvas Editor MCP 扩展 - 点击 连接(确保端口与您的 MCP 配置匹配)
editor-mcp-server 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。