
dmitriygolub/threejs-devtools-mcp 是从 https://github.com/dmitriygolub/threejs-devtools-mcp. 导入的 MCP 服务器候选
概览
dmitriygolub/threejs-devtools-mcp 是从 https://github.com/dmitriygolub/threejs-devtools-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
MCP 服务器用于实时检查Three.js场景,在浏览器中实时尝试更改,并将其转化为代码。69 个工具涵盖对象、材质、着色器、纹理、动画、性能和内存,以及网站审核、视频帧捕捉和 Playwright 辅助工具。
对你的项目零更改。 支持原版Three.js和React Three Fiber,运行WebGLRenderer和WebGPURenderer。
布置
1.添加MCP服务器
克劳德密码
Claude Desktop
加到claude_desktop_config.json:
光标
在你的项目中添加.cursor/mcp.json:
或者使用 HTTP 传输——参见光标设置指南。
风帆冲浪
添加到~/.codeium/windsurf/mcp_config.json:
VS Code(副驾驶)
加到.vscode/mcp.json:
OpenCode
在你的项目中添加opencode.json:
2.启动你的开发服务器并打开浏览器
像往常一样启动你的Three.js开发服务器(npm run dev。MCP服务器会自动检测package.json的端口,并在localhost:9222打开浏览器,注入了devtools桥接。
保持浏览器标签页打开。 MCP服务器通过WebSocket桥接器与你的场景通信。关闭标签页=工具停止工作。
3.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
threejs-devtools-mcp
MCP server for inspecting Three.js scenes in real time, trying changes live in the browser, and turning them into code. 69 tools cover objects, materials, shaders, textures, animation, performance and memory, plus website audits, video frame capture and Playwright helpers.
Zero changes to your project. Works with vanilla Three.js and React Three Fiber, on WebGLRenderer and WebGPURenderer.
Setup
1. Add the MCP server
2. Start your dev server and open the browser
Start your Three.js dev server as usual (npm run dev). The MCP server auto-detects the port from package.json and opens a browser at localhost:9222 with the devtools bridge injected.
Keep the browser tab open. The MCP server talks to your scene through a WebSocket bridge. Close the tab = tools stop working.
3. Ask the AI about your scene
安装
npx -y threejs-devtools-mcp配置
{
"mcpServers": {
"threejs-devtools-mcp": {
"command": "npx",
"args": ["-y", "threejs-devtools-mcp"]
}
}
}