API & MCP
Everything a person can do on Living Hinge Pattern Generator (laser flex), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwiselivinghinge.usefulweb.app/api/v1/calculate– run Living Hinge Pattern Generator (laser flex)GET https://kerfwiselivinghinge.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Living Hinge Pattern Generator (laser flex)
Generate a living hinge (kerf bending, flex pattern) for plywood, MDF or acrylic: straight, wave or zigzag rows of staggered cuts across a bend zone. The zone length follows from the bend angle and the inside radius on the neutral axis; you also get the number of rows, the twist each strip has to take, the size of the torsion links and the total cut length.
| Field | Type | Default | Description |
|---|---|---|---|
width | number | 140 | Panel width across the bend (mm) |
height | number | 60 | Panel height along the bend axis (mm) |
thickness | number | 3 | Material thickness (mm) |
pattern | select (straight, wave, zigzag) | "straight" | Cut pattern |
cut | number | 18 | Cut length (mm) |
bridge | number | 3 | Bridge between cuts (mm) |
pitch | number | 1.6 | Row spacing (mm) |
angle | number | 90 | Bend angle (degrees) |
radius | number | 15 | Inside bend radius (mm) |
zone | number | 0 | Bend zone length (mm, 0 = from angle and radius) |
kerf | number | 0.15 | Kerf compensation for the outline (mm) |
sheetWidth | number | 0 | Sheet or laser bed width (mm, 0 = no sheet). With a sheet size the parts are nested onto as many sheets as needed; 0 lays every part out in one drawing. |
sheetHeight | number | 0 | Sheet or laser bed height (mm, 0 = no sheet) |
spacing | number | 4 | Gap between parts (mm). For CNC routing use at least the cutter diameter. |
labels | boolean | true | Part names on a separate label layer |
paper | select (fit, a3, a4, a5, a6, b5, letter, legal, tabloid, halfletter) | "fit" | PDF pages |
Example request
90° corner with 15 mm radius in 3 mm plywood
curl -X POST https://kerfwiselivinghinge.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"width":140,"height":60,"thickness":3,"angle":90,"radius":15}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://kerfwiselivinghinge.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_living_hinge - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-living-hinge
{
"mcpServers": {
"kerfwise-living-hinge": { "type": "http", "url": "https://kerfwiselivinghinge.usefulweb.app/mcp" }
}
}