Skip to main content
Glama

PlayCanvas Editor MCP Server

Official
by playcanvas
material.ts542 B
import { type McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { type WSS } from '../../wss'; import { AssetIdSchema, RgbSchema } from '../schema/common'; export const register = (mcp: McpServer, wss: WSS) => { mcp.tool( 'set_material_diffuse', 'Set diffuse property on a material', { assetId: AssetIdSchema, color: RgbSchema }, ({ assetId, color }) => { return wss.call('assets:property:set', assetId, 'diffuse', color); } ); };

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