Skip to main content
Glama

PlayCanvas Editor MCP Server

Official
by playcanvas
import { type McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { type WSS } from '../../wss'; export const register = (mcp: McpServer, wss: WSS) => { mcp.tool( 'set_script_text', 'Set script text', { assetId: z.number(), text: z.string() }, ({ assetId, text }) => { return wss.call('assets:script:text:set', assetId, text); } ); mcp.tool( 'script_parse', 'Parse the script after modification', { assetId: z.number() }, ({ assetId }) => { return wss.call('assets:script:parse', assetId); } ); };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/playcanvas/editor-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server