spells-mcp

v0.2.2
@ricky.instrument/spells-mcp Checked 9 hours ago Published 1 month ago

Model Context Protocol (MCP) server and prototyping harness for Instrument Wizard Spells

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

deploy_prototype

Deploy the current local prototype directory to Wizard Spells, upload files directly to cloud storage, and return the live URL. Supports creating a new spell (action='add') or updating an existing spell (action='update'). ⚠️ CRITICAL: NEVER invoke this tool autonomously or proactively. ONLY call when EXPLICITLY commanded by the user. ⚠️ SLUG REQUIREMENT: You MUST ask the user to provide their desired slug first, or confirm the slug in spell.config.json. NEVER invent, guess, or auto-generate slugs from titles. The tool will check if the slug is already taken and warn you. 🛑 RETRY LIM…

ParameterTypeDescription
actionstringAction to perform: 'add' publishes a new spell, 'update' updates/overwrites an existing spell (defaults to 'add')
descriptionstringSummary of what this prototype demonstrates
pathstringLocal directory containing prototype files (defaults to '.')
permissionsobjectAccess permissions (defaults to permissions in spell.config.json or { users: ['*@instrument.com', '*@google.com'] })
project_keystringProject key from list_projects (defaults to project in spell.config.json). MUST be an active project listed on Spells.
rewrite_asset_urlsbooleanAutomatically rewrite root-relative asset paths (default: true)
slugstringCustom URL slug (defaults to slug in spell.config.json). Must be explicitly chosen by the user.
titlestringHuman-readable title (defaults to title in spell.config.json)
updatebooleanConvenience flag: set to true to update an existing spell instead of creating a new one

create_version

Create a new child version under an existing anchor spell (e.g., adding v2 or dark-mode) and deploy local files. ⚠️ CRITICAL: ONLY call this tool when the user EXPLICITLY asks to publish or create a version on the Spells platform. ⚠️ SLUG APPENDAGE REQUIREMENT: NEVER invent or auto-generate a slug appendage. You MUST ask the user to provide their desired slug_appendage (e.g. 'v2', 'dark-mode') before calling this tool. The tool will check if the version slug is already taken and warn you. 🛑 RETRY LIMIT: If deployment fails twice, STOP TRYING immediately. Report the errors to the use…

ParameterTypeDescription
anchor_slug *stringThe slug of the original anchor spell to create a version under
slug_appendage *stringVersion appendage suffix (e.g. 'v2', 'dark-mode'). Must be explicitly chosen by the user.
copy_filesbooleanWhether to inherit files from previous version before applying local files
descriptionstringOptional description for this version
pathstringLocal directory containing the prototype files (defaults to '.')
rewrite_asset_urlsbooleanAutomatically rewrite root-relative asset paths (default: true)
titlestringOptional title for this version (defaults to anchor title + appendage)

list_projects

List active client projects in Wizard Spells (e.g. Nike, Google, Internal) to associate with prototypes. Prototypes MUST be assigned to one of these listed projects.

ParameterTypeDescription
active_onlybooleanOnly return active projects (default: true)

get_spell_status

Check the deployment and build status of a spell by slug.

ParameterTypeDescription
slug *stringSlug of the spell to check

scaffold_prototype

Scaffold a new prototype starter in the workspace with spell.config.json, .cursorrules, GEMINI.md, CLAUDE.md, docs/ (including docs/AI.md for the zero-key '__ai' Unified AI Gateway), and .agents/skills/ guidelines. Wizard Spells prototypes have built-in zero-key access to Gemini, Nano Banana / Imagen, Veo, Lyria, Live WebSockets, and Cloud TTS/STT via relative '__ai/...' endpoints using semantic model aliases ('spells-fast', 'spells-pro', 'spells-image', 'spells-video', 'spells-live', 'spells-music')—never ask the user for a GEMINI_API_KEY.

ParameterTypeDescription
clientstringLegacy synonym for project
descriptionstringSummary of what this prototype demonstrates
destinationstringDirectory to scaffold into (defaults to '.')
permissionsobjectAccess permissions (defaults to { users: ['*@instrument.com', '*@google.com'] })
projectstringActive project key from list_projects (e.g. 'nike', 'google', 'internal', 'legacy')
slugstringCustom URL slug (defaults to slugified title)
templatestringStarter template (creative-canvas, threejs-3d, vite-tailwind, or fullstack-node)
titlestringHuman-readable title for the prototype

validate_prototype

Validate the local prototype directory without deploying. Checks entry point, files, asset URLs, AI Gateway ('__ai') usage, harness v2.0.0 installation (auto-installing/upgrading GEMINI.md and docs/AI.md if needed), and verifies spell.config.json (title, slug, project, and permissions against active Spells projects).

ParameterTypeDescription
install_harnessbooleanAutomatically install or repair missing 3-tier harness files (GEMINI.md, docs/AI.md, docs/, .agents/skills/) (default: true)
pathstringDirectory to validate (defaults to '.')
permissionsobjectOptional override for permissions
project_keystringOptional override for project key
slugstringOptional override for slug
titlestringOptional override for title