Skip to main content
Glama
playcanvas

PlayCanvas Editor MCP Server

Official
by playcanvas

store_get

Retrieve specific assets from the PlayCanvas Editor MCP Server by providing the asset ID, enabling efficient management and integration of 3D web application resources.

Instructions

Get an asset from the store

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes

Implementation Reference

  • Registration of the MCP tool 'store_get', including inline schema and handler function that calls wss.call('store:playcanvas:get', id).
    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); } );
  • Input schema for store_get tool: requires 'id' string.
    { // store: z.enum(['playcanvas', 'sketchfab']).optional(), id: z.string() },
  • Handler function for store_get: extracts 'id' and calls the internal 'store:playcanvas:get' method via wss.
    ({ id }) => { return wss.call('store:playcanvas:get', id); }
  • Underlying helper method 'store:playcanvas:get' called by the store_get handler, fetches asset data via REST API.
    wsc.method('store:playcanvas:get', async (id) => { try { const data = await rest('GET', `store/${id}`); if (data.error) { return { error: data.error }; } log(`Got store item(${id})`); return { data }; } catch (e) { return { error: e.message }; } });

Latest Blog Posts

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