Solidworks Automation Skill logo

Solidworks Automation Skill

CommunityPopular
wzyn20051216

Reliable AI Skill + MCP toolkit for agent-driven desktop CAD automation.

Publisherwzyn20051216
Repositorysolidworks-automation-skill
LanguagePython
Forks
123
Stars
1.4K
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Solidworks Automation Skill exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    1.4K stars and 123 forks from the linked repository.

SolidWorks Automation Skill

AI Skill + MCP toolkit for reliable desktop CAD automation.

让 Codex、Claude、Cursor 等 Agent 通过自然语言调用真实 CAD 软件,并对执行结果进行验证与追踪。

Tool success is not treated as task success.

工具调用成功,不代表任务真的完成;需要 Review 的任务会经过结果验证后再交付。

License: MIT Python 3.10+ GitHub Release GitHub Stars MCP CI

text
User → Agent (Codex / Claude / Cursor) → Skill / MCP → Execution Core → CAD → Artifacts + Evidence

AI 负责理解意图、查证 API、规划步骤;Execution Core 保证执行过程可追踪、可验证、失败可恢复。


See It In Action

一个真实流程:自然语言需求 → Agent 调用 Skill → SolidWorks 生成原生 SLDPRT + SLDDRW → 导出 PDF → 自动复核尺寸与证据。

案例能力状态
M6×1 真实螺纹孔Metric Tap Thread,重建后回读verified
CNC 多圆角/倒角安装座语义选边、可变半径、face/full-round/setbackstable
标准渐开线直齿轮模数/齿数/压力角驱动实体pilot

Quick Start

三种入口任选其一即可,不需要同时启动。

Option 1 — Skill(最简单)

bash
npx github:wzyn20051216/solidworks-automation-skill
# 或
claude skill add https://github.com/wzyn20051216/solidworks-automation-skill

Option 2 — MCP

powershell
npm install -g @smithery/cli
smithery mcp add wzyn20051216/solidworks-automation-skill --client codex --config '{}'

Option 3 — CAD Studio 桌面版

从 GitHub Releases 下载 Windows 安装包。

Choose one entry point. You do not need to run all three.

入口适合谁需要 GUI典型用法
Skill支持 skill 导入的 Agent 客户端否自然语言驱动 SolidWorks
MCPCodex / Claude / Cursor / Windsurf 等 MCP 客户端否Agent 自动 Tool Calling
CAD Studio需要图形界面管理项目/任务/预览/交付是桌面端提交任务

三者是平级入口,共用同一套能力清单(capabilities.yaml)、脚本与证据系统。安装后可用 python scripts/cad_doctor.py 做环境诊断;详细安装与 CLI 见 docs/CAD_STUDIO_USER_MANUAL.md。


Why This Project

LLM 会规划,但常见的 AI CAD 自动化有几个真实问题:

  • LLM 会规划,但不会真正操作桌面 CAD 软件
  • Tool 返回 success 不代表任务真的完成
  • CAD API 版本、环境、Backend 差异复杂
  • 固定 Tool 集合覆盖不完所有工程需求
  • Agent 执行过程通常不可追踪、不可审计

本项目的解法:

问题方案
自然语言 → 真实操作Skill / MCP 接入真实 COM 与后端
Tool success ≠ Task successVerification-first completion
Backend 失败Backend Router + Recovery Decision
能力缺失Capability Gap → 交还 Agent 查证
执行不可追踪结构化 Trace
是否可靠Golden Workflow Eval

Architecture

text
User / Agent
  ↓
Skill / MCP
  ↓
Execution Core(Capability · Verification · Recovery Decision · Trace)
  ↓
Backend Router
  ↓
Python COM / C# / OCCT
  ↓
CAD Software
  ↓
Artifacts + Evidence
  • Root Skill = 通用能力、规则与执行基础设施(连接、建模、审查、MCP)。

  • Subskills = 专项领域工作流(工程图、螺纹孔、CNC 圆角、VibeCAD、AutoCAD),由 Root Skill 按需调用,不需要用户手动启动。

  • Execution Core = 内部可靠执行层:统一状态、结果验证、失败恢复决策与执行追踪。它是内部实现,不是独立服务、不需要用户启动。

  • Capability Gap = 找不到能力时结构化返回 CAPABILITY_GAP,交还 Agent 查证,而不是「做不了」:

    text
    Existing Tools → Tool Composition → Backend Fallback → Capability Gap
      → Agent 查 references / 官方 API / SDK → 最小实现 → Verification

    Execution Core 自身不会自动联网执行未知代码。

详细:docs/architecture/execution-core.md


Reliability

V2 附带 37 个 deterministic reliability scenarios,覆盖正常执行、故障注入、后端回退、能力缺口与策略门禁。

MetricCurrent baseline
Nominal workflow10/10 first-pass(基线 v3,warning 等待人工复核)
Injected false-completion casesall detected
Escaped false completion0 in current deterministic benchmark
Regression suite当前方案 B 验证记录见 可靠性修复与验收

这是 deterministic engineering benchmark(Fake Handler/Reviewer + 故障注入), 不是生产 SLA 或真实用户成功率。详见 docs/architecture/v2-evaluation.md。

原生 SolidWorks 操作当前以 2026 为支持与验收目标。方案 B 保留现有执行架构,修复失败状态、原生阵列、草图可编辑性和文档归属,并提供可选 HTTP 与可验证的产物取回;原有 60 个 MCP 工具的名称和输入 Schema 保持兼容。


Capabilities & Status

Category你能做什么状态
Modeling零件建模、草图/拉伸/旋转、齿轮、钣金、焊件verified + pilot
Assembly装配、Mate、干涉检查、爆炸视图verified
DrawingGB/T 工程图、尺寸链、孔表、BOMverified + pilot
ExportSTEP / STL / IGES / PDF / DXF / DWGverified
Motion运动算例、旋转马达、结果门禁pilot
FEACalculiX 线性/非线性求解编排与审计pilot
DFM / Routing制造复核、路由复核pilot
Surface / Mold受限 Loft/Sweep/Thicken、模具计划pilot
AutoCADDWG/DXF 二维绘图、图层/标注/预览verified / pilot / blocked
Open-formatOCCT 无头写入 STEP/BREP/STL/OBJ/GLB 等verified

状态等级(capabilities.yaml 定义):

Status含义
verified真机验证完成,可按已知范围使用
stable长期回归覆盖
pilot已实现但仍需人工复核
blocked当前环境或能力不允许自动交付

真机基线:SolidWorks 2024 / 2026、AutoCAD 2024。未验证能力不会被包装成无人值守交付。


No SolidWorks Installed?

没有 SolidWorks 时,部分开放格式任务仍可完成:

STEP · IGES · BREP · STL · OBJ · GLB · DXF · SVG · PDF · PNG

(通过 OCCT/OCP 隔离进程真实写入。)

但原生 SLDPRT / SLDASM / SLDDRW 仍需要合法 SolidWorks 环境。


Examples

examples/ 目录包含从基础零件到装配、工程图、Motion、FEA 的可运行示例。


Documentation


Roadmap & Contributing

Roadmap:更广的真机验证 · 更可靠的能力路由 · 更好的 CAD Studio 可观测性 · 更多 verified 子技能 · 社区贡献工作流。

Contributing:新增能力时,先查 capabilities.yaml,优先复用现有 backend,新增 tests + evidence,不要把未验证 capability 标为 verified。详见 CONTRIBUTING.md。


License & Community

MIT · GitHub Issues · Star History


English

SolidWorks Automation Skill is an AI Skill + MCP toolkit for reliable desktop CAD automation. Codex, Claude, Cursor, and other agents drive real SolidWorks / CAD workflows through natural language, with verification, deterministic recovery decisions, and execution tracing. Three peer entry points — Skill, MCP, and CAD Studio — share one capability registry (capabilities.yaml). Choose one; no extra runtime service is required. See Quick Start above.


关注抖音 @balance. · 嵌入式开发、SolidWorks 自动化和 AI 辅助工程实践持续更新

装配干涉检查 API

solidworks_interference_check 使用 IAssemblyDoc.InterferenceDetectionManager, 通过 GetInterferences() 计算并读取 IInterference.Components 和体积,最后调用 Done()。隐藏实体和已忽略结果参与检查;同一个多实体零件内部的相交不计入。 计算失败、计数读取失败、数组数量不一致或结束检查失败均返回 blocked,不会误报零干涉。 抑制组件不参与计算;零结果仍需核对组件解析状态和设计意图。 离线回归覆盖调用顺序、失败处理和 SI 体积换算(26 项通过)。 SOLIDWORKS 2026 SP4.1(34.4.1)、Python 3.10 上已通过 MCP 实测正常返回; 该真机样例为零干涉,非零结果读取仍以离线回归为证据。

Use Solidworks Automation Skill MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Solidworks Automation Skill is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Solidworks Automation Skill as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Solidworks Automation Skill MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "solidworks-automation-skill": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Solidworks Automation Skill MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Solidworks Automation Skill MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Solidworks Automation Skill to help me with this task?
Solidworks Automation Skill
Sure. I read it.
Here is what I found using Solidworks Automation Skill.

Frequently asked questions

What is the Solidworks Automation Skill MCP server used for?

Solidworks Automation Skill is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Solidworks Automation Skill MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Solidworks Automation Skill with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Solidworks Automation Skill MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Solidworks Automation Skill connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Solidworks Automation Skill MCP to TypingMind?

Solidworks Automation Skill runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Solidworks Automation Skill MCP provide in TypingMind?

Solidworks Automation Skill exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Solidworks Automation Skill MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Solidworks Automation Skill requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇