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
- Sign in to make a key.
- Open API keys, name a key and create it. The full key (
msk_…) is shown once; copy it into your agent's config. - Send it on every call as
Authorization: Bearer msk_…(orx-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
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":{}}}'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.
| Tool | Arguments | Returns | Key |
|---|---|---|---|
search_pieces | q?, line?, kit?, free?, max_triangles? | Catalogue matches and coverage | API key |
get_piece | id | Dimensions, knobs, delivery and access | API key |
find_matching | id | Compatible catalogue pieces | API key |
get_variant | id, want?, knobs? | Suggested knob values; generic knobs are ignored | API key |
preview_scene | ids | A /scene?ids=… URL, not a render or export | API key |
list_kits | none | Kit directory | API key |
get_kit | id | Members and assembly conventions | API key |
get_terrain | id | Terrain sample at the origin | API key |
who_am_i | none | Tier, plan, used_today, limit, owned_kits | API key |
get_help | none | API conventions | no key |
report_need | need, kind?, context? | Database-backed need report; unavailable if storage fails | API key |
REST addresses
GET /api lists these addresses with the same parameters. A malformed parameter answers 400 naming it; an unknown id answers 404.
| Address | Answers | Parameters |
|---|---|---|
GET /api | this index | none |
GET /api/pieces | search | q: 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 detail | none |
GET /api/pieces/{id}/matching | what belongs in a scene with it | none |
GET /api/pieces/{id}/variant | plain words to knobs | want: any text |
GET /api/kits | kits | none |
GET /api/kits/{id} | kit + usage + parts | none |
GET /api/terrain/{id} | ground samples, at 0,0 unless scatter or at says otherwise | scatter: a whole number; at: x,z pairs joined by ; |
GET /api/me | who_am_i | none |
POST /api/demand | report_need | none |
POST /api/mcp | MCP JSON-RPC | none |
From a cold start to GLB bytes
This released Anvil is a transport example, not a blanket reuse licence or a composed scene export.
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.glbFetch 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.
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.