Skip to content

An agent's workbench

Find a piece, read its record, then stand it in a scene. These are our live HTTP bridge tools—not promises about a client integration.

Get an API key

  1. Sign in to make a key.
  2. Open API keys, name a key and create it. The full key (msk_…) is shown once; copy it into your agent's config.
  3. Send it on every call as Authorization: Bearer msk_… (or x-api-key: msk_…).
No key
On the tool bridge: initialize, tools/list and get_help. Public REST catalogue and Free CDN reads are also available without a key
Free account
20 tool calls per UTC day, counted per account across all its keys. The 21st returns HTTP 429, JSON-RPC -32029
Paid account
Unlimited: an active Pro or Founders membership, or any paid purchase (a single, a kit or a pack)
Headers
Metered replies include X-RateLimit-Limit and X-RateLimit-Remaining ('unlimited' when paid); X-RateLimit-Reset is the next UTC midnight
Missing or bad key
HTTP 401, JSON-RPC -32001

Connect over HTTP

tools-list.sh
BASE=https://www.meshsmiths.com
# Discovery needs no key
curl -fsS -X POST "$BASE/api/mcp" -H 'Content-Type: application/json'   -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
# Keyed tools need your own account key (get_help is also public)
curl -sS -X POST "$BASE/api/mcp" -H 'Content-Type: application/json'   -H "Authorization: Bearer $MESHSMITHS_API_KEY"   -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"who_am_i","arguments":{}}}'
initialize.sh
BASE=https://www.meshsmiths.com
curl -fsS -X POST "$BASE/api/mcp" -H 'Content-Type: application/json'   -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}'

Check both HTTP status and the JSON-RPC body: missing or invalid keys return 401 (-32001), exhausted daily quota returns 429 (-32029), and unavailable tool calls return 503. A tool error is a result marked isError: true on HTTP 200, with the message as text and in its error field: arguments that do not match a tool's inputSchema, and an unknown or held piece or kit id. Unknown methods or tools use -32601 even on HTTP 200. Keyed account flows require a working database; public discovery does not prove those flows work.

Read the agent brief · Discovery index · REST directory · Framework guides · Usage rights · Contact support

The eleven tools

tools/list returns these eleven names with descriptions and input schemas. Read the live schemas before calling; transport authentication uses headers, not a legacy key argument.

ToolArgumentsReturnsKey
search_piecesq?, line?, kit?, free?, max_triangles?Catalogue matches and coverageAPI key
get_pieceidDimensions, knobs, delivery and accessAPI key
find_matchingidCompatible catalogue piecesAPI key
get_variantid, want?, knobs?Suggested knob values; generic knobs are ignoredAPI key
preview_sceneidsA /scene?ids=… URL, not a render or exportAPI key
list_kitsnoneKit directoryAPI key
get_kitidMembers and assembly conventionsAPI key
get_terrainidTerrain sample at the originAPI key
who_am_inoneTier, plan, used_today, limit, owned_kitsAPI key
get_helpnoneAPI conventionsno key
report_needneed, kind?, context?Database-backed need report; unavailable if storage failsAPI key

REST addresses

GET /api lists these addresses with the same parameters. A malformed parameter answers 400 naming it; an unknown id answers 404.

AddressAnswersParameters
GET /apithis indexnone
GET /api/piecessearchq: any text; line: Characters, Environments, Props, VFX-web; kit: a kit id from GET /api/kits; free: 1, true, 0 or false; max_triangles: a number; min_triangles: a number; sort: latest, tris, featured, name
GET /api/pieces/{id}piece detailnone
GET /api/pieces/{id}/matchingwhat belongs in a scene with itnone
GET /api/pieces/{id}/variantplain words to knobswant: any text
GET /api/kitskitsnone
GET /api/kits/{id}kit + usage + partsnone
GET /api/terrain/{id}ground samples, at 0,0 unless scatter or at says otherwisescatter: a whole number; at: x,z pairs joined by ;
GET /api/mewho_am_inone
POST /api/demandreport_neednone
POST /api/mcpMCP JSON-RPCnone

From a cold start to GLB bytes

This released Anvil is a transport example, not a blanket reuse licence or a composed scene export.

anvil-walk.sh
BASE=https://www.meshsmiths.com
curl -fsS "$BASE/prompt.txt"
curl -fsS "$BASE/api/pieces?q=anvil"
curl -fsS "$BASE/api/pieces/msh_anvil"
curl -fsS -X POST "$BASE/api/mcp" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
curl -fS "$BASE/bank/props/msh_anvil/master.glb" -o anvil.glb

Fetch the actual Anvil GLB. Inspect its first four bytes: glTF. Keep its licence and access findings with your placement manifest.

Scene conventions

Units
Metres; Y-up; front +Z
Origin
Ground at y=0, centred in X/Z
Knobs
Use returned names and values; keep kit-wide knobs consistent
Budget
Free access uses a curated catalogue allowlist, not a triangle threshold. The API index describes this as curated-allowlist; use the live per-piece free flag, access record and /api/pieces?free=1 filter. Sum all placements for your scene budget. A piece with a Web GLB reports that file's triangles; treat the number as an estimate for its full GLB, FBX and USDZ.

Access and gaps

Pro is $39/month; yearly is $390 (assumed at ten monthly payments). Founders is $150 for a lifetime seat. One art asset is $5; every kit pack is $29. Paid access does not release unfinished files.

Public previews and discovery do not grant additional rights, including model-training rights. The licencegoverns use; this documentation does not amend it. llms.txt is an optional discovery file, not a Google ranking input or a promise of AI citations.

Hotlink a piece

Use the catalogue ID directly; no download-token exchange for free pieces.

cdn.sh
BASE=https://www.meshsmiths.com
curl -fS "$BASE/cdn/workshop-lantern.json"
curl -fS "$BASE/cdn/workshop-lantern.glb" -o lantern.glb
# Browser module: import { load } from '/cdn/workshop-lantern.js'
# await load(); resolves to a three.js GLTF result
# Configure with ?p.tallness=1.2; use the returned knob schema.

GET /cdn/<pieceId>.json returns metadata and knob defaults; .glb returns a binary model; .js exports a GLTFLoader wrapper, not a procedural factory. Use a three.js import map in the browser. Unknown knobs and invalid values return 400; range values are plain decimals such as 1.2. Every piece serves configured variants. A file-backed variant carries what glTF materials can hold (colour, roughness and metalness factors) and scale; preview-only knobs leave the file unchanged. Piece IDs match case-insensitively; an ID that matches no piece returns 404. Pro access uses the existing catalogue entitlement policy and returns 402 with plan information when access is missing. A piece that is not released returns 409 for everyone, whatever the plan.