KerfScript

com.mylasertools由 mylasertools.com 发布官方发布者v0.1.1更新于 Nov 1, 2026

Write, check and render parametric laser-cutting designs in KerfScript, as SVG or DXF.

发布方自己的服务:MyLaserTools for Makers

已验证Streamable HTTP可网页运行开发者工具媒体与设计

概览

AI 生成的概览

让助手阅读 KerfScript 文档与示例、提取设计参数,并把参数化激光切割设计渲染为 SVG 或 DXF。

可以做什么
  • 阅读 KerfScript 语言与 JavaScript 集成指南,可按主题分页
  • 按标题、id 或标签查找可用的参数化示例并获取其 .kerf 源码
  • 从 .kerf 源码中提取可编辑设置与定制器取值范围,不渲染几何
  • 把 .kerf 源码渲染为 SVG 或 DXF,每张板材一个文件,并给出零件尺寸、图层与警告
适用场景
适合助手在编写或检查 KerfScript 参数化激光切割设计与生成器时使用,需要语言参考、示例代码,或在交付前快速渲染以验证代码。
运行要求
可使用托管端点(无需账号或密钥),或在本地通过 npx 运行,需 Node.js 20 或更高版本。未声明任何环境变量或请求头。托管服务对每个客户端约每分钟 60 次、每天 1,000 次请求。
安装前请注意
渲染上限为 100 个零件、10 张板材和 100,000 步,设计无法读取文件或访问网络;更大规模需改用 KerfScript 包或命令行。渲染成功不代表零件能装配合适,正式切割前请先用材料试切。托管服务不存储也不记录提交的设计;本地运行则设计不离开本机。

安装

在 SourceWeft 中

  1. 打开 控制台中的 KerfScript,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.mylasertools%2Fkerfscript/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "kerfscript": {
      "type": "http",
      "url": "https://mcp.mylasertools.com/mcp"
    }
  }
}

README

KerfScript MCP

An MCP server that lets AI assistants write and check KerfScript laser-cutting designs. The assistant can read the KerfScript docs and examples, find a design's settings and render it to SVG or DXF, so it can test its code before giving it to you.

Connect

The hosted server needs no account or key:

text
https://mcp.mylasertools.com/mcp

Claude Code

sh
claude mcp add --transport http kerfscript https://mcp.mylasertools.com/mcp

Claude (desktop and web): Settings → Connectors → Add custom connector, and enter the address above.

Cursor: add it to .cursor/mcp.json:

json
{  "mcpServers": {    "kerfscript": { "url": "https://mcp.mylasertools.com/mcp" }  }}

VS Code: add it to .vscode/mcp.json:

json
{  "servers": {    "kerfscript": { "type": "http", "url": "https://mcp.mylasertools.com/mcp" }  }}

Run it locally

With Node.js 20 or newer, the same server runs on your computer and designs never leave it:

json
{  "mcpServers": {    "kerfscript": { "command": "npx", "args": ["-y", "@mylasertools/kerfscript-mcp"] }  }}

In Claude Code:

sh
claude mcp add kerfscript -- npx -y @mylasertools/kerfscript-mcp

Tools

ToolWhat it does
kerfscript_docsReads the guides and the language reference
kerfscript_examplesFinds examples by title or tag and returns their source
kerfscript_parametersLists a design's settings with their ranges and choices
kerfscript_renderRenders a design to SVG or DXF, with its parts, sizes, layers and any warnings

Sizes are in millimetres. Text uses the bundled Atkinson Hyperlegible font.

Limits

A design may be up to 64,000 characters, with up to 20 libraries of its own passed alongside it. It cannot read files or fetch anything from the network. Each render stops at 100,000 steps, 100 parts and 10 sheets. For bigger designs or other fonts, use the KerfScript package or its command line.

The hosted server allows each client about 60 requests a minute and 1,000 a day. It does not store or log the designs you send.

A render that succeeds does not mean the parts fit. Cut a test piece in your material before cutting a new design.

More

Licensed under the GNU AGPL 3.0, or the free commercial licence for closed-source use.

来源:mcp/README.md,提交 9be8393

工具

4

kerfscript_docs

Read KerfScript language and JavaScript integration documentation for building laser-cutting generators. Omit topic to list guides. Long guides are paginated with nextOffset.

输入参数topicoffset

kerfscript_examples

Find working parametric laser-cutting examples by title, id or tags. Supply an id from the results to get its .kerf source.

输入参数idqueryoffset

kerfscript_parameters

Extract editable settings and customizer ranges from .kerf source to build a generator UI. Parses without rendering geometry.

输入参数source必填

kerfscript_render

Render .kerf source to SVG or DXF files, one per sheet, with part sizes, layers and warnings. Uses millimetres and bundled Atkinson font. No filesystem or network imports. Bounded to 100 parts and 10 sheets. For production generators install @mylasertools/kerfscript locally.

输入参数gapkerfsheetformatlayoutmarginparamssource必填libraries

版本历史

1
  1. v0.1.1最新Nov 1, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Mylasertools 集成