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 整合