MCP server

Let a local agent search the catalog, read node docs, validate Toys and edit your drafts.

Status: Implemented as a private stdio package, not yet published to npm. A hosted remote endpoint needs OAuth for users and is planned.

@tunetoys/mcp is a Model Context Protocol server. It is an ordinary API client: every call goes through the SDK with your developer key, so it gets exactly that key's scopes, limits and owner checks.

Configuration#

VariableDefaultMeaning
TUNETOYS_API_KEYnoneDeveloper key. Without it only anonymous read tools appear.
TUNETOYS_API_BASEhttps://tune.toys/v1API base, for example a local API
claude mcp add tunetoys --env TUNETOYS_API_KEY=tt_... -- node /path/to/TuneToys/packages/mcp/src/main.ts

Keep the key in the client's secret configuration, never in a repository.

Tools#

ToolNeedsBehavior
search_catalog, get_listing, get_productnonePublic reads
get_node_docsnoneNode contract and docs, local
validate_toy_jsonnoneValidates against the Toy schema, local
get_toy_sourcenone or read:projectsA release by digest, or your draft
list_my_projectsread:projectsYour drafts
propose_operationsread:projectsApplies a batch locally and reports; writes nothing
create_draft_project, apply_operationswrite:projectsCreates a draft; applies revision-checked operations
update_listing_fieldswrite:listingsSaves listing overrides; does not publish

Safety#

Write tools carry destructiveHint, accept at most 64 operations per batch and share a budget of 20 write calls per process. Conflicts surface as tool errors; the agent must re-read and propose again. No tool publishes, changes visibility, uploads media or touches billing.

Edit this page on GitHub · Updated 2026-11-01

esc

↑ ↓ move↩ open⌘↩ new tabesc close