Skip to main content
Glama

TOYBOX MCP Server

by isnbh0

publish_artifact

Enables users to publish React components, SVGs, or Mermaid diagrams as artifacts to a personal GitHub Pages portfolio. Artifacts are identified using a slug-based ID with UUID suffix for unique tracking.

Instructions

Publish a new artifact to your TOYBOX. Artifacts are uniquely identified by a slug-based ID with UUID suffix.

Input Schema

NameRequiredDescriptionDefault
codeYesThe React component code for the artifact (do not include React import - uses new JSX transform)
metadataYes

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "The React component code for the artifact (do not include React import - uses new JSX transform)", "type": "string" }, "metadata": { "properties": { "createdAt": { "description": "ISO date string", "type": "string" }, "description": { "description": "Optional description", "type": "string" }, "folder": { "description": "Optional folder grouping", "type": "string" }, "slug": { "description": "URL-friendly identifier in lowercase kebab-case (e.g., \"my-component\", \"todo-app\"). Only lowercase letters, numbers, and hyphens allowed.", "type": "string" }, "tags": { "description": "Optional tags", "items": { "type": "string" }, "type": "array" }, "title": { "description": "Display title for the artifact (can include any characters, emojis, etc.)", "type": "string" }, "type": { "description": "Artifact type", "enum": [ "react", "svg", "mermaid" ], "type": "string" }, "updatedAt": { "description": "ISO date string", "type": "string" } }, "required": [ "title", "slug", "type", "createdAt", "updatedAt" ], "type": "object" } }, "required": [ "code", "metadata" ], "type": "object" }
Install Server

Other Tools from TOYBOX MCP Server

Related Tools

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/isnbh0/toybox-mcp-server'

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