DrapeCut
Simulate composite fabric draping on CAD surfaces; compare fibre angles and export DXF/PDF patterns.
我该使用它吗
质量与安全性
发现(1)
- LOW在 load_sample 中
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"drapecut": {
"url": "https://drapecut.com/mcp"
}
}
}远程端点
https://drapecut.com/mcpstreamable-http它能做什么
工具清单
工具(16)
🟡create_workspace
Create a private two-hour workspace and return its ID and CAD upload page. Start here before loading a sample or importing a user's CAD part. The ID and upload/download links grant access; do not publish them.
输入模式
{
"type": "object",
"properties": {},
"title": "create_workspaceArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "create_workspaceDictOutput"
}🟢list_uploads(workspace_id)
List files uploaded through this workspace's upload_url; pass an upload_id to import_part.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
}
},
"required": [
"workspace_id"
],
"title": "list_uploadsArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "list_uploadsDictOutput"
}⚪compare_drapes(workspace_id, mesh_id, angles, seed, fabric_id, ...)
Compare up to 12 warp angles, sequentially, at one fixed seed and cloth configuration. When omitted, seed is suggested once for the first angle. Results rank by coverage descending, then percentage above lock ascending, then maximum shear ascending. This is a stated comparison rule, not a global optimum. Runs use the requested/preset pitch, never a hidden coarse approximation. Export the chosen result promptly: backend result IDs are temporary.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"mesh_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Mesh Id",
"type": "string"
},
"angles": {
"items": {
"type": "number"
},
"maxItems": 12,
"minItems": 1,
"title": "Angles",
"type": "array"
},
"seed": {
"anyOf": [
{
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Seed"
},
"fabric_id": {
"default": "carbon-twill-3k",
"title": "Fabric Id",
"type": "string"
},
"pitch": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Pitch"
},
"lock_angle": {
"anyOf": [
{
"exclusiveMaximum": 90,
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Lock Angle"
},
"hole_area": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Hole Area"
},
"offset": {
"default": 0,
"maximum": 50,
"minimum": -50,
"title": "Offset",
"type": "number"
}
},
"required": [
"workspace_id",
"mesh_id",
"angles"
],
"title": "compare_drapesArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "compare_drapesDictOutput"
}🟡create_layout(workspace_id, mesh_id, angle, fabric_id, pitch, ...)
Start covering one surface with multiple pieces of the same ply/fabric. This is not a laminate stack. overlap is mm; supplied seeds are laid first and additional pieces fill remaining ground, up to max_pieces. Poll the returned job_id with get_job(kind='layout'); export with layout=true.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"mesh_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Mesh Id",
"type": "string"
},
"angle": {
"default": 0,
"title": "Angle",
"type": "number"
},
"fabric_id": {
"default": "carbon-twill-3k",
"title": "Fabric Id",
"type": "string"
},
"pitch": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Pitch"
},
"lock_angle": {
"anyOf": [
{
"exclusiveMaximum": 90,
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Lock Angle"
},
"overlap": {
"default": 20,
"minimum": 0,
"title": "Overlap",
"type": "number"
},
"max_pieces": {
"default": 6,
"maximum": 12,
"minimum": 1,
"title": "Max Pieces",
"type": "integer"
},
"seeds": {
"anyOf": [
{
"items": {
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
"maxItems": 12,
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Seeds"
},
"hole_area": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Hole Area"
},
"offset": {
"default": 0,
"maximum": 50,
"minimum": -50,
"title": "Offset",
"type": "number"
}
},
"required": [
"workspace_id",
"mesh_id"
],
"title": "create_layoutArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "create_layoutDictOutput"
}🟢export_pattern(workspace_id, result_id, format, grid, paper, ...)
Export a built-in example as DXF or tiled 1:1 PDF and return a temporary download_url. Uploaded-part exports require the signed-in website or an authenticated local adapter; this hosted workspace cannot be linked to a website account. Use layout=true with a layout_id to export all example pieces. Download before workspace expiry.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"result_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Result Id",
"type": "string"
},
"format": {
"default": "dxf",
"enum": [
"dxf",
"pdf"
],
"title": "Format",
"type": "string"
},
"grid": {
"default": 0,
"maximum": 50,
"minimum": 0,
"title": "Grid",
"type": "integer"
},
"paper": {
"default": "a4",
"enum": [
"a4",
"letter",
"a3"
],
"title": "Paper",
"type": "string"
},
"layout": {
"default": false,
"title": "Layout",
"type": "boolean"
}
},
"required": [
"workspace_id",
"result_id"
],
"title": "export_patternArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "export_patternDictOutput"
}🟢get_job(workspace_id, kind, job_id)
Poll STEP import or multi-piece layout; retry after a short delay while done=false. STEP completion returns a step_id and at most 20 basic face descriptions; use list_faces for geometric descriptions and pagination. Layout completion returns compact per-piece statistics and a layout_id for export_pattern.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"kind": {
"enum": [
"step",
"layout"
],
"title": "Kind",
"type": "string"
},
"job_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Job Id",
"type": "string"
}
},
"required": [
"workspace_id",
"kind",
"job_id"
],
"title": "get_jobArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "get_jobDictOutput"
}🟡import_part(workspace_id, upload_id)
Import a file already uploaded to this workspace. Get upload_id from list_uploads. STEP/STP returns a job to poll with get_job(kind='step'), then inspect and select faces.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"upload_id": {
"pattern": "^[0-9a-f]{32}$",
"title": "Upload Id",
"type": "string"
}
},
"required": [
"workspace_id",
"upload_id"
],
"title": "import_partArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "import_partDictOutput"
}🟢list_fabrics
List fabric IDs, nominal locking angles, tow pitch (mm), thickness and UD settings.
输入模式
{
"type": "object",
"properties": {},
"title": "list_fabricsArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "list_fabricsDictOutput"
}🟢list_faces(workspace_id, step_id, offset, limit)
Inspect STEP face IDs, areas, bounds, centroids, neighbours and planar mesh normals. This requires the MCP face-metadata endpoint in the configured backend. Centroids/bounds describe the tessellation; do not assume a closed solid's entire skin is the intended draping surface. Ask for explicit face IDs when the intended surface cannot be identified from this information.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"step_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Step Id",
"type": "string"
},
"offset": {
"default": 0,
"minimum": 0,
"title": "Offset",
"type": "integer"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"title": "Limit",
"type": "integer"
}
},
"required": [
"workspace_id",
"step_id"
],
"title": "list_facesArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "list_facesDictOutput"
}🟢list_samples
List built-in example parts that can be loaded without uploading a file.
输入模式
{
"type": "object",
"properties": {},
"title": "list_samplesArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "list_samplesDictOutput"
}⚪load_sample(workspace_id, name)
Register a built-in sample and return a mesh_id for draping.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"name": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Name",
"type": "string"
}
},
"required": [
"workspace_id",
"name"
],
"title": "load_sampleArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "load_sampleDictOutput"
}🟢mesh_landmarks(workspace_id, mesh_id, offset, limit)
Inspect seed landmarks in mm, paged within each category (max 100 per category). Returns centre, corners, edge midpoints and origin intersections. Full section polylines are omitted. Follow next_offset for more points.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"mesh_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Mesh Id",
"type": "string"
},
"offset": {
"default": 0,
"minimum": 0,
"title": "Offset",
"type": "integer"
},
"limit": {
"default": 50,
"maximum": 100,
"minimum": 1,
"title": "Limit",
"type": "integer"
}
},
"required": [
"workspace_id",
"mesh_id"
],
"title": "mesh_landmarksArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "mesh_landmarksDictOutput"
}⚪run_drape(workspace_id, mesh_id, seed, angle, fabric_id, ...)
Drape one fabric at one warp angle (degrees); return statistics and an exportable result_id. Omitted seed is suggested on the surface. Omitted pitch/lock_angle use the fabric preset, including its UD spread/compression settings. pitch/offset are mm; hole_area is mm² (null bridges holes). The API may increase pitch to bound the grid; pitch_used reports the actual resolution. Kinematic shear/locking statistics are not a structural strength calculation.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"mesh_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Mesh Id",
"type": "string"
},
"seed": {
"anyOf": [
{
"items": {
"type": "number"
},
"maxItems": 3,
"minItems": 3,
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Seed"
},
"angle": {
"default": 0,
"title": "Angle",
"type": "number"
},
"fabric_id": {
"default": "carbon-twill-3k",
"title": "Fabric Id",
"type": "string"
},
"pitch": {
"anyOf": [
{
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Pitch"
},
"lock_angle": {
"anyOf": [
{
"exclusiveMaximum": 90,
"exclusiveMinimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Lock Angle"
},
"hole_area": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Hole Area"
},
"offset": {
"default": 0,
"maximum": 50,
"minimum": -50,
"title": "Offset",
"type": "number"
}
},
"required": [
"workspace_id",
"mesh_id"
],
"title": "run_drapeArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "run_drapeDictOutput"
}🟡select_faces(workspace_id, step_id, face_ids)
Create a drapable mesh from explicitly chosen STEP face IDs; reports connectedness.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"step_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Step Id",
"type": "string"
},
"face_ids": {
"items": {
"type": "integer"
},
"minItems": 1,
"title": "Face Ids",
"type": "array"
}
},
"required": [
"workspace_id",
"step_id",
"face_ids"
],
"title": "select_facesArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "select_facesDictOutput"
}🟢server_status
Check the hosted DrapeCut solver and read connection/workspace limits.
输入模式
{
"type": "object",
"properties": {},
"title": "server_statusArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "server_statusDictOutput"
}⚪suggest_seed(workspace_id, mesh_id, angle, lock_angle)
Suggest a starting point on a mesh. Validate its coverage with an actual drape.
输入模式
{
"type": "object",
"properties": {
"workspace_id": {
"pattern": "^[0-9a-f]{48}$",
"title": "Workspace Id",
"type": "string"
},
"mesh_id": {
"pattern": "^[A-Za-z0-9_-]{1,80}$",
"title": "Mesh Id",
"type": "string"
},
"angle": {
"default": 0,
"title": "Angle",
"type": "number"
},
"lock_angle": {
"default": 45,
"exclusiveMaximum": 90,
"exclusiveMinimum": 0,
"title": "Lock Angle",
"type": "number"
}
},
"required": [
"workspace_id",
"mesh_id"
],
"title": "suggest_seedArguments"
}输出模式
{
"type": "object",
"additionalProperties": true,
"title": "suggest_seedDictOutput"
}社区
证据