SmartCut
Cutlist optimization for sheet, linear and roll stock, with grain, kerf, nesting and saw exports.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"cutlist-optimizer": {
"url": "https://api.smartcut.dev/mcp"
}
}
}远程端点
https://api.smartcut.dev/mcpstreamable-http它能做什么
工具清单
工具(10)
🟡calculate(saw, stock, parts, groups, model, ...)
Submit a cutting-pattern optimisation (POST /v3/calculate). Returns the full layout, meaning placed parts with coordinates, cuts, offcuts and efficiency, once the job finishes (waited for in-call). Large/slow jobs that exceed the wait return { jobId, status:'running' }; fetch later with `result`, or set a `webhook` to receive it. Counts against your API plan.
输入模式
{
"type": "object",
"properties": {
"saw": {
"type": "object",
"properties": {
"cutType": {
"type": "string",
"enum": [
"guillotine",
"beam",
"efficiency",
"linear",
"roll",
"nesting"
],
"description": "Optimisation algorithm"
},
"stockType": {
"description": "Stock form (defaults from the first stock item)",
"type": "string",
"enum": [
"sheet",
"roll",
"linear"
]
},
"bladeWidth": {
"description": "Kerf / saw blade width",
"type": "number"
},
"cutPreference": {
"description": "Cut direction: 'l', 'w' or 'flex'. See list_cut_types",
"type": "string"
},
"options": {
"description": "Algorithm settings (see list_settings / describe_setting)",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"cutType"
],
"additionalProperties": {},
"description": "Saw / algorithm configuration"
},
"stock": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity available (or set autoAdd)",
"type": "number"
},
"material": {
"type": "string"
},
"grain": {
"type": [
"string",
"null"
]
},
"type": {
"description": "'sheet' | 'linear'",
"type": "string"
},
"cost": {
"type": "number"
},
"trim": {
"description": "Per-side trim { l1, l2, w1, w2 }",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"autoAdd": {
"type": "boolean"
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
},
"description": "Available stock (at least one)"
},
"parts": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity required",
"type": "number"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"grain": {
"type": [
"string",
"null"
]
},
"stockLock": {
"description": "Restrict to stock index/indices (0-based)",
"anyOf": [
{
"type": "number"
},
{
"type": "array",
"items": {
"type": "number"
}
}
]
},
"banding": {
"description": "Per-side edge banding flags",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
},
"description": "Parts to cut (at least one)"
},
"groups": {
"description": "User-defined part groups with XY positions",
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"model": {
"description": "Optimisation model / algorithm. Canonical ids only: 'rectangle-guillotine-fast' (default) | 'rectangle-guillotine-max-1|2|3'. Max tiers run on beam/guillotine saws (a beam saw needs a recognised beam saw profile) and only on an UNCAPPED job (no maxPhase from the request or the saw profile). Anything else DOWNGRADES to Fast rather than erroring.",
"type": "string"
},
"labels": {
"description": "Job-level saw-label fields",
"type": "object",
"properties": {
"customer": {
"type": "string",
"maxLength": 100
}
},
"additionalProperties": {}
},
"webhook": {
"description": "URL to POST the result to when ready",
"type": "string",
"format": "uri"
},
"wait": {
"description": "Wait in-call for the result (default true). false returns the jobId immediately.",
"type": "boolean"
},
"waitMs": {
"description": "Max time to wait in-call (default 25000ms)",
"type": "integer",
"minimum": 1000,
"maximum": 60000
}
},
"required": [
"saw",
"stock",
"parts"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪validate(saw, stock, parts, groups)
Pre-flight a job (POST /v3/validate) WITHOUT running it: returns whether the parts fit and any per-part stock-match reasons (won't fit / no matching material). No job queued, no usage charged.
输入模式
{
"type": "object",
"properties": {
"saw": {
"type": "object",
"properties": {
"cutType": {
"type": "string",
"enum": [
"guillotine",
"beam",
"efficiency",
"linear",
"roll",
"nesting"
],
"description": "Optimisation algorithm"
},
"stockType": {
"description": "Stock form (defaults from the first stock item)",
"type": "string",
"enum": [
"sheet",
"roll",
"linear"
]
},
"bladeWidth": {
"description": "Kerf / saw blade width",
"type": "number"
},
"cutPreference": {
"description": "Cut direction: 'l', 'w' or 'flex'. See list_cut_types",
"type": "string"
},
"options": {
"description": "Algorithm settings (see list_settings / describe_setting)",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"cutType"
],
"additionalProperties": {}
},
"stock": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity available (or set autoAdd)",
"type": "number"
},
"material": {
"type": "string"
},
"grain": {
"type": [
"string",
"null"
]
},
"type": {
"description": "'sheet' | 'linear'",
"type": "string"
},
"cost": {
"type": "number"
},
"trim": {
"description": "Per-side trim { l1, l2, w1, w2 }",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"autoAdd": {
"type": "boolean"
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
}
},
"parts": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity required",
"type": "number"
},
"material": {
"type": "string"
},
"name": {
"type": "string"
},
"grain": {
"type": [
"string",
"null"
]
},
"stockLock": {
"description": "Restrict to stock index/indices (0-based)",
"anyOf": [
{
"type": "number"
},
{
"type": "array",
"items": {
"type": "number"
}
}
]
},
"banding": {
"description": "Per-side edge banding flags",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
}
},
"groups": {
"type": "array",
"items": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
}
}
},
"required": [
"saw",
"stock",
"parts"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪status(jobId)
Discriminated status of a job (GET /v3/job/:id/status): queued | active | completed | failed | cancelled | notfound, plus whether the result is ready.
输入模式
{
"type": "object",
"properties": {
"jobId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Job id from calculate"
}
},
"required": [
"jobId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢result(jobId)
Fetch a finished optimisation by job id (GET /v3/result), the full V3 layout. 404 if not ready, 410 if expired.
输入模式
{
"type": "object",
"properties": {
"jobId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Job id from calculate"
}
},
"required": [
"jobId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🔴cancel(jobId)
Cancel a queued/running job you own (POST /v3/job/:id/cancel).
输入模式
{
"type": "object",
"properties": {
"jobId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Job id from calculate"
}
},
"required": [
"jobId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}⚪usage
Your API call usage for this plan (GET /v3/calls): used / limit / remaining.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢export(jobId, format)
Generate an output file for a finished job (GET /v3/export/{format}) and return its download URL. Formats: pdf (layout), csv (cut list), ptx, dxf, svg, mayer.
输入模式
{
"type": "object",
"properties": {
"jobId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Job id from calculate"
},
"format": {
"type": "string",
"enum": [
"pdf",
"csv",
"ptx",
"dxf",
"svg",
"mayer"
],
"description": "Output format"
}
},
"required": [
"jobId",
"format"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢labels(jobId)
Generate a printable labels PDF for a finished job (POST /v3/labels) and return its download URL.
输入模式
{
"type": "object",
"properties": {
"jobId": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Job id from calculate"
}
},
"required": [
"jobId"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}🟢list_cut_types
The valid stockType → cutType → cutPreference matrix for the `calculate` tool. Use it to pick a saw configuration the optimiser will accept.
输入模式
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#"
}🟡import_parts(code, parts, stock, replace)
Send parts you extracted (e.g. from a PDF/image of a cutting plan) into the user's open CLE editor. The user first opens Import → AI in the app and gives you the short connection code shown there; pass it as `code`. The parts appear in a preview for the user to confirm. This does NOT run an optimisation or charge a job. Give each part its length `l`, width `w`, quantity `q`, and optionally `t` (thickness), `name`, and `material`.
输入模式
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 4,
"description": "Connection code from the CLE Import → AI tab"
},
"parts": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity required (default 1)",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"name": {
"description": "Part name / label",
"type": "string"
},
"material": {
"description": "Material name (matched to the project material list)",
"type": "string"
},
"grain": {
"description": "Grain direction: 'l', 'w' or '' ",
"type": [
"string",
"null"
]
},
"orientationLock": {
"description": "Lock orientation to 'l' or 'w'",
"type": [
"string",
"null"
]
},
"trim": {
"description": "Per-side trim { l1, l2, w1, w2 }",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"instances": {
"type": "array",
"items": {
"type": "object",
"properties": {
"position": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"axes": {
"minItems": 3,
"maxItems": 3,
"type": "array",
"items": {
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
}
},
"assembly": {
"type": "string",
"maxLength": 300
}
},
"required": [
"position",
"axes"
],
"additionalProperties": {}
}
},
"mesh": {
"description": "Machine-generated triangle mesh from a CAD sender — never author one by hand",
"type": "object",
"properties": {
"positions": {
"maxItems": 180000,
"type": "array",
"items": {
"type": "number"
}
}
},
"required": [
"positions"
],
"additionalProperties": {}
},
"meshOmitted": {
"type": "boolean"
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
},
"description": "Parts to import (at least one)"
},
"stock": {
"description": "Optional stock sheets/boards to import alongside the parts",
"type": "array",
"items": {
"type": "object",
"properties": {
"l": {
"type": "number",
"description": "Length (long side)"
},
"w": {
"type": "number",
"description": "Width (short side)"
},
"t": {
"description": "Thickness",
"type": "number"
},
"q": {
"description": "Quantity available",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"material": {
"type": "string"
}
},
"required": [
"l",
"w"
],
"additionalProperties": {}
}
},
"replace": {
"description": "Replace the current cutlist instead of appending (default false)",
"type": "boolean"
}
},
"required": [
"code",
"parts"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}社区
证据