Send a bounded component-and-claim model. Get back a reproducible layout that passes the declared checks — or the exact constraints still in conflict. An LLM geometry guess is never a verified result.
Layout defects hide in undeclared space. A battery bay blocks its own eject path. A stowed leg sits inside a steered tyre envelope. A cable lies on a moving part. Each looks like a one-off bug. They are one class of bug: a part invaded a volume that nothing declared.
MechKit makes the volumes first-class. Every part claims its solid. Every mechanism claims its virtual space: the eject corridor, the swing envelope, the service access, the route with clearance, the thermal path. One generic audit finds every illegal overlap. One deterministic planner repairs what it can — inside your declared move bounds — and names what it cannot.
The audit tells you what is wrong. The planner tells you what is a layout problem and what is a design decision.
{
"schema_version": "1.0",
"units": "mm",
"envelope": {"min": [-800,-700,0],
"max": [ 800, 700,700]},
"parts": [
{"id":"battery","size":[400,300,200],
"mass_kg":25,"position":[-200,0,410],
"movable":false},
{"id":"ebox","size":[250,220,180],
"mass_kg":8,"position":[-200,320,400],
"movable":true,
"move_bounds":{"x":[-500,500],
"y":[-400,400],
"z":[0,0]}}],
"claims": [
{"id":"eject_batt","owner":"battery",
"type":"eject","direction":"+y",
"clearance":350,"margin":30}],
"objective": "valid_layout"
}
{
"status": "SOLVED",
"solver": {"name":"mechkit",
"version":"0.1.0",
"deterministic":true},
"moves": [{"part":"ebox",
"delta_mm":[-475,-100,0]}],
"checks": {"before_open":1,
"after_open":0,"all_pass":true},
"mass": {"total_kg":33.0,
"cog_mm":[-315.2,53.3,407.6]},
"request_hash":"sha256:0abc2287c184…",
"result_hash":"sha256:…",
"artifacts": {"audit":"…/audit.json",
"plan":"…/plan.svg"},
"billing": {"price_usd":1.0,
"charged":true,"credit_delta":-1}
}
Same normalized request, same engine version → byte-identical canonical result. Every artifact carries the request and result hashes, so a paid answer can be replayed and verified by another machine.
| Status | Meaning | Charge |
|---|---|---|
| SOLVED | The rebuilt model passes every required final check. | $1 |
| UNRESOLVED | Valid request; allowed repairs ran out; the remaining conflicts and margins are returned in full. | $1 |
| UNSAT_DECLARED | The declared hard constraints cannot all hold; the conflict set proves it. A useful failure is still an answer. | $1 |
| INVALID | Malformed or internally inconsistent. Rejected in preflight with a stable reason code. | free |
| TOO_LARGE | Valid in principle, above the published Basic Solve limits (50 parts, 200 claims, 20 movable). | free |
| ERROR | MechKit failed internally. The reserved credit is released automatically. | refunded |
| may overlap → | solid | eject | swing | service | route | thermal |
|---|---|---|---|---|---|---|
| solid | no | no | no | no | no | no |
| eject | no | no | no | yes | no | yes |
| swing | no | no | yes | yes | no | yes |
| service | no | yes | yes | yes | yes | yes |
| route | no | no | no | yes | yes | yes |
| thermal | no | yes | yes | yes | yes | yes |
Operating and service space is explicit, not implied. Jointed pairs are designed integrations, not defects, and the audit skips them.
| Price | Buy once | Or every month |
|---|---|---|
| $10 | 10 credits | 12 / month |
| $25 | 25 credits | 30 / month |
| $100 | 110 credits | 132 / month |
No tokens, no CPU seconds, no planner iterations. A subscription gives 20% more credits for the same money; monthly credits expire at the end of the period, credits bought once never do, and the expiring ones are spent first. Full terms on sheet 4.
An empty balance returns HTTP 402 with every funding path, so an agent can route payment — to its operator, or to its own funded account — and retry the same request with the same idempotency key.
curl -X POST https://mechkit.macleodlabs.com/v1/solve \
-H "X-Api-Key: $MECHKIT_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d @cart.json
{"mcpServers": {"mechkit-solve": {
"type": "http",
"url": "https://mechkit.macleodlabs.com/mcp"
}}}
# tools: mechkit_solve_capabilities · mechkit_solve_call
# mechkit_solve_buy_credits
# One file teaches an agent the schema, the verdicts, # idempotent retries, and how to walk a human through # paying. Pick your client in section 09 below.
Every guide is served from this domain, so an agent can fetch its own instructions. Each one teaches the same things: read the contract before building a request, keep retries idempotent, report the verdict without softening it, and — when the balance is empty — show the human the price and the payment link rather than going quiet.
# 1. add the server claude mcp add --transport http mechkit \ https://mechkit.macleodlabs.com/mcp # 2. add the skill curl -sL https://mechkit.macleodlabs.com/clients/SKILL.md \ -o ~/.claude/skills/mechkit-solve/SKILL.md
Or install the plugin, which carries the skill and
a worked request:
/plugin marketplace add macleodlabs-ai/mechkit
# Codex and anything else that reads AGENTS.md
curl -sL https://mechkit.macleodlabs.com/clients/AGENTS.md \
-o AGENTS.md
Drop it at the root of the repo the agent works in. Append to an existing AGENTS.md rather than overwriting it.
mkdir -p .cursor/rules
curl -sL https://mechkit.macleodlabs.com/clients/cursor.mdc \
-o .cursor/rules/mechkit-solve.mdc
Ships with alwaysApply: false — Cursor
pulls it in when a task matches the description, so it costs no
context the rest of the time.
# Grok, Gemini, a custom agent, anything that speaks HTTP curl -sL https://mechkit.macleodlabs.com/clients/GENERIC.md # machine-readable summary, for discovery curl -sL https://mechkit.macleodlabs.com/llms.txt
Paste the guide into a system prompt. The service
also publishes
/.well-known/oauth-protected-resource, so an agent
can find out how to get a token before it has one.
All four are generated from the same service config as the API itself, so they cannot drift from what the service actually charges or accepts.
SOLVED means the declared model passed the declared deterministic MechKit checks. It does not mean the design is structurally sound, thermally adequate, electrically safe, manufacturable, compliant, or suitable for safety-critical use. No FEA, no CFD, no CAD kernel, no STEP. Repair is greedy, not globally optimal — and the response says so.