Skip to main content
Glama

PlayCanvas Editor MCP Server

Official
by playcanvas
store.ts1.67 kB
import { type McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { z } from 'zod'; import { type WSS } from '../wss'; const orderEnum = { 'asc': 1, 'desc': -1 }; export const register = (mcp: McpServer, wss: WSS) => { mcp.tool( 'store_search', 'Search for an asset in the store', { // store: z.enum(['playcanvas', 'sketchfab']).optional(), search: z.string(), order: z.enum(['asc', 'desc']).optional(), skip: z.number().optional(), limit: z.number().optional() }, ({ search, order, skip, limit }) => { return wss.call('store:playcanvas:list', { search, order: order ? orderEnum[order] : undefined, skip, limit }); } ); mcp.tool( 'store_get', 'Get an asset from the store', { // store: z.enum(['playcanvas', 'sketchfab']).optional(), id: z.string() }, ({ id }) => { return wss.call('store:playcanvas:get', id); } ); mcp.tool( 'store_download', 'Download an asset from the store', { // store: z.enum(['playcanvas', 'sketchfab']).optional(), id: z.string(), name: z.string(), license: z.object({ author: z.string(), authorUrl: z.string().url(), license: z.string() }) }, ({ id, name, license }) => { return wss.call('store:playcanvas:clone', id, name, license); } ); };

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