PartCAD

io.github.partcad由 GitHub 帳號 partcad 發布v0.9.2更新於 Nov 5, 2026

Inspect, render, test and export the parts and assemblies of PartCAD hardware packages

概覽

AI 產生的概覽

讓助理檢視、算圖、測試、搜尋並匯出 PartCAD 硬體程式碼套件中的零件與組件。

可以做什麼
  • 列出並檢視套件、零件、草圖、組件、場景、介面與材料,以及其參數和屬性
  • 將物件算圖成圖片,或匯出為工作區中的 STEP、STL、3MF 等檔案
  • 依物件宣告的需求與測試進行檢查,並檢查套件的設定與腳本是否有誤
  • 依關鍵字或介面搜尋零件與套件,並產生物料清單或逐步組裝說明
  • 先列出可用的常駐程式方法,再透過通用執行工具執行其他 PartCAD 方法
適用情境
適用於以 PartCAD 套件形式在 Git 中管理可製造產品的專案,希望助理檢視模型、依宣告需求驗證,或產出匯出檔、物料清單與組裝說明。著重 CAD 與硬體工程工作,而非一般檔案處理。
執行需求
以 Python 套件 partcad 透過 stdio 在本機執行,例如使用 uvx。服務的工作區由環境變數 PC_PATH 指定,未設定時使用目前工作目錄。物件首次算圖需要建置,可能耗時數分鐘。僅限桌面環境;未宣告身分驗證。
安裝前請注意
匯出工具會將檔案寫入工作區,執行工具可執行任意常駐程式方法,包括新增、匯入、轉換、安裝以及可能觸發自動採購的方法。組裝說明會套用本機上的自製或外購選擇。未設定 PC_PATH 時會服務目前工作目錄,請確認指向預期的套件。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PartCAD,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

PartCAD

[CI on Linux, macOS and Windows] [PyPI] [Documentation Status] [Discord] [License]

PartCAD is the programming language for manufacturable things.

A package is a Git repository with a partcad.yaml that declares parts (CAD scripts or files), assemblies, materials and requirements. PartCAD renders, tests, simulates, analyses and documents them, and produces the bill of materials, the sourcing and the assembly instructions from that same source. Everything is text, so it is versioned, reviewed and generated like software, by people and by AI agents.

Documentation · Website · Demos · Discord

[PartCAD in Visual Studio Code]

Install

Pick one. Every option ends up with the same pc command line tool and the same packages.

You haveInstall
Nothing yetThe PartCAD IDE: curl -fsSL https://raw.githubusercontent.com/partcad/partcad/main/install.sh | sh -s -- --ide, or the Windows and macOS installers on the releases page
Pythonpip install -U partcad
Visual Studio Codecode --install-extension PartCAD.partcad-official (marketplace)
Claude Code/plugin marketplace add partcad/partcad@plugin-dist, then /plugin install pc@partcad, then /pc:setup

The standalone command line tools without Python, the snap, the FreeCAD add-on, the MCP server for other AI agents, and the per-OS notes are all in Installation.

Try it

shell
pc init                      # a package in the current directory, with agent skills for Claude Code and Cursorpc ide view my_part          # show it in the Digital Thread of the IDE or the extensionpc render my_part            # SVG, PNG, DXF... from any anglepc test                      # the ports, interfaces, physics and simulations the objects declarepc instructions my_assembly  # the assembly instruction book, PDF or HTML, with the bill of materials

Or, in Claude Code, /pc:gen a mounting bracket with four M4 holes: the agent writes the CAD script, renders it and checks the result against what was asked.

The tutorial walks through a first package, and examples/ has one directory per feature.

What it does

  • Parts from CadQuery, build123d, OpenSCAD, Chili3D, SDF, STEP, BREP, IGES, STL, 3MF, OBJ, glTF, FreeCAD, Autodesk Fusion, SolidWorks, Autodesk Inventor, CATIA V5, ACIS and Creo View files, KiCad EDA PCBs, and any format a plugin package adds (SolidCraft, Rhino).
  • Assemblies and scenes in Assembly YAML, URDF, or a STEP, Autodesk Fusion or Creo View file, with interfaces and mating as objects.
  • Outputs: STEP, BREP, STL, 3MF, OBJ, IGES, glTF, URDF, Gazebo and MuJoCo worlds, 2D projections, dimensioned drawings, Markdown documentation and PDF or HTML instruction books.
  • Engineering: FEA, modal, thermal and CFD analysis (pc cae), simulation in MuJoCo or Gazebo (pc sim), 2.5D toolpaths (pc cam), and materials and manufacturing methods carried into the bill of materials.
  • Supply chain: a Build vs Buy decision per line item, stock-based procurement for made parts, and automated purchasing from the command line.
  • AI agents: Agent Skills for Claude Code and Cursor, an MCP server (pc mcp), and plain-text --no-ansi output on every command.
  • Caching in memory, on disk, in memcached and in S3, so a team or a CI fleet renders each model once.

The full list of what is supported, and what is still in progress, is in Supported formats and features.

Why

PartCAD is not a drawing tool. It is the layer under the drawing tools: the specification of a manufacturable product, kept in a form that a human, a CI job and an AI model can all read, change and verify. Keeping that specification on-prem, in Git, and portable between CAD tools and manufacturers is the point. See Introduction and Use cases.

Community

Questions and feedback go to Discord; bugs and ideas to GitHub issues. Follow LinkedIn, YouTube and Twitter/X for releases. To contribute, start with Contributing.

Licensed under Apache 2.0.

來源:README.md,提交 57d691d

工具

12

list_objects

List objects

List the packages, parts, sketches, assemblies, scenes, interfaces, materials or software of a package. `pc list <kind>`. The listing is in the log of the result.

輸入參數kindpackagerecursive

info

Show an object's declaration

Show an object's configuration, parameters and properties, or the package's when no object is named. `pc info`.

輸入參數kindobjectparamspackage

render

Look at an object

Render one part, assembly, scene or sketch and return the picture. `pc render`, returned instead of written. The first render of an object builds it, which can take minutes. Ports, interfaces and callouts are drawn only when asked for.

輸入參數kindformatobject必填paramspackagewith_portswith_internalswith_materialsoptions_packagewith_interfaceswith_port_nameswith_component_names另有 2 個

export

Write an object to a file

Export or render one object to a file in the workspace. `pc export` / `pc render` for one object, written where the agent says. The ports, interfaces and callouts are drawn on a picture (png, svg, ...) and mean nothing to a model format such as step.

輸入參數kindpath必填format必填object必填paramspackagewith_portswith_internalswith_materialsoptions_packagewith_interfaceswith_port_names另有 3 個

test

Test objects

Check objects against the requirements and tests they declare. `pc test`. ok is false when any check failed, and the errors say which.

輸入參數kindobjectparamspackagerecursive

lint

Lint a package

Check a package's partcad.yaml, ASSY files and scripts for mistakes. `pc lint`.

輸入參數packagerecursive

bom

Bill of materials

What has to be bought or made to build a part, an assembly or a scene. `pc bom --json`.

輸入參數object必填paramspackage

instructions

Assembly instructions

The step-by-step build of an assembly: what goes where, in which order, with which parts. `pc instructions`, as data. The user's Build vs Buy choices on this machine are applied.

輸入參數object必填paramspackagesubassemblies

version

PartCAD version

The version of this server and of the daemon serving the workspace, which should be the same.

無需輸入參數。

list_methods

List daemon methods

The methods the PartCAD daemon serves, each with a one-line summary, for use with execute.

輸入參數filter

execute

Run a daemon method

Run any PartCAD daemon method -- everything the command line can do, and what the IDE asks for. The result carries the method's answer and its log.

輸入參數method必填params

版本歷史

4
  1. v0.9.2最新Nov 5, 2026
  2. v0.8.273Nov 1, 2026
  3. v0.8.235Oct 24, 2026
  4. v0.8.232Oct 20, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分