OSH Cut
Check custom metal part files and price them at every lead time. No account or API key needed.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"mcp": {
"url": "https://app.oshcut.com/api/mcp"
}
}
}원격 엔드포인트
https://app.oshcut.com/api/mcpstreamable-http할 수 있는 일
도구 목록
도구 (13)
🟡add_parts_to_cart(parts, order_guid, files, jmespath)
Uploads one or more CAD files into a cart and returns its `cart_url`: the cart named by `order_guid`, or a new one. Each part is processed, configured with the given options, and checked for manufacturability. Prices, lead times, and checkout are on the cart page, as are per-hole options (tapping, countersinking, hardware). Upload bent parts as 3D files (e.g. STEP); bends are detected automatically. Per-file failures are reported in the response's `parts` array rather than failing the whole request.
입력 스키마
{
"type": "object",
"properties": {
"parts": {
"type": "string",
"description": "Optional JSON array of per-file options, matched by filename, e.g. [{\"file\": \"bracket.step\", \"qty\": 5, \"name\": \"Bracket\", \"material_sheet_id\": 47, \"finishing\": \"deburring\"}]. Tube parts take material_tube_id instead of material_sheet_id. Other options: part_type ('sheetMetal' | 'tube', a hint for ambiguous parts), units ('in' | 'mm', DXF only), finishing ('none' | 'deburring' | 'brushed' | 'bead_blasting' | 'tumbling'), finish_grain_direction ('vertical' | 'horizontal', for brushed), grain_direction ('vertical' | 'horizontal' | 'none', for materials with grain), and powder coating via powder_id (from list_powder_colors) with powder_zinc_plated / powder_clear_coat booleans, which excludes finishing. Upload tubes that join other tubes as 3D models with their copes modeled: the tube laser cuts copes, notches, holes and slots before bending. Only a round bent tube with plain square ends and no cutouts can be built from coordinates instead: give an entry a \"tube\" and a material_tube_id (round stock that can be bent), and upload no file for it: {\"file\": \"frame\", \"material_tube_id\": 12, \"tube\": {\"lra\": [{\"length\": 10, \"rotation\": 0, \"angle\": 90}, {\"length\": 6, \"rotation\": 0, \"angle\": 0}]}}. lra rows are each straight's length (inches), then the rotation of the next bend's plane and its bend angle (degrees), 0 on the last row. Or give \"points\": the centerline's start, the intersections of its straights, and its end, as {x, y, z} in inches. The bend radius comes from the material."
},
"order_guid": {
"type": "string",
"description": "An existing cart (draft order) to add the files to, from an earlier call; omit to start a new cart"
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "File name including its extension, which sets the file type"
},
"content_base64": {
"type": "string",
"description": "The file contents, base64-encoded"
}
},
"required": [
"filename",
"content_base64"
]
},
"description": "The CAD files, in any format get_capabilities lists"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}🟡check_manufacturability(materialId, bendDieId, summary, units, file, ...)
Runs OSH Cut's design-for-manufacturing checks on a sheet metal CAD file (STEP, DXF, SolidWorks, Inventor, etc.) in a given sheet material, without saving anything. Errors must be fixed before the part can be ordered; warnings are advisory. Upload bent parts as 3D files so bends are detected.
입력 스키마
{
"type": "object",
"properties": {
"materialId": {
"type": "integer",
"description": "The material_sheet_id to check against, from list_materials"
},
"bendDieId": {
"type": "integer",
"description": "Press brake die to bend with; chosen automatically when omitted"
},
"summary": {
"type": "boolean",
"description": "Return the findings (with the website's wording), part size, and bend count instead of the full processed part",
"default": false
},
"units": {
"type": "string",
"enum": [
"in",
"mm"
],
"description": "Units for dimensions in the summary",
"default": "in"
},
"file": {
"type": "object",
"properties": {
"filename": {
"type": "string",
"description": "File name including its extension, which sets the file type"
},
"content_base64": {
"type": "string",
"description": "The file contents, base64-encoded"
}
},
"required": [
"filename",
"content_base64"
],
"description": "The CAD file"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"materialId",
"file"
]
}🟢get_capabilities(jmespath)
Summary of what OSH Cut makes: processes, finishing options, accepted CAD file types, material families, and size limits.
입력 스키마
{
"type": "object",
"properties": {
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}🟢get_cart(order_guid, jmespath)
Lists the parts in a cart (draft order) or order, with each one's part_id, name, and quantity. Use get_part for a part's material and holes, and each entry's `guid` with update_cart_part and remove_cart_parts.
입력 스키마
{
"type": "object",
"properties": {
"order_guid": {
"type": "string",
"description": "The order guid: the last path segment of the cart link, e.g. O-1c1b0983-9560-48d9-89e7"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"order_guid"
]
}🟢get_part(partId, version, summary, jmespath)
Gets a part's processed geometry. With `summary`, returns what process_part can change: its material, size, the sheet thickness of its 3D model, finishing, powder, notes, and every contour with its id (round holes with their tapping, countersink, or hardware; bends with their angle; and other lines with their cutting method), in inches.
입력 스키마
{
"type": "object",
"properties": {
"partId": {
"type": "string",
"description": "The part_id from get_cart"
},
"version": {
"type": "string",
"description": "Which version to read: 'latest' for the current one"
},
"summary": {
"type": "boolean",
"description": "Return a summary instead of the full geometry, which is large",
"default": false
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"partId"
]
}🟢list_hardware(material_sheet_id, jmespath)
Lists the PEM self-clinching hardware (nuts, studs, standoffs) that can be pressed into sheet parts, with the sheet thickness range, hole size, and edge distance each needs. Dimensions are in inches. Pass a material_sheet_id to list only the hardware that can be installed in that sheet.
입력 스키마
{
"type": "object",
"properties": {
"material_sheet_id": {
"type": "integer",
"description": "Only hardware that fits this sheet material and thickness (a material_sheet_id)"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}🟢list_materials(jmespath)
Lists every sheet and tube material, with thickness, size limits, and the processes (bending, tapping, countersinking, finishing) each one allows. Dimensions are in inches. `materialSheets[].id` is a material_sheet_id and `materialTubes[].id` a material_tube_id; `material_id` joins either to its entry in `materialTypes`.
입력 스키마
{
"type": "object",
"properties": {
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}🟢list_powder_colors(jmespath)
Lists the powder coat colors, with finish, texture, and hex color. Only `enabled` colors can be ordered.
입력 스키마
{
"type": "object",
"properties": {
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}🟢list_taps(jmespath)
Lists the threads OSH Cut can tap (inch and metric), for process_part's holeThread. Which ones suit a hole depends on its diameter and the sheet thickness; check_manufacturability or dfmChecks reports a thread that does not fit.
입력 스키마
{
"type": "object",
"properties": {
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
}
}⚪process_part(partId, version, recipe, description, summary, ...)
Changes a part in a cart by running a recipe, then saves it as the part's new latest version: its material, hole features (tapping, countersinking, PEM hardware), bends and other lines, finishing and powder coating, and notes. The recipes are listed under `recipe`. Run dfmChecks afterwards to see whether the part can still be made.
입력 스키마
{
"type": "object",
"properties": {
"partId": {
"type": "string",
"description": "The part_id from get_cart"
},
"version": {
"type": "string",
"description": "The version to start from: 'latest'"
},
"recipe": {
"type": "object",
"description": "The change to make, as {\"name\": <recipe>, ...args}. contourIds come from get_part; lengths are in the part's own units unless noted (get_part's native_units_per_inch converts). Material: setMaterialComplete {materialId: material_sheet_id}. Holes: setHoleFeature {contourIds, holeType: HOLE_TYPE_TAP | HOLE_TYPE_COUNTERSINK | HOLE_TYPE_HARDWARE | HOLE_TYPE_STANDARD (removes the feature), hardwareId (from list_hardware, with HOLE_TYPE_HARDWARE)}, then setHoleProperty {contourIds, propertyName, propertyValue} for holeThread (a thread from list_taps), hardwareId, hardwareInsertionSide ('top' | 'bottom'), countersinkOutsideDiameter, countersinkAngle (degrees), or countersinkSide ('top' | 'bottom' | 'both'). Lines: setCuttingMethodComplete {contourIds, cuttingMethod: CUTTING_METHOD_CUT | CUTTING_METHOD_ENGRAVE | CUTTING_METHOD_IGNORE | CUTTING_METHOD_BEND | CUTTING_METHOD_STITCH}; setBendAngleComplete {contourIds, angle (degrees, negative to bend the other way)}; setStitchProperty {contourIds, propertyName: stitchTabLength | stitchPatternLength, propertyValue}; setBendDieIdSource {bendDieIdSource: 'auto' | 'manual'} and setBendDieIdManualValue {bendDieIdManualValue: a die_id from get_part's bend_die.options}. Finishing: setPartProperties {properties: {finishingOption: 'none' | 'deburring' | 'brushed' | 'bead_blasting' | 'tumbling' | 'powder', finishingUserSelected: true}}; for powder, also setPowder {powder: <a color object from list_powder_colors>, powderOptions: {zincPlated, clearCoat}}. setPartProperties also sets grainDirection ('horizontal' | 'vertical' | 'none'), finishGrainDirection (for brushed), and notes (to OSH Cut, max 200 characters). Tubes: setMaterialTube {materialTubeId}; setTubeCenterline {lra: [{length (inches), rotation, angle (degrees)}]} or {points: [{x, y, z} (inches)]} reshapes a round bent tube created from coordinates (not one from a 3D model, which keeps its cutouts), as in add_parts_to_cart; changing setPartProperties {properties: {bendRadius}} (inches) needs setTubeCenterline again to keep the shape. Part: setMirrorOption {mirrored} (cut upside down), setScaleComplete {scaleFactor}, setUnitsComplete {unit: 'in' | 'mm'}, setPartType {partType: 'sheetMetal' | 'tube'}, newPart {} (resets every change). Checks: dfmChecks {} returns the design-for-manufacturing findings; run it after changes."
},
"description": {
"type": "string",
"description": "Recorded in the part's history"
},
"summary": {
"type": "boolean",
"description": "Return the part's operation errors and design-for-manufacturing findings (with the website's wording) instead of the operation results. Findings come only from a recipe that runs them, such as dfmChecks.",
"default": false
},
"units": {
"type": "string",
"enum": [
"in",
"mm"
],
"description": "Units for dimensions in the summary",
"default": "in"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"partId",
"version",
"recipe"
]
}⚪quote_cart(order_guid, summary, jmespath)
Prices a whole cart: its total for every available lead time, with the ship date. Parts are priced only as an order, since they share material and setup. Every part needs a material first. Shipping, tax, and coupons are added at checkout on the cart page.
입력 스키마
{
"type": "object",
"properties": {
"order_guid": {
"type": "string",
"description": "The cart's order_guid"
},
"summary": {
"type": "boolean",
"description": "Return the order total in dollars per lead time, instead of the website's raw quote",
"default": false
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"order_guid"
]
}🔴remove_cart_parts(guids, jmespath)
Removes parts from a cart, e.g. the old copy of a part whose file was uploaded again with new geometry. Results are reported per part.
입력 스키마
{
"type": "object",
"properties": {
"guids": {
"type": "array",
"items": {
"type": "string"
},
"description": "The order_part guids from get_cart (not part_ids)"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"guids"
]
}🟡update_cart_part(guid, qty, name, jmespath)
Changes a part's quantity or name in a cart. Leave out a field to keep it as is. Notes to OSH Cut are set on the part with process_part.
입력 스키마
{
"type": "object",
"properties": {
"guid": {
"type": "string",
"description": "The order_part guid from get_cart (not the part_id)"
},
"qty": {
"type": "integer",
"description": "How many to make"
},
"name": {
"type": "string",
"description": "The part's name in the cart"
},
"jmespath": {
"type": "string",
"description": "Optional JMESPath expression applied to the response, to return only part of it."
}
},
"required": [
"guid"
]
}커뮤니티
증거